public class IPModel extends java.lang.Object implements FullStateModel
FullStateModel.Helper
Constructor and Description |
---|
IPModel(InvertedPendulum.IPPhysicsParams physParams) |
Modifier and Type | Method and Description |
---|---|
State |
sample(State s,
Action a)
Samples and returns a
State from a state transition function. |
java.util.List<StateTransitionProb> |
stateTransitions(State s,
Action a)
|
protected State |
updateState(State s,
double controlForce)
Updates the given state object given the control force.
|
public IPModel(InvertedPendulum.IPPhysicsParams physParams)
public State sample(State s, Action a)
SampleStateModel
State
from a state transition function.sample
in interface SampleStateModel
s
- the source statea
- the action to be executed in the source stateState
public java.util.List<StateTransitionProb> stateTransitions(State s, Action a)
FullStateModel
Action
is applied in State
s. The returned
list only needs to include transitions that have non-zero probability of occurring.stateTransitions
in interface FullStateModel
s
- the source statea
- the action to be applied in the source stateStateTransitionProb
objects.