sbrt.kernel.math.algebra.proc
Class LinearSolverProcess<V>

java.lang.Object
  extended by sbrt.kernel.math.algebra.proc.LinearSolverProcess<V>
Type Parameters:
V - the variable type.
All Implemented Interfaces:
KernelProcess<LinearSystemSolution<V>>

public class LinearSolverProcess<V>
extends java.lang.Object
implements KernelProcess<LinearSystemSolution<V>>

This class is used to solve systems of linear equations.

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

Constructor Summary
LinearSolverProcess()
           
 
Method Summary
 void run(ResultsManager<LinearSystemSolution<V>> resultsManager)
          Solves the system of linear equations and adds the solution to the provided results manager.
 void setEquations(java.util.Map<LinearComb<V>,java.lang.Double> equations)
          Sets the system of linear equations to be solver.
 void setSolver(LinearSystemSolver<V> solver)
          Sets the linear system solver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearSolverProcess

public LinearSolverProcess()
Method Detail

setEquations

public void setEquations(java.util.Map<LinearComb<V>,java.lang.Double> equations)
Sets the system of linear equations to be solver.

Parameters:
equations - linear combinations mapped to a double. Each key-value pair represents the left and right hand sides, respectively, of an equation.

setSolver

public void setSolver(LinearSystemSolver<V> solver)
Sets the linear system solver.

Parameters:
solver - the linear system solver.

run

public void run(ResultsManager<LinearSystemSolution<V>> resultsManager)
Solves the system of linear equations and adds the solution to the provided results manager.

Specified by:
run in interface KernelProcess<LinearSystemSolution<V>>
Parameters:
resultsManager - the results manager to which the solution is added.