simtools.data.async
Class AsynchronousMergeDSCollection.AsynchronousMergeDataSource.RefTime

java.lang.Object
  extended by simtools.data.ValueProvider
      extended by simtools.data.DataSource
          extended by simtools.data.async.TimeStampedDataSource.TimeSource
              extended by simtools.data.async.AsynchronousMergeDSCollection.AsynchronousMergeDataSource.RefTime
Enclosing class:
AsynchronousMergeDSCollection.AsynchronousMergeDataSource

public class AsynchronousMergeDSCollection.AsynchronousMergeDataSource.RefTime
extends TimeStampedDataSource.TimeSource


Field Summary
 
Fields inherited from class simtools.data.async.TimeStampedDataSource.TimeSource
info
 
Fields inherited from class simtools.data.DataSource
endNotificationListeners, listeners, sortedOrder
 
Fields inherited from class simtools.data.ValueProvider
ByteProvider, DoubleProvider, FloatProvider, IntegerProvider, kind, LongProvider, ObjectProvider, ShortProvider
 
Constructor Summary
AsynchronousMergeDSCollection.AsynchronousMergeDataSource.RefTime(DataSource timeSource, boolean isRelative, double offset, double initialDate)
           
 
Method Summary
 double getDoubleValue(long index)
          Optimized accessor for double values.
 long getLastIndex()
           
 long getStartIndex()
           
 java.lang.Object getValue(long index)
           
 
Methods inherited from class simtools.data.async.TimeStampedDataSource.TimeSource
getInformation, getMax, getMin, isAuxiliary, sortedOrder
 
Methods inherited from class simtools.data.DataSource
addEndNotificationListener, addListener, computeLastIndex, computeMax, computeMin, computeSortedOrder, computeStartIndex, createEmptyDataSource, equals, getAuxiliarySources, getByteMax, getByteMin, getChoiceFormat, getDataSourceInformationClass, getDoubleMax, getDoubleMin, getFloatMax, getFloatMin, getIntegerMax, getIntegerMin, getLongMax, getLongMin, getShortMax, getShortMin, getSortedOrder, getSourceDependencies, isComparable, isCompound, notifyEndNotificationListeners, notifyListenersForDataReplaced, notifyListenersForDataReplaced, notifyListenersForIndexRangeChange, notifyListenersForInfoChange, notifyListenersForOrderChange, notifyListenersForValueChange, notifyListenersForValueRangeChange, removeEndNotificationListener, removeListener, setSlice, updateSortedOrder
 
Methods inherited from class simtools.data.ValueProvider
getByteValue, getFloatValue, getIntegerValue, getKind, getLongValue, getObjectValue, getShortValue, valueClass
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsynchronousMergeDSCollection.AsynchronousMergeDataSource.RefTime

public AsynchronousMergeDSCollection.AsynchronousMergeDataSource.RefTime(DataSource timeSource,
                                                                         boolean isRelative,
                                                                         double offset,
                                                                         double initialDate)
                                                                  throws DataException
Parameters:
timeSource -
offset. - A number of seconds
Throws:
DataException
Method Detail

getStartIndex

public long getStartIndex()
                   throws UnsupportedOperation
Overrides:
getStartIndex in class TimeStampedDataSource.TimeSource
Throws:
UnsupportedOperation

getLastIndex

public long getLastIndex()
                  throws UnsupportedOperation
Overrides:
getLastIndex in class TimeStampedDataSource.TimeSource
Throws:
UnsupportedOperation

getValue

public java.lang.Object getValue(long index)
                          throws DataException
Specified by:
getValue in class TimeStampedDataSource.TimeSource
Throws:
DataException

getDoubleValue

public double getDoubleValue(long index)
                      throws DataException
Description copied from class: ValueProvider
Optimized accessor for double values. If the provider can provide doubles directly, then it should override this method. Otherwise, the default implementation will do its best to convert the Object returned by getValue() to a double. This conversion also parses strings, and returns 0 if it failed. An exception is thrown if, and only if, getValue throws it.

Specified by:
getDoubleValue in class TimeStampedDataSource.TimeSource
Throws:
DataException