simtools.data.async
Class TimeStampedEmptyDataSource.TimeSourceEmpty

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.TimeStampedEmptyDataSource.TimeSourceEmpty
Enclosing class:
TimeStampedEmptyDataSource

public class TimeStampedEmptyDataSource.TimeSourceEmpty
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
TimeStampedEmptyDataSource.TimeSourceEmpty()
           
 
Method Summary
 double getDoubleValue(long index)
          Optimized accessor for double values.
 java.lang.Object getValue(long index)
           
 
Methods inherited from class simtools.data.async.TimeStampedDataSource.TimeSource
getInformation, getLastIndex, getMax, getMin, getStartIndex, 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

TimeStampedEmptyDataSource.TimeSourceEmpty

public TimeStampedEmptyDataSource.TimeSourceEmpty()
Method Detail

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