public abstract class AbstractGroundedAction
extends java.lang.Object
GroundedAction
), an action grounding for a specific agent
in a stochastic game GroundedSingleAction
, and a joint action in a stochastic game (JointAction
).Modifier and Type | Field and Description |
---|---|
java.lang.String[] |
params
Object parameters of the action (if any)
|
Constructor and Description |
---|
AbstractGroundedAction() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
actionDomainIsObjectIdentifierDependent()
Returns true if the domain to which this action belongs is object identifier dependent
|
abstract java.lang.String |
actionName()
Returns the action name for this grounded action.
|
abstract AbstractGroundedAction |
copy()
Returns a copy of this grounded action.
|
abstract State |
executeIn(State s)
Executes the grounded action on a given state
|
abstract boolean |
isExecutable()
Returns true if this grounded action can be directly executed on a state with the
executeIn(State) method. |
boolean |
isParameterized()
Returns true if this action uses parameters
|
abstract boolean |
parametersAreObjects()
Returns true if all parameters (if any) for this action represent OO-MDP objects in a state; false otherwise.
|
AbstractGroundedAction |
translateParameters(State sourceState,
State targetState)
This method will translate this object's parameters that were assigned for a given source state, into object parameters in the
target state that are equal.
|
public abstract java.lang.String actionName()
public abstract boolean isExecutable()
executeIn(State)
method. For example, a single agent domain grounded action is executable; a stochastic games single grounded action
is not, because the action of all other agents must also be known in order to get the next state.public abstract State executeIn(State s)
s
- the state on which to execute the actionpublic abstract boolean actionDomainIsObjectIdentifierDependent()
public abstract AbstractGroundedAction copy()
public boolean isParameterized()
public abstract boolean parametersAreObjects()
GroundedAction
will query
its referenced Action
object; GroundedSingleAction
will query its referenced SingleAction
.public AbstractGroundedAction translateParameters(State sourceState, State targetState)
sourceState
- the source state from which this objects parameters were bound.targetState
- a target state with potentially different object identifiers for equivalent values.