simtools.data.async
Class MultiStampedDataSource.LabelSource

java.lang.Object
  extended by simtools.data.ValueProvider
      extended by simtools.data.DataSource
          extended by simtools.data.async.TimeStampedDataSource
              extended by simtools.data.async.MultiStampedDataSource.LabelSource
Enclosing class:
MultiStampedDataSource

public abstract class MultiStampedDataSource.LabelSource
extends TimeStampedDataSource


Nested Class Summary
 
Nested classes/interfaces inherited from class simtools.data.async.TimeStampedDataSource
TimeStampedDataSource.TimeSource
 
Field Summary
protected  java.lang.String type
           
 
Fields inherited from class simtools.data.async.TimeStampedDataSource
_auxiliaries
 
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
MultiStampedDataSource.LabelSource(java.lang.String type)
           
 
Method Summary
protected  void computeMinMax()
           
 java.util.Collection getAuxiliarySources()
          If the data source is compund return the collection of auxiliary data sources
 double getEnd()
           
 long getLastIndex()
           
 double getStart()
           
 long getStartIndex()
           
abstract  java.lang.Object getValue(long index)
           
 boolean isAuxiliary()
           
 boolean isCompound()
          Checks if a data source is compound, i.e. if it provides auxiliary data sources
 boolean isValid()
           
 
Methods inherited from class simtools.data.async.TimeStampedDataSource
createEmptyDataSource, getCollection, getDataSourceInformationClass, getDoubleMax, getDoubleMin, getDoubleValue, getInfo, getInformation, getMax, getMin, getName, getTime, setInfo, setMax, setMin, setMinmax, setTime, toString
 
Methods inherited from class simtools.data.DataSource
addEndNotificationListener, addListener, computeLastIndex, computeMax, computeMin, computeSortedOrder, computeStartIndex, equals, getByteMax, getByteMin, getChoiceFormat, getFloatMax, getFloatMin, getIntegerMax, getIntegerMin, getLongMax, getLongMin, getShortMax, getShortMin, getSortedOrder, getSourceDependencies, isComparable, notifyEndNotificationListeners, notifyListenersForDataReplaced, notifyListenersForDataReplaced, notifyListenersForIndexRangeChange, notifyListenersForInfoChange, notifyListenersForOrderChange, notifyListenersForValueChange, notifyListenersForValueRangeChange, removeEndNotificationListener, removeListener, setSlice, sortedOrder, 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, wait, wait, wait
 

Field Detail

type

protected java.lang.String type
Constructor Detail

MultiStampedDataSource.LabelSource

public MultiStampedDataSource.LabelSource(java.lang.String type)
                                   throws java.io.IOException,
                                          TimeStampedDataSourceCollection.InvalidFormatException
Throws:
java.io.IOException
TimeStampedDataSourceCollection.InvalidFormatException
Method Detail

getValue

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

getStartIndex

public long getStartIndex()
                   throws UnsupportedOperation
Specified by:
getStartIndex in class TimeStampedDataSource
Throws:
UnsupportedOperation

getLastIndex

public long getLastIndex()
                  throws UnsupportedOperation
Specified by:
getLastIndex in class TimeStampedDataSource
Throws:
UnsupportedOperation

getStart

public double getStart()
                throws DataException
Specified by:
getStart in class TimeStampedDataSource
Throws:
DataException

getEnd

public double getEnd()
              throws DataException
Specified by:
getEnd in class TimeStampedDataSource
Throws:
DataException

getAuxiliarySources

public java.util.Collection getAuxiliarySources()
Description copied from class: DataSource
If the data source is compund return the collection of auxiliary data sources

Overrides:
getAuxiliarySources in class TimeStampedDataSource
Returns:
the auxilary data source collection or null if not a compound data source

isCompound

public boolean isCompound()
Description copied from class: DataSource
Checks if a data source is compound, i.e. if it provides auxiliary data sources

Overrides:
isCompound in class TimeStampedDataSource
Returns:
true if it is compound

isValid

public boolean isValid()
Specified by:
isValid in class TimeStampedDataSource
Returns:
true if it is valid

computeMinMax

protected void computeMinMax()
                      throws UnsupportedOperation
Specified by:
computeMinMax in class TimeStampedDataSource
Throws:
UnsupportedOperation

isAuxiliary

public boolean isAuxiliary()
Overrides:
isAuxiliary in class DataSource
Returns:
true if the data source is an auxiliary data source