simtools.data.buffer
Class ResizeableBuffer.ResizeableFloatManipulator

java.lang.Object
  extended by simtools.data.buffer.Buffer.FloatManipulator
      extended by simtools.data.buffer.SimpleBuffer.SimpleFloatManipulator
          extended by simtools.data.buffer.ResizeableBuffer.ResizeableFloatManipulator
All Implemented Interfaces:
java.lang.Cloneable, Buffer.Manipulator
Direct Known Subclasses:
DelayedBuffer.DelayedFloatManipulator
Enclosing class:
ResizeableBuffer

public class ResizeableBuffer.ResizeableFloatManipulator
extends SimpleBuffer.SimpleFloatManipulator

This class handles optimization for float objects.


Field Summary
 
Fields inherited from class simtools.data.buffer.SimpleBuffer.SimpleFloatManipulator
buffer
 
Constructor Summary
ResizeableBuffer.ResizeableFloatManipulator()
           
 
Method Summary
 float getValue(long index)
           
 void setSlice(long min, long max)
          Use this function to optimize the buffer on the given index range
 boolean setValue(long index, float value)
           
 
Methods inherited from class simtools.data.buffer.SimpleBuffer.SimpleFloatManipulator
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizeableBuffer.ResizeableFloatManipulator

public ResizeableBuffer.ResizeableFloatManipulator()
Method Detail

getValue

public float getValue(long index)
               throws DataException
Overrides:
getValue in class SimpleBuffer.SimpleFloatManipulator
Throws:
DataException

setValue

public boolean setValue(long index,
                        float value)
                 throws DataException
Overrides:
setValue in class SimpleBuffer.SimpleFloatManipulator
Throws:
DataException

setSlice

public void setSlice(long min,
                     long max)
Use this function to optimize the buffer on the given index range

Overrides:
setSlice in class Buffer.FloatManipulator