public static class ObjectParameterizedAction.ObjectParameterizedGroundedAction extends GroundedAction implements AbstractObjectParameterizedGroundedAction
AbstractObjectParameterizedGroundedAction.Helper
Modifier and Type | Field and Description |
---|---|
java.lang.String[] |
params |
action
Constructor and Description |
---|
ObjectParameterizedAction.ObjectParameterizedGroundedAction(Action action) |
ObjectParameterizedAction.ObjectParameterizedGroundedAction(Action action,
java.lang.String[] params) |
Modifier and Type | Method and Description |
---|---|
boolean |
actionDomainIsObjectIdentifierIndependent()
Returns true if this
AbstractGroundedAction is for a domain in which states are identifier independent; false if dependent |
GroundedAction |
copy()
Returns a copy of this grounded action.
|
boolean |
equals(java.lang.Object other) |
java.lang.String[] |
getObjectParameters()
Returns the parameters of this
AbstractGroundedAction that correspond to OO-MDP objects. |
java.lang.String[] |
getParametersAsString()
Returns an array of string representations of this
AbstractGroundedAction 's parameters |
void |
initParamsWithStringRep(java.lang.String[] params)
Initializes the parameter values of this
AbstractGroundedAction according
to the provided string representation of their values. |
void |
setObjectParameters(java.lang.String[] params)
Sets the object parameters for this
AbstractGroundedAction . |
java.lang.String |
toString() |
actionName, applicableInState, executeIn, executeIn, getTransitions, hashCode, isParameterized, translateParameters
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
actionName, isParameterized
public ObjectParameterizedAction.ObjectParameterizedGroundedAction(Action action)
public ObjectParameterizedAction.ObjectParameterizedGroundedAction(Action action, java.lang.String[] params)
public java.lang.String[] getObjectParameters()
AbstractObjectParameterizedGroundedAction
AbstractGroundedAction
that correspond to OO-MDP objects.getObjectParameters
in interface AbstractObjectParameterizedGroundedAction
AbstractGroundedAction
that correspond to OO-MDP objects.public void initParamsWithStringRep(java.lang.String[] params)
AbstractGroundedAction
AbstractGroundedAction
according
to the provided string representation of their values.initParamsWithStringRep
in interface AbstractGroundedAction
params
- an array in which each element is the string representation of one of this AbstractGroundedAction
's valuespublic java.lang.String[] getParametersAsString()
AbstractGroundedAction
AbstractGroundedAction
's parametersgetParametersAsString
in interface AbstractGroundedAction
AbstractGroundedAction
's parameterspublic void setObjectParameters(java.lang.String[] params)
AbstractObjectParameterizedGroundedAction
AbstractGroundedAction
.setObjectParameters
in interface AbstractObjectParameterizedGroundedAction
params
- the object parameters to use.public boolean actionDomainIsObjectIdentifierIndependent()
AbstractObjectParameterizedGroundedAction
AbstractGroundedAction
is for a domain in which states are identifier independent; false if dependentactionDomainIsObjectIdentifierIndependent
in interface AbstractObjectParameterizedGroundedAction
AbstractGroundedAction
is for a domain in which states are identifier independent; false if dependentpublic java.lang.String toString()
toString
in class GroundedAction
public boolean equals(java.lang.Object other)
equals
in class GroundedAction
public GroundedAction copy()
AbstractGroundedAction
copy
in interface AbstractGroundedAction
copy
in class GroundedAction