|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lnsc.page.AbstractState | +--stimulusdelayreward.MonkeyObservableState
This class serves as interface between complete ExperimentState and Monkey agents. Monkeys can only observed the stimulis signal and juice delivery (or tasting) signal. Because this class only serves as observable state, it does not implement getStates or getObservableStates methods. The class also provides the agent with a fixed list of action (a single NullAction action since no action are required here).
Constructor Summary | |
MonkeyObservableState(ExperimentState state)
Construct the state that the monkey observes from an experimental state. |
Method Summary | |
Action[] |
getActions()
Returns the list of available action 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 |
getRewardSignal()
Reward (juice) signal. |
double |
getStimulusSignal()
Stimulus signal. |
DataSet |
toDataSet()
Similar to the toString method, but return state content in the form of a DataSet. |
Methods inherited from class lnsc.page.AbstractState |
areActionsFixed, clone, doAction, getActionCount, getActionsEnumerator, getProbability, getValue, isCloneable, isDeterministic, isFinal, isObservable, isValid, supportsDo, supportsUndo, toString, undoAction |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MonkeyObservableState(ExperimentState state)
Method Detail |
public Action[] getActions()
State
public State[] getNextStates(Action a)
State
a
- The action to apply.
public State[] getObservableStates()
State
getObservableStates
in interface State
getObservableStates
in class AbstractState
public double getRewardSignal()
public double getStimulusSignal()
public DataSet toDataSet()
State
toDataSet
in interface State
toDataSet
in class AbstractState
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |