|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines a state as generally understand in RL and other AI problems.
Method Summary | |
boolean |
areActionsFixed()
Indicates whether the list of actions is fixed (always the same) or not. |
java.lang.Object |
clone()
|
void |
doAction(Action a)
Do an action. |
int |
getActionCount()
Indicates how many actions it generates. |
Action[] |
getActions()
Returns the list of available action from the current state. |
java.util.Enumeration |
getActionsEnumerator()
Returns an iterator that list the available actions from the current state. |
State[] |
getNextStates(Action a)
Returns the list state following the current state under a given action. |
State[] |
getObservableStates()
Returns the list state of observable states for the agents. |
double |
getProbability()
Probability of the state, for non-deterministic StateGenerators only. |
double |
getValue()
Value associated to the state. |
boolean |
isCloneable()
Indicates whether or not the state can be copied |
boolean |
isDeterministic()
Indicates whether only the resulting state is returned or whether a list of possible next states is returned. |
boolean |
isFinal()
Indicates whether or not a state is final (generally a goal state). |
boolean |
isObservable()
Indicates whether of not a state is observable by agents. |
boolean |
isValid()
Indicates whether the state is valid or not. |
boolean |
supportsDo()
Indicates whether or not do action is supported locally. |
boolean |
supportsUndo()
Indicates whether or not undo action is supported. |
DataSet |
toDataSet()
Similar to the toString method, but return state content in the form of a DataSet. |
void |
undoAction()
Undo last action done. |
Method Detail |
public boolean areActionsFixed()
public java.lang.Object clone()
public void doAction(Action a)
public int getActionCount()
public Action[] getActions()
public java.util.Enumeration getActionsEnumerator()
public State[] getNextStates(Action a)
a
- The action to apply.
public State[] getObservableStates()
public double getProbability()
public double getValue()
public boolean isCloneable()
public boolean isDeterministic()
public boolean isFinal()
public boolean isObservable()
public boolean isValid()
public boolean supportsDo()
public boolean supportsUndo()
public DataSet toDataSet()
public void undoAction()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |