|
|||||||||
| 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.CollectiveDataSource
simtools.data.merge.SynchronousMergeDSCollection.DirectSynchronousMergedDataSource
public class SynchronousMergeDSCollection.DirectSynchronousMergedDataSource
A data source dedicated to manage aperiodical data sources.
| Field Summary | |
|---|---|
protected DataInfo |
info
|
protected DataSource |
source
|
protected DataSource |
timeRef
|
| Fields inherited from class simtools.data.CollectiveDataSource |
|---|
collection, myIndex |
| 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 | |
|---|---|
protected |
SynchronousMergeDSCollection.DirectSynchronousMergedDataSource(java.lang.String name,
DataSourceCollection c,
int i,
DataSource source,
DataSource timeSource,
boolean isRelative,
double offset,
double initialDate)
|
| Method Summary | |
|---|---|
java.lang.Object |
computeMax()
|
java.lang.Object |
computeMin()
Force the computation if possible. |
double |
getDoubleMax()
|
double |
getDoubleMin()
|
double |
getDoubleValue(long index)
Optimized accessor for double values. |
DataInfo |
getInformation()
These methods are common to the whole collection |
java.lang.Object |
getMax()
|
java.lang.Object |
getMin()
Return values if possibly only, without expensive computations. |
java.lang.Object |
getObjectValue(long index)
Naming compatibility function. |
protected double |
getTimeDoubleValue(long index)
Compute time value for specified index. |
java.lang.Object |
getValue(long index)
|
protected void |
setInfo(java.lang.String name)
|
int |
sortedOrder()
Check if the values are sorted or not. |
void |
updateDirectBuffer()
Interpolate source values in order to fit with collection time reference. |
| Methods inherited from class simtools.data.ValueProvider |
|---|
valueClass |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DataInfo info
protected DataSource source
protected DataSource timeRef
| Constructor Detail |
|---|
protected SynchronousMergeDSCollection.DirectSynchronousMergedDataSource(java.lang.String name,
DataSourceCollection c,
int i,
DataSource source,
DataSource timeSource,
boolean isRelative,
double offset,
double initialDate)
| Method Detail |
|---|
public void updateDirectBuffer()
throws DataException,
java.lang.OutOfMemoryError
DataException
java.lang.OutOfMemoryError
protected double getTimeDoubleValue(long index)
throws DataException
index -
DataException
public java.lang.Object computeMax()
throws UnsupportedOperation
computeMax in class CollectiveDataSourceUnsupportedOperation
public java.lang.Object computeMin()
throws UnsupportedOperation
CollectiveDataSource
computeMin in class CollectiveDataSourceUnsupportedOperation
public java.lang.Object getMax()
throws UnsupportedOperation
getMax in class CollectiveDataSourceUnsupportedOperation
public java.lang.Object getMin()
throws UnsupportedOperation
DataSource
getMin in class CollectiveDataSourceUnsupportedOperationpublic int sortedOrder()
DataSource
sortedOrder in class CollectiveDataSourcepublic DataInfo getInformation()
CollectiveDataSource
getInformation in class CollectiveDataSourceprotected void setInfo(java.lang.String name)
public java.lang.Object getObjectValue(long index)
throws DataException
ValueProvider
getObjectValue in class ValueProviderDataException
public double getDoubleValue(long index)
throws DataException
ValueProvider
getDoubleValue in class CollectiveDataSourceDataException
public java.lang.Object getValue(long index)
throws DataException
getValue in class CollectiveDataSourceDataException
public double getDoubleMax()
throws DataException
getDoubleMax in class CollectiveDataSourceDataException
public double getDoubleMin()
throws DataException
getDoubleMin in class CollectiveDataSourceDataException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||