public static class RLGlueDomain.RLGlueActionType extends java.lang.Object implements ActionType
ActionType
that corresponds to an RLGlue action that is defined by a single int value.Modifier and Type | Class and Description |
---|---|
static class |
RLGlueDomain.RLGlueActionType.RLGLueAction |
Modifier and Type | Field and Description |
---|---|
protected int |
ind
The RLGlue action index
|
Constructor and Description |
---|
RLGlueActionType(Domain domain,
int ind)
Initiaizes.
|
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) |
int |
getInd()
Returns the RLGlue int identifier of this action
|
java.lang.String |
typeName()
The unique name of this
ActionType |
public RLGlueActionType(Domain domain, int ind)
domain
- the BURLAP domain to which the action will belong.ind
- the RLGlue int identifier of the actionpublic int getInd()
public java.lang.String typeName()
ActionType
ActionType
typeName
in interface ActionType
String
name of this ActionType
public Action associatedAction(java.lang.String strRep)
ActionType
Action
whose parameters are specified by the given String
representation (if
the ActionType
manages multiple parameterizations)associatedAction
in interface ActionType
strRep
- the String
representation of the Action
parameters, if any, or null if there are no parameters.Action
public java.util.List<Action> allApplicableActions(State s)
ActionType
State
.allApplicableActions
in interface ActionType
s
- the State
in which all applicable actions of this ActionType
object should be returned.Action
s of this ActionType
object in in the given State