public class BlockDude.MoveUpAction extends SimpleAction.SimpleDeterministicAction implements FullActionModel
SimpleAction.SimpleDeterministicAction
FullActionModel.FullActionModelHelper
Modifier and Type | Field and Description |
---|---|
protected int |
maxx |
protected boolean |
useSemiDeep |
actionObservers, domain, name
Constructor and Description |
---|
BlockDude.MoveUpAction(Domain domain) |
Modifier and Type | Method and Description |
---|---|
State |
performAction(State s,
GroundedAction groundedAction)
Performs this action in the specified state using the specified parameters and returns the resulting state.
|
protected State |
performActionHelper(State s,
GroundedAction groundedAction)
This method determines what happens when an action is applied in the given state with the given parameters.
|
getTransitions
applicableInState, getAllApplicableGroundedActions, getAssociatedGroundedAction, isParameterized, isPrimitive
addActionObserver, clearAllActionsObservers, deterministicTransition, equals, getAllApplicableGroundedActionsFromActionList, getDomain, getGroundedAction, getName, hashCode, performInEnvironment
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getTransitions
public BlockDude.MoveUpAction(Domain domain)
public State performAction(State s, GroundedAction groundedAction)
Action
Action.performActionHelper(State, burlap.oomdp.singleagent.GroundedAction)
method.
Only override this method if you are seeking to perform memory optimization with semi-shallow copies of states and know what you're doing.performAction
in class Action
s
- the state in which the action is to be performed.groundedAction
- the GroundedAction
specifying the parameters to useprotected State performActionHelper(State s, 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
s
- the state to perform the action ongroundedAction
- the GroundedAction
specifying the parameters to use