public class OptionType extends java.lang.Object implements ActionType
ActionType for generating a specific unparameterized option. The allApplicableActions(State)
method checks the option initiation set via its Option.inInitiationSet(State) method
and returns a list containing the option only if it is satisfied.| Constructor and Description |
|---|
OptionType(Option o) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Action> |
allApplicableActions(State s)
Returns all possible actions of this type that can be applied in the provided
State. |
Action |
associatedAction(java.lang.String strRep)
Returns an
Action whose parameters are specified by the given String representation (if
the ActionType manages multiple parameterizations) |
java.lang.String |
typeName()
The unique name of this
ActionType |
public OptionType(Option o)
public java.lang.String typeName()
ActionTypeActionTypetypeName in interface ActionTypeString name of this ActionTypepublic Action associatedAction(java.lang.String strRep)
ActionTypeAction whose parameters are specified by the given String representation (if
the ActionType manages multiple parameterizations)associatedAction in interface ActionTypestrRep - the String representation of the Action parameters, if any, or null if there are no parameters.Actionpublic java.util.List<Action> allApplicableActions(State s)
ActionTypeState.allApplicableActions in interface ActionTypes - the State in which all applicable actions of this ActionType object should be returned.Actions of this ActionType object in in the given State