Class CalcStepsRegister

java.lang.Object
org.mariuszgromada.math.mxparser.CalcStepsRegister
All Implemented Interfaces:
Serializable

public class CalcStepsRegister extends Object implements Serializable
Calculation is a multistep process and this class provides a register to store all the steps, also done in a recursive way.
Version:
6.1.0
See Also:
  • Field Details

    • serialClassID

      private static final int serialClassID
      See Also:
    • serialVersionUID

      private static final long serialVersionUID
    • calcStepRecords

      public List<CalcStepRecord> calcStepRecords
      List that stores all the calculation steps
    • argumentNameStart

      public String argumentNameStart
      If a root of the calculation tree is an argument then argument name is provided here
    • functionNameStart

      public String functionNameStart
      If a root of the calculation tree is a function then function name is provided here
    • expressionStringStart

      public String expressionStringStart
      1. If a root of the calculation tree is an expression then expression string is provided here. 2. If a root of the calculation tree is an argument then argument expression string is provided here. 3. If a root of the calculation tree is a function then function expression string is provided here.
    • result

      public double result
      Final result of calculation
    • computingTime

      public double computingTime
      Duration of calculation process - in seconds
    • errorMessage

      public String errorMessage
      Information on error or lack of error while performing calculation process
    • isStartSet

      boolean isStartSet
    • stepNumberGroup

      int stepNumberGroup
    • stepType

  • Constructor Details

    • CalcStepsRegister

      public CalcStepsRegister()
  • Method Details

    • consolePrint

      public void consolePrint()
      Prints this step register to the console.
    • consolePrint

      private static void consolePrint(CalcStepsRegister calcStepsRegister)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      private static String toString(CalcStepsRegister calcStepsRegister)
    • stepTypeSetExpression

      void stepTypeSetExpression()
    • stepTypeSetUserArgument

      void stepTypeSetUserArgument()
    • stepTypeSetUserFunction

      void stepTypeSetUserFunction()
    • stepTypeSetExpression

      static void stepTypeSetExpression(CalcStepsRegister calcStepsRegister)
    • setUserArgument

      static void setUserArgument(CalcStepsRegister calcStepsRegister, Argument argument)
    • setUserFunction

      static void setUserFunction(CalcStepsRegister calcStepsRegister, Function function)
    • stepNumberGroupIncrease

      static void stepNumberGroupIncrease(CalcStepsRegister calcStepsRegister, Expression expression)