sbrt.kernel.math.algebra.proc
Class VectorIntersection<K,V>

java.lang.Object
  extended by sbrt.kernel.math.algebra.proc.VectorIntersection<K,V>
Type Parameters:
K - the key, or variable, type.
V - the value type.
All Implemented Interfaces:
KernelProcess<java.util.Map<K,V>>

public class VectorIntersection<K,V>
extends java.lang.Object
implements KernelProcess<java.util.Map<K,V>>

This class is used to intersect vectors whose variables (that is, map keys) are not identical.

Author:
This class was written and documented by Jeremiah Wright while in the Wagner lab.

Constructor Summary
VectorIntersection()
          Constructs a new vector intersector.
 
Method Summary
 void run(ResultsManager<java.util.Map<K,V>> resultsManager)
          and adds the results to the provided results manager.
 void setVectorSource(java.util.Iterator<java.util.Map<K,V>> vectorSource)
          Sets the vector source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorIntersection

public VectorIntersection()
Constructs a new vector intersector.

Method Detail

setVectorSource

public void setVectorSource(java.util.Iterator<java.util.Map<K,V>> vectorSource)
Sets the vector source.

Parameters:
vectorSource - a source of variables mapped to their respective values.

run

public void run(ResultsManager<java.util.Map<K,V>> resultsManager)
and adds the results to the provided results manager.

Specified by:
run in interface KernelProcess<java.util.Map<K,V>>
Parameters:
resultsManager - the results manager to which the computed results are to be added.