CTAT 3.1 Function Reference

edu.cmu.pact.BehaviorRecorder.ProblemModel.Matcher.Functions
Class eval

java.lang.Object
  extended by edu.cmu.pact.BehaviorRecorder.ProblemModel.Matcher.Functions.eval
All Implemented Interfaces:
UsesProblemModel, UsesVariableTable

public class eval
extends java.lang.Object
implements UsesProblemModel, UsesVariableTable

Simplify an algebraic expression.


Constructor Summary
eval()
           
 
Method Summary
 java.lang.Object eval(String expr)
          Evaluate an algebraic expression.
 void setProblemModel(edu.cmu.pact.BehaviorRecorder.ProblemModel.ProblemModel pm)
          Provide the current ProblemModel instance.
 void setVariableTable(edu.cmu.pact.BehaviorRecorder.ProblemModel.VariableTable variableTable)
          Provide the current VariableTable instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

eval

public eval()
Method Detail

eval

public java.lang.Object eval(String expr)

Evaluate an algebraic expression.

Parameters:
expr - expression to simplify
Returns:
simplified result

setProblemModel

public void setProblemModel(edu.cmu.pact.BehaviorRecorder.ProblemModel.ProblemModel pm)
Description copied from interface: UsesProblemModel
Provide the current ProblemModel instance.

Specified by:
setProblemModel in interface UsesProblemModel

setVariableTable

public void setVariableTable(edu.cmu.pact.BehaviorRecorder.ProblemModel.VariableTable variableTable)
Description copied from interface: UsesVariableTable
Provide the current VariableTable instance.

Specified by:
setVariableTable in interface UsesVariableTable

CTAT 3.1 Function Reference