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, isParameterizedpublic SGToSADomain.GroundedSAAActionWrapper(Action action, GroundedSGAgentAction wrappedSGAction)
public void initParamsWithStringRep(java.lang.String[] params)
AbstractGroundedActionAbstractGroundedAction 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()
AbstractGroundedActionAbstractGroundedAction's parametersAbstractGroundedAction's parameterspublic java.lang.String toString()
toString in class GroundedActionpublic GroundedAction translateParameters(State source, State target)
GroundedActionGroundedAction 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 GroundedActionsource - 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 GroundedActionpublic boolean equals(java.lang.Object other)
equals in class GroundedActionpublic GroundedAction copy()
AbstractGroundedActioncopy in interface AbstractGroundedActioncopy in class GroundedAction