|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimtools.data.ValueProvider
simtools.data.DataSource
public abstract class DataSource
Field Summary | |
---|---|
protected ListenerManager |
endNotificationListeners
|
protected ListenerManager |
listeners
|
protected int |
sortedOrder
Determines whether or not values are sorted. -2 : sort compute has not been performed yet -1 : values are sorted in descending order 0 : values are not sorted 1 : values are sorted in ascending order |
Fields inherited from class simtools.data.ValueProvider |
---|
ByteProvider, DoubleProvider, FloatProvider, IntegerProvider, kind, LongProvider, ObjectProvider, ShortProvider |
Constructor Summary | |
---|---|
DataSource()
|
Method Summary | |
---|---|
void |
addEndNotificationListener(EndNotificationListener enl)
|
void |
addListener(DataSourceListener dsl)
|
long |
computeLastIndex()
|
java.lang.Object |
computeMax()
|
java.lang.Object |
computeMin()
Force the computation if possible. |
void |
computeSortedOrder()
Compute sortedOrder attribute reagarding all data source values |
long |
computeStartIndex()
|
protected DataSource |
createEmptyDataSource()
Create an empty data source with same references than current data source. |
boolean |
equals(java.lang.Object obj)
|
java.util.Collection |
getAuxiliarySources()
If the data source is compund return the collection of auxiliary data sources |
byte |
getByteMax()
|
byte |
getByteMin()
|
java.text.ChoiceFormat |
getChoiceFormat()
This method allows you to attach a format to data source values |
java.lang.String |
getDataSourceInformationClass()
This method provide the UI Data source information class name. |
double |
getDoubleMax()
|
double |
getDoubleMin()
|
float |
getFloatMax()
|
float |
getFloatMin()
|
DataInfo |
getInformation()
|
int |
getIntegerMax()
|
int |
getIntegerMin()
|
long |
getLastIndex()
|
long |
getLongMax()
|
long |
getLongMin()
|
java.lang.Object |
getMax()
|
java.lang.Object |
getMin()
Return values if possibly only, without expensive computations. |
short |
getShortMax()
|
short |
getShortMin()
|
int |
getSortedOrder()
|
DataSource[] |
getSourceDependencies()
Returns an array of dependant data sources when serializing. |
long |
getStartIndex()
|
boolean |
isAuxiliary()
|
boolean |
isComparable()
Check if the values are comparable with each other. |
boolean |
isCompound()
Checks if a data source is compound, i.e. if it provides auxiliary data sources |
void |
notifyEndNotificationListeners()
Use this method only when this data source is the referer. |
void |
notifyListenersForDataReplaced(DataSource newData)
|
void |
notifyListenersForDataReplaced(DataSource oldData,
DataSource newData)
|
void |
notifyListenersForIndexRangeChange(long startIndex,
long lastIndex)
|
void |
notifyListenersForInfoChange(DataInfo newInfo)
|
void |
notifyListenersForOrderChange(int newOrder)
|
void |
notifyListenersForValueChange(long minIndex,
long maxIndex)
|
void |
notifyListenersForValueRangeChange()
|
void |
removeEndNotificationListener(EndNotificationListener enl)
|
void |
removeListener(DataSourceListener dsl)
|
void |
setSlice(long min,
long max)
Sets a region of interest in the DataSource. |
int |
sortedOrder()
Check if the values are sorted or not. |
void |
updateSortedOrder()
|
Methods inherited from class simtools.data.ValueProvider |
---|
getByteValue, getDoubleValue, getFloatValue, getIntegerValue, getKind, getLongValue, getObjectValue, getShortValue, getValue, valueClass |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ListenerManager listeners
protected ListenerManager endNotificationListeners
protected int sortedOrder
Constructor Detail |
---|
public DataSource()
Method Detail |
---|
public java.lang.Object getMin() throws UnsupportedOperation
UnsupportedOperation
public java.lang.Object getMax() throws UnsupportedOperation
UnsupportedOperation
public byte getByteMin() throws DataException
DataException
public byte getByteMax() throws DataException
DataException
public short getShortMin() throws DataException
DataException
public short getShortMax() throws DataException
DataException
public int getIntegerMin() throws DataException
DataException
public int getIntegerMax() throws DataException
DataException
public long getLongMin() throws DataException
DataException
public long getLongMax() throws DataException
DataException
public float getFloatMin() throws DataException
DataException
public float getFloatMax() throws DataException
DataException
public double getDoubleMin() throws DataException
DataException
public double getDoubleMax() throws DataException
DataException
public long getStartIndex() throws UnsupportedOperation
UnsupportedOperation
public long getLastIndex() throws UnsupportedOperation
UnsupportedOperation
public java.lang.Object computeMin() throws UnsupportedOperation
UnsupportedOperation
public java.lang.Object computeMax() throws UnsupportedOperation
UnsupportedOperation
public long computeStartIndex() throws UnsupportedOperation
UnsupportedOperation
public long computeLastIndex() throws UnsupportedOperation
UnsupportedOperation
public void setSlice(long min, long max)
public boolean isComparable()
public int sortedOrder()
public int getSortedOrder()
public void computeSortedOrder()
public void updateSortedOrder()
public DataInfo getInformation()
public DataSource[] getSourceDependencies()
public void addListener(DataSourceListener dsl)
public void removeListener(DataSourceListener dsl)
public void addEndNotificationListener(EndNotificationListener enl)
public void removeEndNotificationListener(EndNotificationListener enl)
public void notifyListenersForValueChange(long minIndex, long maxIndex)
public void notifyListenersForIndexRangeChange(long startIndex, long lastIndex)
public void notifyListenersForInfoChange(DataInfo newInfo)
public void notifyListenersForDataReplaced(DataSource oldData, DataSource newData)
protected DataSource createEmptyDataSource()
public void notifyListenersForDataReplaced(DataSource newData)
public void notifyListenersForValueRangeChange()
public void notifyListenersForOrderChange(int newOrder)
public void notifyEndNotificationListeners()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isCompound()
public boolean isAuxiliary()
public java.util.Collection getAuxiliarySources()
public java.lang.String getDataSourceInformationClass()
public java.text.ChoiceFormat getChoiceFormat()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |