sbrt.kernel.math.comb.proc
Class SingleElementUnionProc<E>

java.lang.Object
  extended by sbrt.kernel.math.comb.proc.SingleElementUnionProc<E>
Type Parameters:
E - the element type.
All Implemented Interfaces:
KernelProcess<java.util.Set<java.util.Set<E>>>

public class SingleElementUnionProc<E>
extends java.lang.Object
implements KernelProcess<java.util.Set<java.util.Set<E>>>

This class is used to wrap the single element union computer as a process.

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

Constructor Summary
SingleElementUnionProc()
          Constructs a new single-element union process.
 
Method Summary
 void run(ResultsManager<java.util.Set<java.util.Set<E>>> resultsManager)
          Computes the single-element unions of the provided collection of sets, and adds the results to the provided results manager.
 void setSets(java.util.Collection<java.util.Set<E>> sets)
          Sets the collection of sets to that provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleElementUnionProc

public SingleElementUnionProc()
Constructs a new single-element union process.

Method Detail

setSets

public void setSets(java.util.Collection<java.util.Set<E>> sets)
Sets the collection of sets to that provided.

Parameters:
sets - a collection of sets of elements.

run

public void run(ResultsManager<java.util.Set<java.util.Set<E>>> resultsManager)
Computes the single-element unions of the provided collection of sets, and adds the results to the provided results manager.

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