|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--lnsc.page.AbstractState
|
+--stimulusdelayreward.ExperimentState
Experiment is a sequence of trial and inter-trial. A trial begin by the presentation of the stimuli and terminates on juice delivery (reward). An inter-trial begins after the juice delivery. (A trial is one time-step longuer tha its delay (for reward delivery).) Trial details: - At t = 0 -> Present stimulus - At t in [1, trial_delay-1] (in setps) -> No signal - At t = trial_delay (in steps) -> Present reward - At t = trial_delay+1 -> == inter-trial at t=0 Inter-trial details - At t in [0, intertrial_delay-1] -> No signal - At t = intertrial_delay -> == trial at t=0 The class getStates uses a combination of clone and doAction. This class does not provided list of actions, since it is not obervable. This is not observable, and thus returns an equivalent observable state.
| Field Summary | |
static int |
CS_ONLY
|
static java.lang.String |
CURRENT_DELAY
|
static java.lang.String |
CURRENT_STEP
|
static java.lang.String |
CURRENT_TRIAL
|
static java.lang.String |
CURRENT_TRIALTYPE
|
static int |
FIX_CSUS
|
static java.lang.String |
IS_IN_TRIAL
|
static int |
ITI
m_TrialType constants |
static int |
LONG_CSUS
|
static int |
MISS
|
static int |
PI_FIX_CSUS
|
static int |
PI_LONG_CSUS
|
static int |
PI_SHORT_CSUS
|
static java.lang.String |
REWARD
|
static int |
SHORT_CSUS
|
static java.lang.String |
STEP
|
static java.lang.String |
STIMULUS
|
static int |
US_ONLY
|
| Constructor Summary | |
ExperimentState(int fixedDelay)
First constructor to initialize an experiment (a run) that will begin with an inter-trial at t=0. |
|
| Method Summary | |
void |
doAction(Action a)
Do an action. |
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. |
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, 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 |
| Field Detail |
public static final int CS_ONLY
public static final java.lang.String CURRENT_DELAY
public static final java.lang.String CURRENT_STEP
public static final java.lang.String CURRENT_TRIAL
public static final java.lang.String CURRENT_TRIALTYPE
public static final int FIX_CSUS
public static final java.lang.String IS_IN_TRIAL
public static final int ITI
public static final int LONG_CSUS
public static final int MISS
public static final int PI_FIX_CSUS
public static final int PI_LONG_CSUS
public static final int PI_SHORT_CSUS
public static final java.lang.String REWARD
public static final int SHORT_CSUS
public static final java.lang.String STEP
public static final java.lang.String STIMULUS
public static final int US_ONLY
| Constructor Detail |
public ExperimentState(int fixedDelay)
fixedDelay - Delay between US onset and CS onset in ms.| Method Detail |
public void doAction(Action a)
State
doAction in interface StatedoAction in class AbstractStatepublic Action[] getActions()
State
public State[] getNextStates(Action a)
State
a - The action to apply.
public State[] getObservableStates()
State
getObservableStates in interface StategetObservableStates in class AbstractStatepublic DataSet toDataSet()
State
toDataSet in interface StatetoDataSet in class AbstractState
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||