stimulusdelayreward
Class MonkeyObservableState

java.lang.Object
  |
  +--lnsc.page.AbstractState
        |
        +--stimulusdelayreward.MonkeyObservableState
All Implemented Interfaces:
java.lang.Cloneable, State

public class MonkeyObservableState
extends AbstractState

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

MonkeyObservableState

public MonkeyObservableState(ExperimentState state)
Construct the state that the monkey observes from an experimental state.

Method Detail

getActions

public Action[] getActions()
Description copied from interface: State
Returns the list of available action from the current state.

Returns:
The list of available action.

getNextStates

public State[] getNextStates(Action a)
Description copied from interface: State
Returns the list state following the current state under a given action.

Parameters:
a - The action to apply.
Returns:
The list of available action.

getObservableStates

public State[] getObservableStates()
Description copied from interface: State
Returns the list state of observable states for the agents.

Specified by:
getObservableStates in interface State
Overrides:
getObservableStates in class AbstractState
Returns:
The list of observable states.

getRewardSignal

public double getRewardSignal()
Reward (juice) signal.


getStimulusSignal

public double getStimulusSignal()
Stimulus signal.


toDataSet

public DataSet toDataSet()
Description copied from interface: State
Similar to the toString method, but return state content in the form of a DataSet. Can be null.

Specified by:
toDataSet in interface State
Overrides:
toDataSet in class AbstractState
Returns:
A DataSet containing a description of the State.