jsynoptic.plugins.merge
Class JSAsynchronousMergeDSCollection

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.AsynchronousMergeDSCollection
                          extended by jsynoptic.plugins.merge.JSAsynchronousMergeDSCollection
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess, MergeDSCollection

public class JSAsynchronousMergeDSCollection
extends AsynchronousMergeDSCollection

A JSynoptic implementation of AsynchronousMergeDSCollection. Add action listener and posibility to serialize information

Author:
zxpletran007
See Also:
Serialized Form

Nested Class Summary
static class JSAsynchronousMergeDSCollection.AsynchronousMergeDataSourceInformation
          A nested class dedicated to serialize information about a merged data.
static class JSAsynchronousMergeDSCollection.AsynchronousMergeDSCollectionInformation
          A nested class dedicated to serialize all information about a merge collection
 
Nested classes/interfaces inherited from class simtools.data.async.AsynchronousMergeDSCollection
AsynchronousMergeDSCollection.AsynchronousMergeDataSource, AsynchronousMergeDSCollection.MergedCollectionContainer
 
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
protected static java.util.logging.Logger _logger
          A looger to dump error or warning messages in a soket, an output stream, a file...
protected  JSAsynchronousMergeDSCollection.AsynchronousMergeDSCollectionInformation information
          list of merged data information
protected static MenuResourceBundle resources
           
 
Fields inherited from class simtools.data.async.AsynchronousMergeDSCollection
collectionName, collectionRoot, HUGEREPERTORYSIZE, ID_MARKER
 
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
JSAsynchronousMergeDSCollection(JSAsynchronousMergeDSCollection.AsynchronousMergeDSCollectionInformation information)
           
JSAsynchronousMergeDSCollection(java.lang.String name)
           
 
Method Summary
 void add(DataSourceCollection collection, DataSource timeRef, boolean isRelative, double offset, double initialDate)
          Merge a synchronous collection to the mergeDSCollection.
 void add(DataSource data, DataSource timeRef, boolean isRelative, double offset, double initialDate)
          Merge a synchronous data to the mergeDSCollection.
 void add(TimeStampedDataSourceCollection collection, double offset, double initialDate)
          Merge a time stamped collection to the mergeDSCollection
 void add(TimeStampedDataSource data, double offset, double initialDate)
          Merge a time stamped data to the mergeDSCollection
 JSAsynchronousMergeDSCollection.AsynchronousMergeDSCollectionInformation getMergeInformation()
           
 
Methods inherited from class simtools.data.async.AsynchronousMergeDSCollection
getCollectionContainers, getCollectionName, getDataSourceNode, getDoubleValue, getInformation, getValue, isCompound, sortHugeRepertories, sortHugeRepertory
 
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

_logger

protected static java.util.logging.Logger _logger
A looger to dump error or warning messages in a soket, an output stream, a file...


resources

protected static MenuResourceBundle resources

information

protected JSAsynchronousMergeDSCollection.AsynchronousMergeDSCollectionInformation information
list of merged data information

Constructor Detail

JSAsynchronousMergeDSCollection

public JSAsynchronousMergeDSCollection(java.lang.String name)
                                throws java.io.IOException,
                                       TimeStampedDataSourceCollection.InvalidFormatException
Throws:
java.io.IOException
TimeStampedDataSourceCollection.InvalidFormatException

JSAsynchronousMergeDSCollection

public JSAsynchronousMergeDSCollection(JSAsynchronousMergeDSCollection.AsynchronousMergeDSCollectionInformation information)
                                throws java.io.IOException,
                                       TimeStampedDataSourceCollection.InvalidFormatException
Throws:
java.io.IOException
TimeStampedDataSourceCollection.InvalidFormatException
Method Detail

getMergeInformation

public JSAsynchronousMergeDSCollection.AsynchronousMergeDSCollectionInformation getMergeInformation()

add

public void add(TimeStampedDataSourceCollection collection,
                double offset,
                double initialDate)
         throws MergeDataException
Description copied from interface: MergeDSCollection
Merge a time stamped collection to the mergeDSCollection

Specified by:
add in interface MergeDSCollection
Overrides:
add in class AsynchronousMergeDSCollection
initialDate - An initial absolute date for relative <-> absolute consersion
Throws:
MergeDataException

add

public void add(TimeStampedDataSource data,
                double offset,
                double initialDate)
         throws MergeDataException
Description copied from interface: MergeDSCollection
Merge a time stamped data to the mergeDSCollection

Specified by:
add in interface MergeDSCollection
Overrides:
add in class AsynchronousMergeDSCollection
initialDate - An initial absolute date for relative <-> absolute consersion
Throws:
MergeDataException

add

public void add(DataSourceCollection collection,
                DataSource timeRef,
                boolean isRelative,
                double offset,
                double initialDate)
         throws MergeDataException
Description copied from interface: MergeDSCollection
Merge a synchronous collection to the mergeDSCollection.

Specified by:
add in interface MergeDSCollection
Overrides:
add in class AsynchronousMergeDSCollection
timeRef - true is timeRef is expressed with relative time.
initialDate - An initial absolute date for relative <-> absolute consersion
Throws:
MergeDataException

add

public void add(DataSource data,
                DataSource timeRef,
                boolean isRelative,
                double offset,
                double initialDate)
         throws MergeDataException
Description copied from interface: MergeDSCollection
Merge a synchronous data to the mergeDSCollection.

Specified by:
add in interface MergeDSCollection
Overrides:
add in class AsynchronousMergeDSCollection
isRelative - true is timeRef is expressed with relative time.
initialDate - An initial absolute date for relative <-> absolute consersion
Throws:
MergeDataException