public class BlocksWorld.StackAction extends ObjectParameterizedAction implements FullActionModel
ObjectParameterizedAction.ObjectParameterizedGroundedAction
FullActionModel.FullActionModelHelper
parameterClasses, parameterOrderGroup
actionObservers, domain, name
Constructor and Description |
---|
BlocksWorld.StackAction(java.lang.String name,
Domain domain) |
Modifier and Type | Method and Description |
---|---|
boolean |
applicableInState(State st,
GroundedAction groundedAction)
Returns true if this action can be applied in this specified state with the parameters
specified by the provided
GroundedAction
Default behavior is that an action can be applied in any state,
but this will need be overridden if that is not the case. |
java.util.List<TransitionProbability> |
getTransitions(State s,
GroundedAction groundedAction)
Returns the transition probabilities for applying this action in the given state with the given set of parameters.
|
boolean |
isPrimitive()
Returns whether this action is a primitive action of the domain or not.
|
boolean |
parametersAreObjectIdentifierIndependent() |
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.
|
getAllApplicableGroundedActions, getAssociatedGroundedAction, getParameterClasses, getParameterOrderGroups, isParameterized
addActionObserver, clearAllActionsObservers, deterministicTransition, equals, getAllApplicableGroundedActionsFromActionList, getDomain, getGroundedAction, getName, hashCode, performAction, performInEnvironment
public BlocksWorld.StackAction(java.lang.String name, Domain domain)
public boolean applicableInState(State st, GroundedAction groundedAction)
Action
GroundedAction
Default behavior is that an action can be applied in any state,
but this will need be overridden if that is not the case.applicableInState
in class Action
st
- the state to perform the action ongroundedAction
- the GroundedAction
specifying the parameters to useprotected 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 java.util.List<TransitionProbability> getTransitions(State s, GroundedAction groundedAction)
FullActionModel
TransitionProbability
objects. The list
is only required to contain transitions with non-zero probability.getTransitions
in interface FullActionModel
s
- the state from which the transition probabilities when applying this action will be returned.groundedAction
- the GroundedAction
specifying the parameters to usepublic boolean parametersAreObjectIdentifierIndependent()
parametersAreObjectIdentifierIndependent
in class ObjectParameterizedAction
public boolean isPrimitive()
Action
isPrimitive
in class Action