public class LunarLanderDomain.ActionThrust extends SimpleAction.SimpleDeterministicAction implements FullActionModel
SimpleAction.SimpleDeterministicAction
FullActionModel.FullActionModelHelper
Modifier and Type | Field and Description |
---|---|
protected double |
thrustValue |
actionObservers, domain, name
Constructor and Description |
---|
LunarLanderDomain.ActionThrust(java.lang.String name,
Domain domain,
double thrustValue,
LunarLanderDomain.LLPhysicsParams physParams)
Initializes a thrust action for a given thrust force
|
Modifier and Type | Method and Description |
---|---|
LunarLanderDomain.LLPhysicsParams |
getPhysParams() |
double |
getThrustValue() |
protected State |
performActionHelper(State st,
GroundedAction groundedAction)
This method determines what happens when an action is applied in the given state with the given parameters.
|
void |
setPhysParams(LunarLanderDomain.LLPhysicsParams physParams) |
void |
setThrustValue(double thrustValue) |
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 LunarLanderDomain.ActionThrust(java.lang.String name, Domain domain, double thrustValue, LunarLanderDomain.LLPhysicsParams physParams)
name
- the name of the actiondomain
- the domain of the actionthrustValue
- the force of thrust for this thrust actionprotected State performActionHelper(State st, 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
st
- the state to perform the action ongroundedAction
- the GroundedAction
specifying the parameters to usepublic double getThrustValue()
public void setThrustValue(double thrustValue)
public LunarLanderDomain.LLPhysicsParams getPhysParams()
public void setPhysParams(LunarLanderDomain.LLPhysicsParams physParams)