Class XJepConsole

java.lang.Object
com.singularsys.jepexamples.consoles.Console
com.singularsys.extexamples.consoles.XJepConsole

public class XJepConsole extends Console
A Console application show the symbolic capabilities of the XJep, PolynomialCreator, and ExpressionCleaner including functions for simplification, expansion comparison and conversion to arrays of coefficients.
  • Constructor Details

    • XJepConsole

      public XJepConsole()
  • Method Details

    • initialise

      public void initialise()
      Description copied from class: Console
      sets up all the needed objects.
      Overrides:
      initialise in class Console
    • processEquation

      public Object processEquation(Node node) throws JepException
      Description copied from class: Console
      Performs the required operation on a node. Typically, evaluates the node and prints the value.
      Overrides:
      processEquation in class Console
      Parameters:
      node - Node representing expression
      Returns:
      The result of the calculation
      Throws:
      JepException - if a Parse or evaluation error
    • setMonitor

      public void setMonitor(String[] args)
      Description copied from class: Console
      Sets up monitoring of the call tree. Calls Console.setEvaluator(Evaluator) with a MonitoringEvaluator, sub-classes may need to override this method disable this feature.
      Overrides:
      setMonitor in class Console
      Parameters:
      args - second argument can be one of "off", "calls" or "times"
    • getPrompt

      public String getPrompt()
      Prints the prompt string.
      Overrides:
      getPrompt in class Console
    • printIntroText

      public void printIntroText()
      Prints introductory text.
      Overrides:
      printIntroText in class Console
    • printHelp

      public void printHelp()
      Description copied from class: Console
      Print help message.
      Overrides:
      printHelp in class Console
    • main

      public static void main(String[] args)
      Creates a new Console object and calls run()