simtools.data
Class DefaultEmptyDataSource
java.lang.Object
simtools.data.ValueProvider
simtools.data.DataSource
simtools.data.DefaultEmptyDataSource
- All Implemented Interfaces:
- EmptyDataSource
- Direct Known Subclasses:
- BufferedEmptyDataSource
public class DefaultEmptyDataSource
- extends DataSource
- implements EmptyDataSource
- Author:
- zxpletran007
Constructor Summary |
DefaultEmptyDataSource(java.lang.String dsId,
java.lang.String dscId,
java.lang.Object dsOptionalInformation)
|
Methods inherited from class simtools.data.DataSource |
addEndNotificationListener, addListener, computeSortedOrder, createEmptyDataSource, equals, getAuxiliarySources, getByteMax, getByteMin, getChoiceFormat, getDataSourceInformationClass, getDoubleMax, getDoubleMin, getFloatMax, getFloatMin, getIntegerMax, getIntegerMin, getLongMax, getLongMin, getShortMax, getShortMin, getSortedOrder, getSourceDependencies, isAuxiliary, isComparable, isCompound, notifyEndNotificationListeners, notifyListenersForDataReplaced, notifyListenersForDataReplaced, notifyListenersForIndexRangeChange, notifyListenersForInfoChange, notifyListenersForOrderChange, notifyListenersForValueChange, notifyListenersForValueRangeChange, removeEndNotificationListener, removeListener, setSlice, sortedOrder, updateSortedOrder |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultEmptyDataSource
public DefaultEmptyDataSource(java.lang.String dsId,
java.lang.String dscId,
java.lang.Object dsOptionalInformation)
getDataSourceId
public java.lang.String getDataSourceId()
- Specified by:
getDataSourceId
in interface EmptyDataSource
- Returns:
- data source id related to missing data source
getDataSourceCollectionId
public java.lang.String getDataSourceCollectionId()
- Specified by:
getDataSourceCollectionId
in interface EmptyDataSource
- Returns:
- data source collection id related to missing data source
getDataSourceOptionalInformation
public java.lang.Object getDataSourceOptionalInformation()
- Specified by:
getDataSourceOptionalInformation
in interface EmptyDataSource
- Returns:
- data source optional information related to missing data source
getValue
public java.lang.Object getValue(long index)
throws DataException
- Specified by:
getValue
in class ValueProvider
- Throws:
DataException
getInformation
public DataInfo getInformation()
- Overrides:
getInformation
in class DataSource
getStartIndex
public long getStartIndex()
throws UnsupportedOperation
- Overrides:
getStartIndex
in class DataSource
- Throws:
UnsupportedOperation
getLastIndex
public long getLastIndex()
throws UnsupportedOperation
- Overrides:
getLastIndex
in class DataSource
- Throws:
UnsupportedOperation
computeMin
public java.lang.Object computeMin()
throws UnsupportedOperation
- Description copied from class:
DataSource
- Force the computation if possible. The operation may take some time.
- Overrides:
computeMin
in class DataSource
- Throws:
UnsupportedOperation
computeMax
public java.lang.Object computeMax()
throws UnsupportedOperation
- Overrides:
computeMax
in class DataSource
- Throws:
UnsupportedOperation
computeStartIndex
public long computeStartIndex()
throws UnsupportedOperation
- Overrides:
computeStartIndex
in class DataSource
- Throws:
UnsupportedOperation
computeLastIndex
public long computeLastIndex()
throws UnsupportedOperation
- Overrides:
computeLastIndex
in class DataSource
- Throws:
UnsupportedOperation
getMin
public java.lang.Object getMin()
throws UnsupportedOperation
- Description copied from class:
DataSource
- Return values if possibly only, without expensive computations.
- Overrides:
getMin
in class DataSource
- Throws:
UnsupportedOperation
getMax
public java.lang.Object getMax()
throws UnsupportedOperation
- Overrides:
getMax
in class DataSource
- Throws:
UnsupportedOperation