public class GazeContainer extends java.lang.Object implements IGazeContainer
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BLINKS_LENGTH
Default length of the queue of blinks
|
static int |
DEFAULT_FIXATIONS_LENGTH
Default length of the queue of fixations
|
static int |
DEFAULT_SAMPLES_LENGTH
Default length of the queue of samples
|
protected Queue<GazeEntryBlink> |
mBlinks
Blinks queue
|
protected Queue<GazeEntryFixation> |
mFixations
Fixations queue
|
protected Queue<GazeEntrySample> |
mSamples
Right eye samples queue
|
Constructor and Description |
---|
GazeContainer() |
GazeContainer(int blinks,
int fixations,
int samples) |
Modifier and Type | Method and Description |
---|---|
<T extends GazeEntryBase> |
Add(T entry)
Add gaze entry to the container
|
<T extends GazeEntryBase> |
Add(java.util.Vector<T> entries)
Add gaze entry to the container
|
<T extends GazeEntryBase> |
Get(EEntryType type)
Get queue of entries
|
public static int DEFAULT_BLINKS_LENGTH
public static int DEFAULT_FIXATIONS_LENGTH
public static int DEFAULT_SAMPLES_LENGTH
protected Queue<GazeEntryBlink> mBlinks
protected Queue<GazeEntryFixation> mFixations
protected Queue<GazeEntrySample> mSamples
public GazeContainer()
public GazeContainer(int blinks, int fixations, int samples)
public <T extends GazeEntryBase> void Add(T entry)
IGazeContainer
Add
in interface IGazeContainer
T
- Type of the gaze entryentry
- Entry to addpublic <T extends GazeEntryBase> Queue<T> Get(EEntryType type) throws java.lang.Exception
IGazeContainer
Get
in interface IGazeContainer
T
- Type of entries to returnjava.lang.Exception
public <T extends GazeEntryBase> void Add(java.util.Vector<T> entries)
IGazeContainer
Add
in interface IGazeContainer
T
- Type of the gaze entryentries
- List of entries to add