jsynoptic.plugins.merge
Class JSSynchronousMergeDSCollection

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

public class JSSynchronousMergeDSCollection
extends SynchronousMergeDSCollection

extends MergedDataSourceCollection for saving, contextual actions requirements

Author:
zxpletran007
See Also:
Serialized Form

Nested Class Summary
static class JSSynchronousMergeDSCollection.SynchronousMergeDataSourceInformation
          A nested class dedicated to serialize information about a merged data.
static class JSSynchronousMergeDSCollection.SynchronousMergeDSCollectionInformation
          A nested class dedicated to serialize all information about a merge collection
 
Nested classes/interfaces inherited from class simtools.data.merge.SynchronousMergeDSCollection
SynchronousMergeDSCollection.DirectSynchronousMergedDataSource, SynchronousMergeDSCollection.IndirectParameter, SynchronousMergeDSCollection.IndirectSynchronousMergedDataSource, SynchronousMergeDSCollection.MergedCollectionContainer, SynchronousMergeDSCollection.TimeSource
 
Nested classes/interfaces inherited from class simtools.data.DataSourceCollection
DataSourceCollection.Container
 
Field Summary
static java.lang.String ID_MARKER
           
protected  JSSynchronousMergeDSCollection.SynchronousMergeDSCollectionInformation information
          List of merged data information
protected static MenuResourceBundle resources
           
 
Fields inherited from class simtools.data.merge.SynchronousMergeDSCollection
collectionName, collectionRoot, HUGEREPERTORYSIZE, interpolationOrder, MAX_T_DRIFT, mergedTimeBuffer, mergedTimeDs, mergedTimeFreq, mergedTimeLength, mergedTimeStart, timeRefIsRelative
 
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
JSSynchronousMergeDSCollection(JSSynchronousMergeDSCollection.SynchronousMergeDSCollectionInformation information)
          Create a merge collection from serialized information
JSSynchronousMergeDSCollection(java.lang.String collectionName, int interpolationOrder, boolean timeRefIsRelative, DataSource mergedTimeReferenceDs, boolean mergedTimeReferenceDsIsRelative, double mergedTimeReferenceDsOffset, double mergedTimeReferenceDsInitData)
          Create a merge collection
 
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
 JSSynchronousMergeDSCollection.SynchronousMergeDSCollectionInformation getMergeInformation()
           
 
Methods inherited from class simtools.data.merge.SynchronousMergeDSCollection
add, addToCollectionArborescence, computeMax, computeMergedTimeFrequency, computeMin, getCollectionContainers, getCollectionName, getDoubleValue, getInformation, getInformation, getMax, getMin, getValue, isCompound, mergeData, sortHugeRepertories, sortHugeRepertory, updateMergedTimeBounds, 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

resources

protected static MenuResourceBundle resources

ID_MARKER

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

information

protected JSSynchronousMergeDSCollection.SynchronousMergeDSCollectionInformation information
List of merged data information

Constructor Detail

JSSynchronousMergeDSCollection

public JSSynchronousMergeDSCollection(java.lang.String collectionName,
                                      int interpolationOrder,
                                      boolean timeRefIsRelative,
                                      DataSource mergedTimeReferenceDs,
                                      boolean mergedTimeReferenceDsIsRelative,
                                      double mergedTimeReferenceDsOffset,
                                      double mergedTimeReferenceDsInitData)
                               throws MergeDataException
Create a merge collection

Parameters:
collectionName -
interpolationOrder -
timeRefIsRelative -
mergedTimeReferenceDs -
mergedTimeReferenceDsIsRelative -
mergedTimeReferenceDsOffset -
mergedTimeReferenceDsInitData -
Throws:
MergeDataException

JSSynchronousMergeDSCollection

public JSSynchronousMergeDSCollection(JSSynchronousMergeDSCollection.SynchronousMergeDSCollectionInformation information)
                               throws MergeDataException
Create a merge collection from serialized information

Parameters:
mergeInformation -
Throws:
MergeDataException
Method Detail

getMergeInformation

public JSSynchronousMergeDSCollection.SynchronousMergeDSCollectionInformation 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 SynchronousMergeDSCollection
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 SynchronousMergeDSCollection
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 SynchronousMergeDSCollection
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 SynchronousMergeDSCollection
isRelative - true is timeRef is expressed with relative time.
initialDate - An initial absolute date for relative <-> absolute consersion
Throws:
MergeDataException