sbrt.kernel.utilities.proc
Class VariableParticipation<E extends MathExpr<V>,V>

java.lang.Object
  extended by sbrt.kernel.utilities.proc.VariableParticipation<E,V>
Type Parameters:
E - the expression type.
V - the variable type.
All Implemented Interfaces:
KernelProcess<java.util.Map<V,java.util.List<E>>>

public class VariableParticipation<E extends MathExpr<V>,V>
extends java.lang.Object
implements KernelProcess<java.util.Map<V,java.util.List<E>>>

This class is used to organize a collection of mathematical expressions according to the variables they contain.

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

Constructor Summary
VariableParticipation()
           
 
Method Summary
 void run(ResultsManager<java.util.Map<V,java.util.List<E>>> resultsManager)
          Adds to the provided results manager a map of variables mapped to a list of mathematical expressions in which they participate.
 void setExprs(java.util.Collection<? extends E> expressions)
          Sets the collection of mathematical expressions to organize.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableParticipation

public VariableParticipation()
Method Detail

setExprs

public void setExprs(java.util.Collection<? extends E> expressions)
Sets the collection of mathematical expressions to organize.

Parameters:
expressions - the collection of mathematical expressions to organize.

run

public void run(ResultsManager<java.util.Map<V,java.util.List<E>>> resultsManager)
Adds to the provided results manager a map of variables mapped to a list of mathematical expressions in which they participate.

Specified by:
run in interface KernelProcess<java.util.Map<V,java.util.List<E extends MathExpr<V>>>>
Parameters:
resultsManager - the results manager to which the map is added.