examples.async
Class StreamingTSDataPlugin.SourceCollection

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector
              extended by simtools.data.DataSourceCollection
                  extended by simtools.data.async.TimeStampedDataSourceCollection
                      extended by simtools.data.async.StreamingTSDataSourceCollection
                          extended by examples.async.StreamingTSDataPlugin.SourceCollection
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess, EndNotificationListener
Enclosing class:
StreamingTSDataPlugin

public static class StreamingTSDataPlugin.SourceCollection
extends StreamingTSDataSourceCollection
implements EndNotificationListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class simtools.data.async.TimeStampedDataSourceCollection
TimeStampedDataSourceCollection.InvalidFormatException
 
Nested classes/interfaces inherited from class simtools.data.DataSourceCollection
DataSourceCollection.Container
 
Field Summary
static java.lang.String ID_MARKER
           
 
Fields inherited from class simtools.data.async.StreamingTSDataSourceCollection
_maxSize, _minDuration, _minSize
 
Fields inherited from class simtools.data.async.TimeStampedDataSourceCollection
_container, _end, _start, ID_DATE_FORMAT, timeStampedDateFormat
 
Fields inherited from class simtools.data.DataSourceCollection
buffers, endNotificationListeners, lastIndex, listeners, map, startIndex
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
StreamingTSDataPlugin.SourceCollection()
           
 
Method Summary
 java.util.Collection getCollectionContainers()
          If the data source collection is compound return the first level collection of containers used to organize the data sources
 DataInfo getInformation()
           
 boolean isCompound()
          Checks if a data source collection is compound, i.e. if it provides containers to organize the data source hierarchically
 void notificationEnd(java.lang.Object referer)
          This callback is called after all notifications were processed.
 
Methods inherited from class simtools.data.async.StreamingTSDataSourceCollection
add, add, add, getDoubleValue, getValue
 
Methods inherited from class simtools.data.async.TimeStampedDataSourceCollection
computeMax, computeMin, getEnd, getInformation, getMax, getMin, getStart, setEnd, setStart, valueClass
 
Methods inherited from class simtools.data.DataSourceCollection
addEndNotificationListener, addListener, attachBuffer, bufferize, bufferize, bufferize, computeLastIndex, computeLastIndex, computeStartIndex, computeStartIndex, get, getByteMax, getByteMin, getByteValue, getDoubleMax, getDoubleMin, getFloatMax, getFloatMin, getFloatValue, getIntegerMax, getIntegerMin, getIntegerValue, getKind, getLastIndex, getLastIndex, getLongMax, getLongMin, getLongValue, getShortMax, getShortMin, getShortValue, getStartIndex, getStartIndex, hashCode, isComparable, notifyEndNotificationListeners, notifyListenersForCollectionRemoved, notifyListenersForDataSourceAdded, notifyListenersForDataSourceRemoved, notifyListenersForInfoChange, removeAllElements, removeEndNotificationListener, removeListener, setSlice, sortedOrder
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

ID_MARKER

public static final java.lang.String ID_MARKER
See Also:
Constant Field Values
Constructor Detail

StreamingTSDataPlugin.SourceCollection

public StreamingTSDataPlugin.SourceCollection()
                                       throws java.io.IOException,
                                              TimeStampedDataSourceCollection.InvalidFormatException
Throws:
java.io.IOException
TimeStampedDataSourceCollection.InvalidFormatException
Method Detail

getCollectionContainers

public java.util.Collection getCollectionContainers()
Description copied from class: DataSourceCollection
If the data source collection is compound return the first level collection of containers used to organize the data sources

Overrides:
getCollectionContainers in class TimeStampedDataSourceCollection
Returns:
the first level collection of containers or null

getInformation

public DataInfo getInformation()
Overrides:
getInformation in class StreamingTSDataSourceCollection

isCompound

public boolean isCompound()
Description copied from class: DataSourceCollection
Checks if a data source collection is compound, i.e. if it provides containers to organize the data source hierarchically

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

notificationEnd

public void notificationEnd(java.lang.Object referer)
Description copied from interface: EndNotificationListener
This callback is called after all notifications were processed. The referer object is the one to decide what the end means. For example, it may be a single data source notifying both a range change and a value change. Or it could be a collection notifying all its sources.

Specified by:
notificationEnd in interface EndNotificationListener