simtools.data.buffer
Class SimpleBuffer.SimpleDoubleManipulator

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

public class SimpleBuffer.SimpleDoubleManipulator
extends Buffer.DoubleManipulator

This class handles optimization for double objects.


Field Summary
protected  double[] buffer
           
 
Constructor Summary
SimpleBuffer.SimpleDoubleManipulator()
           
 
Method Summary
 java.lang.Object clone()
           
 double getValue(long index)
           
 boolean setValue(long index, double value)
           
 
Methods inherited from class simtools.data.buffer.Buffer.DoubleManipulator
setSlice
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected transient double[] buffer
Constructor Detail

SimpleBuffer.SimpleDoubleManipulator

public SimpleBuffer.SimpleDoubleManipulator()
Method Detail

getValue

public double getValue(long index)
                throws DataException
Specified by:
getValue in class Buffer.DoubleManipulator
Throws:
DataException

setValue

public boolean setValue(long index,
                        double value)
                 throws DataException
Overrides:
setValue in class Buffer.DoubleManipulator
Throws:
DataException

clone

public java.lang.Object clone()
Overrides:
clone in class Buffer.DoubleManipulator