Class DeficitTargetIterator
- java.lang.Object
-
- org.processmining.earthmoversstochasticconformancechecking.reallocationmatrix.epsa.DeficitTargetIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.Integer>
public class DeficitTargetIterator extends java.lang.Object implements java.util.Iterator<java.lang.Integer>A class used for iterating over possible deficit targets. As iterating over the targets has to be done frequently in every iteration, possible targets are stored. Thus it is not necessary to iterate over the whole tree again during the second calculation of the reducing costs for a new source.- Author:
- brockhoff
-
-
Constructor Summary
Constructors Constructor Description DeficitTargetIterator(TreeIterator treeIt, java.util.List<java.lang.Integer> deficitTrees, int cTar, int firstTar)Instantiates a new TreeIterator from the root of a subtree
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdefTreeCount()booleanhasNext()java.lang.Integernext()voidnextIt()Resets the iterator for the next iteration.voidremove()voidresetToStart()Resets the iterator for next pass on the same targets
-
-
-
Constructor Detail
-
DeficitTargetIterator
public DeficitTargetIterator(TreeIterator treeIt, java.util.List<java.lang.Integer> deficitTrees, int cTar, int firstTar)
Instantiates a new TreeIterator from the root of a subtree- Parameters:
root- the root vertex of the subtree.
-
-
Method Detail
-
nextIt
public void nextIt()
Resets the iterator for the next iteration.
-
resetToStart
public void resetToStart()
Resets the iterator for next pass on the same targets
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<java.lang.Integer>
-
next
public java.lang.Integer next()
- Specified by:
nextin interfacejava.util.Iterator<java.lang.Integer>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<java.lang.Integer>
-
defTreeCount
public int defTreeCount()
-
-