QJCC homepage

biz.chitec.quarterback.util
Class ValueHistoryStorage.QuantifiedIterator

java.lang.Object
  extended bybiz.chitec.quarterback.util.ValueHistoryStorage.QuantifiedIterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
ValueHistoryStorage

private class ValueHistoryStorage.QuantifiedIterator
extends java.lang.Object
implements java.util.Iterator

Quantification iterator. Computes the value average for intervals of the storages value history.

Author:
dh

Field Summary
private  long currentvalue
           
private  java.util.Iterator dataiterator
           
private  EDate ivend
           
private  EDate ivpartstart
           
private  EDate nextdate
           
private  long nextvalue
           
private  java.util.Iterator quantiterator
           
 
Constructor Summary
ValueHistoryStorage.QuantifiedIterator(EDate start, EDate end, EDate ivpartsizex)
          Constructor for the QuantifiedIterator object
ValueHistoryStorage.QuantifiedIterator(java.util.Iterator quantiteratorx, EDate end)
          Constructor for the QuantifiedIterator object
 
Method Summary
 boolean hasNext()
          Description of the Method
 java.lang.Object next()
          Description of the Method
private  void readNextFromDataIterator()
          Description of the Method
 void remove()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

quantiterator

private java.util.Iterator quantiterator

dataiterator

private java.util.Iterator dataiterator

ivpartstart

private EDate ivpartstart

ivend

private EDate ivend

nextdate

private EDate nextdate

currentvalue

private long currentvalue

nextvalue

private long nextvalue
Constructor Detail

ValueHistoryStorage.QuantifiedIterator

public ValueHistoryStorage.QuantifiedIterator(EDate start,
                                              EDate end,
                                              EDate ivpartsizex)
Constructor for the QuantifiedIterator object

Parameters:
start - Description of the Parameter
end - Description of the Parameter
ivpartsizex - Description of the Parameter

ValueHistoryStorage.QuantifiedIterator

public ValueHistoryStorage.QuantifiedIterator(java.util.Iterator quantiteratorx,
                                              EDate end)
Constructor for the QuantifiedIterator object

Parameters:
quantiteratorx - Description of the Parameter
end - Description of the Parameter
Method Detail

readNextFromDataIterator

private void readNextFromDataIterator()
Description of the Method


hasNext

public boolean hasNext()
Description of the Method

Specified by:
hasNext in interface java.util.Iterator
Returns:
Description of the Return Value

next

public java.lang.Object next()
Description of the Method

Specified by:
next in interface java.util.Iterator
Returns:
Description of the Return Value

remove

public void remove()
Description of the Method

Specified by:
remove in interface java.util.Iterator

QJCC homepage