simtools.data.buffer
Class ResizeableBuffer.ResizeableDoubleManipulator

java.lang.Object
  extended by simtools.data.buffer.Buffer.DoubleManipulator
      extended by simtools.data.buffer.SimpleBuffer.SimpleDoubleManipulator
          extended by simtools.data.buffer.ResizeableBuffer.ResizeableDoubleManipulator
All Implemented Interfaces:
java.lang.Cloneable, Buffer.Manipulator
Direct Known Subclasses:
DelayedBuffer.DelayedDoubleManipulator
Enclosing class:
ResizeableBuffer

public class ResizeableBuffer.ResizeableDoubleManipulator
extends SimpleBuffer.SimpleDoubleManipulator

This class handles optimization for double objects.


Field Summary
 
Fields inherited from class simtools.data.buffer.SimpleBuffer.SimpleDoubleManipulator
buffer
 
Constructor Summary
ResizeableBuffer.ResizeableDoubleManipulator()
           
 
Method Summary
 double 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, double value)
           
 
Methods inherited from class simtools.data.buffer.SimpleBuffer.SimpleDoubleManipulator
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizeableBuffer.ResizeableDoubleManipulator

public ResizeableBuffer.ResizeableDoubleManipulator()
Method Detail

getValue

public double getValue(long index)
                throws DataException
Overrides:
getValue in class SimpleBuffer.SimpleDoubleManipulator
Throws:
DataException

setValue

public boolean setValue(long index,
                        double value)
                 throws DataException
Overrides:
setValue in class SimpleBuffer.SimpleDoubleManipulator
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.DoubleManipulator