|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimtools.data.ValueProvider
simtools.data.DataSource
simtools.data.async.TimeStampedDataSource
public abstract class TimeStampedDataSource
A data source to put together the value and its sampling date It is designed to collect asynchronous data sources in one collection Each data has its owwn sampling date, there is no simple way to correlate the data belonging to this king of data collection since the data index can not be used to get 2 synchronised values.
Nested Class Summary | |
---|---|
class |
TimeStampedDataSource.TimeSource
|
Field Summary | |
---|---|
protected simtools.data.async.TimeStampedDataSource.AuxiliaryCollection |
_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 | |
---|---|
TimeStampedDataSource(java.lang.String label,
java.lang.String id,
TimeStampedDataSourceCollection c)
|
Method Summary | |
---|---|
protected abstract void |
computeMinMax()
|
protected DataSource |
createEmptyDataSource()
Create an empty data source with same references than current data source. |
java.util.Collection |
getAuxiliarySources()
If the data source is compund return the collection of auxiliary data sources |
TimeStampedDataSourceCollection |
getCollection()
|
java.lang.String |
getDataSourceInformationClass()
This method provide the UI Data source information class name. |
double |
getDoubleMax()
|
double |
getDoubleMin()
|
abstract double |
getDoubleValue(long index)
Optimized accessor for double values. |
abstract double |
getEnd()
|
protected DataInfo |
getInfo()
|
DataInfo |
getInformation()
|
abstract long |
getLastIndex()
|
java.lang.Object |
getMax()
|
java.lang.Object |
getMin()
Return values if possibly only, without expensive computations. |
protected java.lang.String |
getName()
|
abstract double |
getStart()
|
abstract long |
getStartIndex()
|
TimeStampedDataSource.TimeSource |
getTime()
|
abstract java.lang.Object |
getValue(long index)
|
boolean |
isCompound()
Checks if a data source is compound, i.e. if it provides auxiliary data sources |
abstract boolean |
isValid()
|
protected void |
setInfo(DataInfo info)
|
protected void |
setMax(java.lang.Double max)
|
protected void |
setMin(java.lang.Double min)
|
protected void |
setMinmax(boolean minmax)
|
void |
setTime(TimeStampedDataSource.TimeSource time)
|
java.lang.String |
toString()
|
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 |
---|
protected simtools.data.async.TimeStampedDataSource.AuxiliaryCollection _auxiliaries
Constructor Detail |
---|
public TimeStampedDataSource(java.lang.String label, java.lang.String id, TimeStampedDataSourceCollection c) throws java.io.IOException, TimeStampedDataSourceCollection.InvalidFormatException
label
- The data source nameid
- The data source idc
- The collection holding this data
java.io.IOException
TimeStampedDataSourceCollection.InvalidFormatException
Method Detail |
---|
protected DataSource createEmptyDataSource()
createEmptyDataSource
in class DataSource
public abstract double getStart() throws DataException
DataException
public abstract double getEnd() throws DataException
DataException
protected abstract void computeMinMax() throws UnsupportedOperation
UnsupportedOperation
public abstract java.lang.Object getValue(long index) throws DataException
getValue
in class ValueProvider
DataException
public abstract double getDoubleValue(long index) throws DataException
ValueProvider
getDoubleValue
in class ValueProvider
DataException
public abstract long getStartIndex() throws UnsupportedOperation
getStartIndex
in class DataSource
UnsupportedOperation
public abstract long getLastIndex() throws UnsupportedOperation
getLastIndex
in class DataSource
UnsupportedOperation
public double getDoubleMin() throws DataException
getDoubleMin
in class DataSource
DataException
public double getDoubleMax() throws DataException
getDoubleMax
in class DataSource
DataException
public java.lang.String toString()
toString
in class java.lang.Object
public DataInfo getInformation()
getInformation
in class DataSource
public TimeStampedDataSourceCollection getCollection()
public void setTime(TimeStampedDataSource.TimeSource time)
time
- The time to set.public TimeStampedDataSource.TimeSource getTime()
protected java.lang.String getName()
protected void setMinmax(boolean minmax)
minmax
- The minmax to set.protected void setInfo(DataInfo info)
info
- The info to set.protected DataInfo getInfo()
protected void setMin(java.lang.Double min)
min
- The min to set.public java.lang.Object getMin()
DataSource
getMin
in class DataSource
protected void setMax(java.lang.Double max)
max
- The max to set.public java.lang.Object getMax()
getMax
in class DataSource
public abstract boolean isValid()
public java.util.Collection getAuxiliarySources()
DataSource
getAuxiliarySources
in class DataSource
public boolean isCompound()
DataSource
isCompound
in class DataSource
public java.lang.String getDataSourceInformationClass()
DataSource
getDataSourceInformationClass
in class DataSource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |