public class InvertedPendulum.ForceAction extends Action
InvertedPendulum.physParams
data member.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, parameterClasses, parameterOrderGroup
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,
java.lang.String[] params)
Returns the transition probabilities for applying this action in the given state with the given set of parameters.
|
protected State |
performActionHelper(State s,
java.lang.String[] params)
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
protected 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, java.lang.String[] params)
Action
performActionHelper
in class Action
s
- the state to perform the action onparams
- a String array specifying the action object parameterspublic java.util.List<TransitionProbability> getTransitions(State s, java.lang.String[] params)
Action
TransitionProbability
objects. 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.getTransitions
in class Action
s
- the state from which the transition probabilities when applying this action will be returned.params
- a String array specifying the action object parameters