public class LunarLanderDomain.ActionTurn extends SimpleAction.SimpleDeterministicAction implements FullActionModel
SimpleAction.SimpleDeterministicAction
FullActionModel.FullActionModelHelper
actionObservers, domain, name
Constructor and Description |
---|
LunarLanderDomain.ActionTurn(java.lang.String name,
Domain domain,
double dir,
LunarLanderDomain.LLPhysicsParams physParams)
Creates a turn action for the indicated direction.
|
Modifier and Type | Method and Description |
---|---|
LunarLanderDomain.LLPhysicsParams |
getPhysParams() |
protected State |
performActionHelper(State st,
GroundedAction groundedAction)
This method determines what happens when an action is applied in the given state with the given parameters.
|
void |
setPhysParams(LunarLanderDomain.LLPhysicsParams physParams) |
getTransitions
applicableInState, getAllApplicableGroundedActions, getAssociatedGroundedAction, isParameterized, isPrimitive
addActionObserver, clearAllActionsObservers, deterministicTransition, equals, getAllApplicableGroundedActionsFromActionList, getDomain, getGroundedAction, getName, hashCode, performAction, performInEnvironment
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getTransitions
public LunarLanderDomain.ActionTurn(java.lang.String name, Domain domain, double dir, LunarLanderDomain.LLPhysicsParams physParams)
name
- the name of the actiondomain
- the domain in which the action existsdir
- the direction this action will turn; +1 for clockwise, -1 for counterclockwise.protected State performActionHelper(State st, GroundedAction groundedAction)
Action
Action.performAction(burlap.oomdp.core.states.State, GroundedAction)
first copies the input state to pass
to this helper method. The resulting state (which may be s) should then be returned.performActionHelper
in class Action
st
- the state to perform the action ongroundedAction
- the GroundedAction
specifying the parameters to usepublic LunarLanderDomain.LLPhysicsParams getPhysParams()
public void setPhysParams(LunarLanderDomain.LLPhysicsParams physParams)