stimulusdelayreward
Class ExperimentTestState
java.lang.Object
|
+--lnsc.page.AbstractState
|
+--stimulusdelayreward.ExperimentState
|
+--stimulusdelayreward.ExperimentTestState
- All Implemented Interfaces:
- java.lang.Cloneable, State
- Direct Known Subclasses:
- ExperimentMissTestState
- public class ExperimentTestState
- extends 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).)
In this test version, there are only 5 trials, which I either shorter, or
longuer than normal. Their order is chosen randomly.
Block details:
- InterTrial
- Short or Long trial
- InterTrial
- Short or Long trial
- InterTrial
- Short or Long trial
- InterTrial
- Short or Long trial
- InterTrial
- Short or Long trial
- InterTrial
- t=0, isFinal=true
For Trials details, see ExperimentState.
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.
Fields inherited from class stimulusdelayreward.ExperimentState |
CS_ONLY, CURRENT_DELAY, CURRENT_STEP, CURRENT_TRIAL, CURRENT_TRIALTYPE, FIX_CSUS, IS_IN_TRIAL, ITI, LONG_CSUS, MISS, PI_FIX_CSUS, PI_LONG_CSUS, PI_SHORT_CSUS, REWARD, SHORT_CSUS, STEP, STIMULUS, US_ONLY |
Constructor Summary |
ExperimentTestState(int fixedDelay)
First constructor to initialize an experiment (a run) that will
begin with an inter-trial at t=0. |
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 |
ExperimentTestState
public ExperimentTestState(int fixedDelay)
- First constructor to initialize an experiment (a run) that will
begin with an inter-trial at t=0.
- Parameters:
fixedDelay
- Delay bewtween US onset and CS onset in ms.
doAction
public void doAction(Action a)
- Description copied from interface:
State
- Do an action.
- Specified by:
doAction
in interface State
- Overrides:
doAction
in class ExperimentState