Class XEvaluator

java.lang.Object
com.singularsys.jep.standard.FastEvaluator
com.singularsys.extensions.xjep.XEvaluator
All Implemented Interfaces:
Evaluator, GenericVisitor<Object,Void,EvaluationException>, JepComponent, Serializable

public class XEvaluator extends FastEvaluator
Evaluator which uses equations of variables.
See Also:
  • Constructor Details

    • XEvaluator

      public XEvaluator()
  • Method Details

    • isForce

      public boolean isForce()
      Whether to force re-evaluation of sub-equations.
    • setForce

      public void setForce(boolean force)
      Whether to force re-evaluation of sub-equations. If the force parameter is true will always use the equation. If force is false then it only uses the equation is the variable does not have a valid value.
    • visitVar

      public Object visitVar(Node node) throws EvaluationException
      Evaluates a variable, it will calculate the value using variables equation if necessary. If the force parameter is true will always use the equation. If force is false then it only uses the equation is the variable does not have a valid value.
      Overrides:
      visitVar in class FastEvaluator
      Throws:
      EvaluationException