|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimtools.data.ValueProvider
simtools.data.buffer.Buffer
simtools.data.buffer.SimpleBuffer
simtools.data.buffer.ResizeableBuffer
simtools.data.buffer.DelayedBuffer
public class DelayedBuffer
Unlike parent's, this buffer deletes old elements and give priority to the newly set elements. The Simple and Resizeable buffre only sets new values if possible, this buffer always takes in account new values, even if old ones are dropped in the process. Also, setSlice will bound the buffer size.
Nested Class Summary | |
---|---|
class |
DelayedBuffer.DelayedByteManipulator
This class handles optimization for byte objects. |
class |
DelayedBuffer.DelayedDoubleManipulator
This class handles optimization for double objects. |
class |
DelayedBuffer.DelayedFloatManipulator
This class handles optimization for float objects. |
class |
DelayedBuffer.DelayedIntegerManipulator
This class handles optimization for int objects. |
class |
DelayedBuffer.DelayedLongManipulator
This class handles optimization for long objects. |
class |
DelayedBuffer.DelayedObjectManipulator
This class handles optimization for Object objects. |
class |
DelayedBuffer.DelayedShortManipulator
This class handles optimization for short objects. |
Nested classes/interfaces inherited from class simtools.data.buffer.ResizeableBuffer |
---|
ResizeableBuffer.ResizeableByteManipulator, ResizeableBuffer.ResizeableDoubleManipulator, ResizeableBuffer.ResizeableFloatManipulator, ResizeableBuffer.ResizeableIntegerManipulator, ResizeableBuffer.ResizeableLongManipulator, ResizeableBuffer.ResizeableObjectManipulator, ResizeableBuffer.ResizeableShortManipulator |
Nested classes/interfaces inherited from class simtools.data.buffer.SimpleBuffer |
---|
SimpleBuffer.SimpleByteManipulator, SimpleBuffer.SimpleDoubleManipulator, SimpleBuffer.SimpleFloatManipulator, SimpleBuffer.SimpleIntegerManipulator, SimpleBuffer.SimpleLongManipulator, SimpleBuffer.SimpleObjectManipulator, SimpleBuffer.SimpleShortManipulator |
Nested classes/interfaces inherited from class simtools.data.buffer.Buffer |
---|
Buffer.ByteManipulator, Buffer.DoubleManipulator, Buffer.FloatManipulator, Buffer.IntegerManipulator, Buffer.LongManipulator, Buffer.Manipulator, Buffer.ObjectManipulator, Buffer.ShortManipulator |
Field Summary | |
---|---|
protected int |
delay
Apparent number of index in the buffer. |
Fields inherited from class simtools.data.buffer.ResizeableBuffer |
---|
maxSize, minSize |
Fields inherited from class simtools.data.buffer.SimpleBuffer |
---|
valid |
Fields inherited from class simtools.data.buffer.Buffer |
---|
byteManipulator, doubleManipulator, endIndex, floatManipulator, intManipulator, longManipulator, objectManipulator, provider, shortManipulator, startIndex |
Fields inherited from class simtools.data.ValueProvider |
---|
ByteProvider, DoubleProvider, FloatProvider, IntegerProvider, kind, LongProvider, ObjectProvider, ShortProvider |
Constructor Summary | |
---|---|
DelayedBuffer()
|
|
DelayedBuffer(int delay)
|
|
DelayedBuffer(int type,
int delay)
|
|
DelayedBuffer(int type,
ValueProvider prov)
|
|
DelayedBuffer(int type,
ValueProvider prov,
int delay)
|
|
DelayedBuffer(ValueProvider prov)
|
Method Summary | |
---|---|
protected Buffer.Manipulator |
createManipulator(int kind)
Manipulator factory Subclasses shall implement it to return their specialized versions of Manipulators. |
int |
getDelay()
|
long |
getStartIndex()
|
Methods inherited from class simtools.data.buffer.SimpleBuffer |
---|
clone, initialize |
Methods inherited from class simtools.data.buffer.Buffer |
---|
clear, getByteValue, getDoubleValue, getEndIndex, getFloatValue, getIntegerValue, getKind, getLongValue, getProvider, getShortValue, getValue, setByteValue, setDoubleValue, setFloatValue, setIntegerValue, setLongValue, setProvider, setShortValue, setSlice, setValue |
Methods inherited from class simtools.data.ValueProvider |
---|
getObjectValue, valueClass |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int delay
Constructor Detail |
---|
public DelayedBuffer()
public DelayedBuffer(int delay)
public DelayedBuffer(int type, int delay)
public DelayedBuffer(ValueProvider prov)
public DelayedBuffer(int type, ValueProvider prov)
public DelayedBuffer(int type, ValueProvider prov, int delay)
Method Detail |
---|
public int getDelay()
public long getStartIndex()
getStartIndex
in class Buffer
protected Buffer.Manipulator createManipulator(int kind)
Buffer
createManipulator
in class ResizeableBuffer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |