protected static class CartPoleDomain.MovementAction extends SimpleAction.SimpleDeterministicAction implements FullActionModel
SimpleAction.SimpleDeterministicActionFullActionModel.FullActionModelHelperactionObservers, 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.
|
getTransitionsapplicableInState, getAllApplicableGroundedActions, getAssociatedGroundedAction, isParameterized, isPrimitiveaddActionObserver, clearAllActionsObservers, deterministicTransition, equals, getAllApplicableGroundedActionsFromActionList, getDomain, getGroundedAction, getName, hashCode, performAction, performInEnvironmentclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetTransitionspublic 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)
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