protected static class SingleStageNormalFormGame.NFGSingleAction extends SingleAction
actionName, domain, parameterOrderGroups, parameterTypes
Constructor and Description |
---|
SingleStageNormalFormGame.NFGSingleAction(SGDomain d,
java.lang.String name,
SingleStageNormalFormGame.ActionNameMap[] actionNameToIndex) |
Modifier and Type | Method and Description |
---|---|
boolean |
isApplicableInState(State s,
java.lang.String actingAgent,
java.lang.String[] params)
Returns true if this action can be applied in the given state by the given agent with the given parameters.
|
equals, getAllGroundedActionsFor, getAllPossibleGroundedSingleActions, hashCode, isPamaeterized, parametersAreObjects
public SingleStageNormalFormGame.NFGSingleAction(SGDomain d, java.lang.String name, SingleStageNormalFormGame.ActionNameMap[] actionNameToIndex)
public boolean isApplicableInState(State s, java.lang.String actingAgent, java.lang.String[] params)
SingleAction
isApplicableInState
in class SingleAction
s
- the state in which the action would be executed.actingAgent
- the agent who would be executing the actionparams
- the parameters applied