vizisolve.transformer
Class Factorer

java.lang.Object
  extended by vizisolve.transformer.Transformer
      extended by vizisolve.transformer.Factorer
All Implemented Interfaces:
Serializable

public class Factorer
extends Transformer

Factors an Expression. Extends the Transformer base class by only performing Operations that either factor or simplify Expressions. This class will not return simplifying Operations that distribute, since this would run counter to factoring.

Author:
jcl
See Also:
Serialized Form

Field Summary
 
Fields inherited from class vizisolve.transformer.Transformer
inputExpression, noNextOp, result, testCase, workView
 
Constructor Summary
Factorer(Expression expression, WorkView workView)
           
 
Method Summary
protected  Operation getOperation(Expression expression)
          Returns an Operation to factor or simplify the input Expression.
 
Methods inherited from class vizisolve.transformer.Transformer
checkResult, finish, getInput, getResult, matchesOldResult, notifyAnimationFinish, setWorkview, start, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Factorer

public Factorer(Expression expression,
                WorkView workView)
Parameters:
expression - to factor
workView - where final and intermediate results will be displayed
Method Detail

getOperation

protected Operation getOperation(Expression expression)
Returns an Operation to factor or simplify the input Expression. Will not return simplifying Operations that distribute.

Specified by:
getOperation in class Transformer
Parameters:
expression - to be factored and simplified
Returns:
a factoring or simplifying Operation