public class InvertedPendulum.ForceAction extends SimpleAction implements FullActionModel
InvertedPendulum.physParams data member.SimpleAction.SimpleDeterministicActionFullActionModel.FullActionModelHelper| Modifier and Type | Field and Description |
|---|---|
protected double |
baseForce
The base noise to which noise will be added.
|
protected InvertedPendulum.IPPhysicsParams |
physParams
The physics parameters to use
|
actionObservers, domain, name| Constructor and Description |
|---|
InvertedPendulum.ForceAction(java.lang.String name,
Domain domain,
double force,
InvertedPendulum.IPPhysicsParams physParams)
Initializes the force action
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
applicableInState, getAllApplicableGroundedActions, getAssociatedGroundedAction, isParameterized, isPrimitiveaddActionObserver, clearAllActionsObservers, deterministicTransition, equals, getAllApplicableGroundedActionsFromActionList, getDomain, getGroundedAction, getName, hashCode, performAction, performInEnvironmentprotected double baseForce
protected InvertedPendulum.IPPhysicsParams physParams
public InvertedPendulum.ForceAction(java.lang.String name,
Domain domain,
double force,
InvertedPendulum.IPPhysicsParams physParams)
name - the name of the actiondomain - the domain object to which the action will belong.force - the base force this action applies; noise will be added to this force according to the InvertedPendulum.physParams data member.physParams - the InvertedPendulum.IPPhysicsParams 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 usepublic java.util.List<TransitionProbability> getTransitions(State s, GroundedAction groundedAction)
FullActionModelTransitionProbability objects. The list
is only required to contain transitions with non-zero probability.getTransitions in interface FullActionModels - the state from which the transition probabilities when applying this action will be returned.groundedAction - the GroundedAction specifying the parameters to use