protected static class CartPoleDomain.MovementAction extends SimpleAction.SimpleDeterministicAction implements FullActionModel
SimpleAction.SimpleDeterministicAction
FullActionModel.FullActionModelHelper
actionObservers, domain, name
Constructor and Description |
---|
CartPoleDomain.MovementAction(java.lang.String name,
Domain domain,
double dir,
CartPoleDomain.CPPhysicsParams physParams)
Initializes.
|
Modifier and Type | Method and Description |
---|---|
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, performAction, performInEnvironment
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getTransitions
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.physParams
- the CartPoleDomain.CPPhysicsParams
object specifying the physics to use for movementprotected 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