simtools.data.merge
Class SynchronousMergeDSCollection.IndirectParameter

java.lang.Object
  extended by simtools.data.merge.SynchronousMergeDSCollection.IndirectParameter
Enclosing class:
SynchronousMergeDSCollection

public class SynchronousMergeDSCollection.IndirectParameter
extends java.lang.Object

This optimization is no longer used at the moment.

Author:
zxpletran007

Field Summary
protected  int phase
          The number of indexes to skip to be phased with collection merge time.
protected  double ratio
          The ratio between the merged time frequency (f_mt) and another time source frequency (f_t) ratio = f_mt / f_t If ratio is lower than 1, mt is ratio times more frequent than t.
protected  double timeStart
          The time source first value
 
Constructor Summary
SynchronousMergeDSCollection.IndirectParameter(double ratio, double timeStart)
           
 
Method Summary
 long getIndex(long index)
           
protected  void updatePhase()
          Update regarding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ratio

protected final double ratio
The ratio between the merged time frequency (f_mt) and another time source frequency (f_t) ratio = f_mt / f_t If ratio is lower than 1, mt is ratio times more frequent than t. If ratio is greater than 1, t is ratio times more frequent than mt. ratio or 1/ratio shall be an integer value, otherwise indirection is not possible for this time source.


timeStart

protected final double timeStart
The time source first value


phase

protected int phase
The number of indexes to skip to be phased with collection merge time.

Constructor Detail

SynchronousMergeDSCollection.IndirectParameter

public SynchronousMergeDSCollection.IndirectParameter(double ratio,
                                                      double timeStart)
                                               throws MergeDataException
Parameters:
ratio - -
timeStart - - related time source first value
Throws:
MergeDataException
Method Detail

updatePhase

protected void updatePhase()
                    throws MergeDataException
Update regarding

Throws:
MergeDataException

getIndex

public long getIndex(long index)