|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectstimulator.Cycle
public class Cycle
Stimulus generator package. This class defines a single cycle: sequence info, timing info and stimulus maps and name. Copyright (c) 1999-2004, Michael Abramoff. All rights reserved.
| Field Summary | |
|---|---|
static int |
DURING
|
static int |
ENDED
|
long |
flickerDuration
|
static int |
IDLE
|
static int |
POST
|
static int |
PRE
|
| Constructor Summary | |
|---|---|
Cycle()
|
|
Cycle(StimScreen screen,
ij.process.ByteProcessor baseline,
ij.process.ByteProcessor map,
ij.process.ByteProcessor[] idleMap,
int sequenceNumber,
double pre,
double during,
double post,
double idle,
double flickerFrequency)
Set up an epoch. |
|
| Method Summary | |
|---|---|
java.awt.Image[] |
getImages()
Get the stimulus Images (for flicker off and on) for the current state. |
long |
getLength()
|
int |
getState()
Gets the state this epoch is in at time t: one of ENDED, PRE, DURING, POST, or IDLE |
boolean |
isEnded()
|
boolean |
isIdle()
|
boolean |
sameState()
|
long |
setStartTime()
Set the display start time for this epoch. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ENDED
public static final int PRE
public static final int DURING
public static final int POST
public static final int IDLE
public long flickerDuration
| Constructor Detail |
|---|
public Cycle()
public Cycle(StimScreen screen,
ij.process.ByteProcessor baseline,
ij.process.ByteProcessor map,
ij.process.ByteProcessor[] idleMap,
int sequenceNumber,
double pre,
double during,
double post,
double idle,
double flickerFrequency)
screen - the screen on which the epoch's maps will be displayed.baseline - the baseline map shown when tpre+during and t< pre+during+post
map - the stimulus map, shown when preidleMap - the idle maps shown when t<0 or t >= pre+during+post, depending on tsequenceNumber - the number for this Epoch's sequence, i.e. that specific map.pre - prestimulus in msduring - stimulus in mspost - poststimulus in msidle - idle period in msflickerFrequency - the flicker frequency in Hz.| Method Detail |
|---|
public long setStartTime()
public long getLength()
public int getState()
public boolean isIdle()
public boolean isEnded()
public boolean sameState()
public java.awt.Image[] getImages()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||