edu.buffalo.fs7.mathlib
Class ComputationEvent

java.lang.Object
  |
  +--edu.buffalo.fs7.mathlib.ComputationEvent

public class ComputationEvent
extends java.lang.Object

Class representing a computation event. This event type is generated when the implicitApply method of the BinaryOp class is executed.

See Also:
ComputationEventListener, Mathlib

Field Summary
static int DONE
          computation done
static int IN_PROGRESS
          computation in progress
static int STARTED
          computation started
 
Constructor Summary
ComputationEvent(MathObject operator, MathObject variable, int currentStep, int maxStep, int action)
          creates a ComputationEvent
 
Method Summary
 int getAction()
          returns action code
 int getCurrentStep()
          returns current step in computation
 int getMaxStep()
          returns max steps in computation
 MathObject getOperator()
          returns originating operator
 MathObject getVariable()
          returns affected variable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STARTED

public static int STARTED
computation started

IN_PROGRESS

public static int IN_PROGRESS
computation in progress

DONE

public static int DONE
computation done
Constructor Detail

ComputationEvent

public ComputationEvent(MathObject operator,
                        MathObject variable,
                        int currentStep,
                        int maxStep,
                        int action)
creates a ComputationEvent
Parameters:
operator - originating operator
variable - affected variable
currentStep - current step in computation
maxStep - maximum steps in computation
action - action code
Method Detail

getAction

public int getAction()
returns action code

getVariable

public MathObject getVariable()
returns affected variable

getOperator

public MathObject getOperator()
returns originating operator

getMaxStep

public int getMaxStep()
returns max steps in computation

getCurrentStep

public int getCurrentStep()
returns current step in computation