|Constructor and Description|
|Modifier and Type||Method and Description|
Returns the transition probabilities for applying this action in the given state with the given set of parameters.
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, performAction, performAction
public CartPoleDomain.MovementAction(java.lang.String name, Domain domain, double dir, CartPoleDomain.CPPhysicsParams physParams)
name- the name of the action.
domain- the domain object to which this action will be associated.
dir- the direction of force applied to the cart.
CartPoleDomain.CPPhysicsParamsobject specifying the physics to use for movement
public java.util.List<TransitionProbability> getTransitions(State s, java.lang.String params)
TransitionProbabilityobjects. 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.
s- the state from which the transition probabilities when applying this action will be returned.
params- a String array specifying the action object parameters