public static class SGToSADomain.GroundedSAAActionWrapper extends GroundedAction
action
Constructor and Description |
---|
SGToSADomain.GroundedSAAActionWrapper(Action action,
GroundedSGAgentAction wrappedSGAction) |
Modifier and Type | Method and Description |
---|---|
GroundedAction |
copy()
Returns a copy of this grounded action.
|
boolean |
equals(java.lang.Object other) |
java.lang.String[] |
getParametersAsString()
Returns an array of string representations of this
AbstractGroundedAction 's parameters |
int |
hashCode() |
void |
initParamsWithStringRep(java.lang.String[] params)
Initializes the parameter values of this
AbstractGroundedAction according
to the provided string representation of their values. |
java.lang.String |
toString() |
GroundedAction |
translateParameters(State source,
State target)
A helper method that handles action translate in case this
GroundedAction implements
AbstractObjectParameterizedGroundedAction . |
actionName, applicableInState, executeIn, executeIn, getTransitions, isParameterized
public SGToSADomain.GroundedSAAActionWrapper(Action action, GroundedSGAgentAction wrappedSGAction)
public void initParamsWithStringRep(java.lang.String[] params)
AbstractGroundedAction
AbstractGroundedAction
according
to the provided string representation of their values.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 parametersAbstractGroundedAction
's parameterspublic java.lang.String toString()
toString
in class GroundedAction
public GroundedAction translateParameters(State source, State target)
GroundedAction
GroundedAction
implements
AbstractObjectParameterizedGroundedAction
. Works by calling the
AbstractObjectParameterizedGroundedAction.Helper.translateParameters(burlap.oomdp.core.AbstractGroundedAction, burlap.oomdp.core.states.State, burlap.oomdp.core.states.State)
method with this object as the action to translate.
If this is a AbstractObjectParameterizedGroundedAction
, then a new GroundedAction
with its object parameters mapped to the object names sin the target state
is returned.translateParameters
in class GroundedAction
source
- the source state in which this GroundedAction
's parameters were bound.target
- the target state in which the returned GroundedAction
will have its parameters bound.AbstractObjectParameterizedGroundedAction
, then a new GroundedAction
with its object parameters mapped to the object names sin the target statepublic int hashCode()
hashCode
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