public class SimpleGroundedAction extends GroundedAction
GroundedAction
implementation for actions that have no parameters.action
Constructor and Description |
---|
SimpleGroundedAction(Action action) |
Modifier and Type | Method and Description |
---|---|
GroundedAction |
copy()
Returns a copy of this grounded action.
|
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. |
actionName, applicableInState, equals, executeIn, executeIn, getTransitions, hashCode, isParameterized, toString, translateParameters
public SimpleGroundedAction(Action action)
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 GroundedAction copy()
AbstractGroundedAction
copy
in interface AbstractGroundedAction
copy
in class GroundedAction