public class SimpleGroundedSGAgentAction extends GroundedSGAgentAction
GroundedSGAgentAction
implementation for actions that
are parameter-less.actingAgent, action
Constructor and Description |
---|
SimpleGroundedSGAgentAction(java.lang.String actingAgent,
SGAgentAction a) |
Modifier and Type | Method and Description |
---|---|
GroundedSGAgentAction |
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, hashCode, isParameterized, justActionString, toString
public SimpleGroundedSGAgentAction(java.lang.String actingAgent, SGAgentAction a)
public GroundedSGAgentAction copy()
AbstractGroundedAction
copy
in interface AbstractGroundedAction
copy
in class GroundedSGAgentAction
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 parameters