org.epics.pvmanager.extra
Class DoubleArrayTimeCacheFromVDoubles

java.lang.Object
  extended by org.epics.pvmanager.extra.DoubleArrayTimeCacheFromVDoubles
All Implemented Interfaces:
DoubleArrayTimeCache

public class DoubleArrayTimeCacheFromVDoubles
extends java.lang.Object
implements DoubleArrayTimeCache

Author:
carcassi

Nested Class Summary
 class DoubleArrayTimeCacheFromVDoubles.Data
           
 
Constructor Summary
DoubleArrayTimeCacheFromVDoubles(java.util.List<Function<java.util.List<VDouble>>> functions)
           
 
Method Summary
 DoubleArrayTimeCache.Data getData(Timestamp begin, Timestamp end)
           
 Display getDisplay()
           
 java.util.List<DoubleArrayTimeCache.Data> newData(Timestamp beginUpdate, Timestamp endUpdate, Timestamp beginNew, Timestamp endNew)
          Each segment of the new data ends with an array of old data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleArrayTimeCacheFromVDoubles

public DoubleArrayTimeCacheFromVDoubles(java.util.List<Function<java.util.List<VDouble>>> functions)
Method Detail

getData

public DoubleArrayTimeCache.Data getData(Timestamp begin,
                                         Timestamp end)
Specified by:
getData in interface DoubleArrayTimeCache

newData

public java.util.List<DoubleArrayTimeCache.Data> newData(Timestamp beginUpdate,
                                                         Timestamp endUpdate,
                                                         Timestamp beginNew,
                                                         Timestamp endNew)
Description copied from interface: DoubleArrayTimeCache
Each segment of the new data ends with an array of old data. Two regions can be requested: an update region, where only updates are going to be returned, and a new region, where all data is going to be returned.

Specified by:
newData in interface DoubleArrayTimeCache
Returns:
the new data chunks

getDisplay

public Display getDisplay()
Specified by:
getDisplay in interface DoubleArrayTimeCache