| Modifier and Type | Field and Description |
|---|---|
protected int |
dir |
protected int |
maxx |
protected boolean |
useSemiDeep |
actionObservers, domain, name, parameterClasses, parameterOrderGroup| Constructor and Description |
|---|
BlockDude.MoveAction(java.lang.String name,
Domain domain,
int dir)
Initializes.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<TransitionProbability> |
getTransitions(State s,
java.lang.String[] params)
Returns the transition probabilities for applying this action in the given state with the given set of parameters.
|
State |
performAction(State s,
java.lang.String[] params)
Performs this action in the specified state using the specified parameters and returns the resulting state.
|
protected State |
performActionHelper(State s,
java.lang.String[] params)
This method determines what happens when an action is applied in the given state with the given parameters.
|
addActionObserver, applicableInState, applicableInState, clearAllActionsObservers, deterministicTransition, equals, getAllApplicableGroundedActions, getAllApplicableGroundedActionsFromActionList, getDomain, getName, getParameterClasses, getParameterOrderGroups, getTransitions, hashCode, init, isPrimitive, parametersAreObjects, performActionprotected 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, java.lang.String[] params)
ActionAction.performActionHelper(State, String[]) 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.params - a String array specifying the action object parametersprotected State performActionHelper(State s, java.lang.String[] params)
ActionperformActionHelper in class Actions - the state to perform the action onparams - a String array specifying the action object parameterspublic java.util.List<TransitionProbability> getTransitions(State s, java.lang.String[] params)
ActionTransitionProbability objects. The list
is only required to contain transitions with non-zero probability. Since not all planning algorithms require
the full transition dynamics (and since it's impossible to enumerate them in some infinite state space domains),
this method is not requried to be implemented. However, it will throw an UnsupportedOperationException
if it is not overriden by the Action subclass if it is called by an algorithm that requires it.getTransitions in class Actions - the state from which the transition probabilities when applying this action will be returned.params - a String array specifying the action object parameters