Option.Helper| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Action> |
actionSequence
The list of actions that will be executed in order when this macro-action is called.
|
protected java.lang.String |
name
The name of the action
|
| Constructor and Description |
|---|
MacroAction()
Default constructor for serialization purposes.
|
MacroAction(java.lang.String name,
java.util.List<Action> actionSequence)
Instantiates a macro action with a given name and action sequence.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
actionName()
Returns the action name for this grounded action.
|
int |
actionSequenceSize() |
EnvironmentOptionOutcome |
control(Environment env,
double discount) |
Action |
copy()
Returns a copy of this grounded action.
|
boolean |
equals(java.lang.Object o) |
java.util.List<Action> |
getActionSequence() |
java.lang.String |
getName() |
int |
hashCode() |
boolean |
inInitiationSet(State s)
Returns true if the input state is in the initiation set of the
Option |
boolean |
markov() |
Action |
policy(State s,
Episode history) |
java.util.List<ActionProb> |
policyDistribution(State s,
Episode history) |
double |
probabilityOfTermination(State s,
Episode history) |
void |
setActionSequence(java.util.List<Action> actionSequence) |
void |
setName(java.lang.String name) |
protected java.lang.String name
protected java.util.List<Action> actionSequence
public MacroAction()
MacroAction(String, List)public MacroAction(java.lang.String name,
java.util.List<Action> actionSequence)
name - the name of the macro action.actionSequence - the sequence of actions the macro action will execute.public java.lang.String getName()
public void setName(java.lang.String name)
public java.util.List<Action> getActionSequence()
public void setActionSequence(java.util.List<Action> actionSequence)
public double probabilityOfTermination(State s, Episode history)
probabilityOfTermination in interface Optionpublic boolean inInitiationSet(State s)
OptionOptioninInitiationSet in interface Options - the State to test.public java.util.List<ActionProb> policyDistribution(State s, Episode history)
policyDistribution in interface Optionpublic EnvironmentOptionOutcome control(Environment env, double discount)
public java.lang.String actionName()
ActionactionName in interface Actionpublic Action copy()
Actionpublic int actionSequenceSize()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object