stimulusdelayreward
Class ExperimentControlState
java.lang.Object
|
+--lnsc.page.AbstractState
|
+--stimulusdelayreward.ExperimentState
|
+--stimulusdelayreward.ExperimentControlState
- All Implemented Interfaces:
- java.lang.Cloneable, State
- public class ExperimentControlState
- extends ExperimentState
Experiment is a sequence of trial and inter-trial. A trial is a single
presentation of a CS or a US (on time-step). Inter-trials delay avg 6s
Trial details:
- At t = 0
-> Present stimulus or reward chosen randomly
- At t = 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.
| 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 |
ExperimentControlState(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 |
ExperimentControlState
public ExperimentControlState(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