public class LunarLanderModel extends java.lang.Object implements FullStateModel
FullStateModel.Helper| Constructor and Description |
|---|
LunarLanderModel(LunarLanderDomain.LLPhysicsParams physParams) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
incAngle(LLState s,
double dir)
Turns the lander in the direction indicated by the domains defined change in angle for turn actions.
|
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 void |
updateMotion(LLState s,
double thrust)
Updates the position of the agent/lander given the provided thrust force that has been exerted
|
public LunarLanderModel(LunarLanderDomain.LLPhysicsParams physParams)
public java.util.List<StateTransitionProb> stateTransitions(State s, Action a)
FullStateModelAction is applied in State s. The returned
list only needs to include transitions that have non-zero probability of occurring.stateTransitions in interface FullStateModels - the source statea - the action to be applied in the source stateStateTransitionProb objects.public State sample(State s, Action a)
SampleStateModelState from a state transition function.sample in interface SampleStateModels - the source statea - the action to be executed in the source stateStateprotected void incAngle(LLState s, double dir)
s - the state in which the lander's angle should be changeddir - the direction to turn; +1 is clockwise, -1 is counterclockwiseprotected void updateMotion(LLState s, double thrust)
s - the state in which the agent/lander should be modifiedthrust - the amount of thrust force exerted by the lander.