public class BlockDude.MoveAction extends SimpleAction.SimpleDeterministicAction implements FullActionModel
SimpleAction.SimpleDeterministicActionFullActionModel.FullActionModelHelper| Modifier and Type | Field and Description |
|---|---|
protected int |
dir |
protected int |
maxx |
protected boolean |
useSemiDeep |
actionObservers, domain, name| Constructor and Description |
|---|
BlockDude.MoveAction(java.lang.String name,
Domain domain,
int dir)
Initializes.
|
| 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.
|
getTransitionsapplicableInState, getAllApplicableGroundedActions, getAssociatedGroundedAction, isParameterized, isPrimitiveaddActionObserver, clearAllActionsObservers, deterministicTransition, equals, getAllApplicableGroundedActionsFromActionList, getDomain, getGroundedAction, getName, hashCode, performInEnvironmentclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetTransitionsprotected int dir
protected boolean useSemiDeep
protected int maxx
public BlockDude.MoveAction(java.lang.String name,
Domain domain,
int dir)
name - the name of the actiondomain - the domain to which it will be associateddir - the direction of movement: +1 for east; -1 for west.public State performAction(State s, GroundedAction groundedAction)
ActionAction.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 Actions - the state in which the action is to be performed.groundedAction - the GroundedAction specifying the parameters to useprotected State performActionHelper(State s, GroundedAction groundedAction)
ActionAction.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 Actions - the state to perform the action ongroundedAction - the GroundedAction specifying the parameters to use