Class CalcStepsRegister

  • All Implemented Interfaces:
    java.io.Serializable

    public class CalcStepsRegister
    extends java.lang.Object
    implements java.io.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:
    CalcStepRecord, Expression, Argument, Function, Serialized Form
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
      • calcStepRecords

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

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

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

        public java.lang.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 java.lang.String errorMessage
        Information on error or lack of error while performing calculation process
      • isStartSet

        boolean isStartSet
      • stepNumberGroup

        int stepNumberGroup
    • Constructor Detail

      • CalcStepsRegister

        public CalcStepsRegister()
    • Method Detail

      • consolePrint

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

        private static void consolePrint​(CalcStepsRegister calcStepsRegister)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        private static java.lang.String toString​(CalcStepsRegister calcStepsRegister)
      • stepTypeSetExpression

        void stepTypeSetExpression()
      • stepTypeSetUserArgument

        void stepTypeSetUserArgument()
      • stepTypeSetUserFunction

        void stepTypeSetUserFunction()
      • stepTypeSetExpression

        static void stepTypeSetExpression​(CalcStepsRegister calcStepsRegister)