Class CalcStepsRegister
java.lang.Object
org.mariuszgromada.math.mxparser.CalcStepsRegister
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionIf a root of the calculation tree is an argument then argument name is provided hereList that stores all the calculation stepsdoubleDuration of calculation process - in secondsInformation on error or lack of error while performing calculation process1.If a root of the calculation tree is a function then function name is provided here(package private) booleandoubleFinal result of calculationprivate static final intprivate static final long(package private) int(package private) CalcStepRecord.StepType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPrints this step register to the console.private static voidconsolePrint(CalcStepsRegister calcStepsRegister) (package private) static voidsetUserArgument(CalcStepsRegister calcStepsRegister, Argument argument) (package private) static voidsetUserFunction(CalcStepsRegister calcStepsRegister, Function function) (package private) static voidstepNumberGroupIncrease(CalcStepsRegister calcStepsRegister, Expression expression) (package private) void(package private) static voidstepTypeSetExpression(CalcStepsRegister calcStepsRegister) (package private) void(package private) voidtoString()private static StringtoString(CalcStepsRegister calcStepsRegister)
-
Field Details
-
serialClassID
private static final int serialClassID- See Also:
-
serialVersionUID
private static final long serialVersionUID -
calcStepRecords
List that stores all the calculation steps -
argumentNameStart
If a root of the calculation tree is an argument then argument name is provided here -
functionNameStart
If a root of the calculation tree is a function then function name is provided here -
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 resultFinal result of calculation -
computingTime
public double computingTimeDuration of calculation process - in seconds -
errorMessage
Information on error or lack of error while performing calculation process -
isStartSet
boolean isStartSet -
stepNumberGroup
int stepNumberGroup -
stepType
CalcStepRecord.StepType stepType
-
-
Constructor Details
-
CalcStepsRegister
public CalcStepsRegister()
-
-
Method Details
-
consolePrint
public void consolePrint()Prints this step register to the console. -
consolePrint
-
toString
-
toString
-
stepTypeSetExpression
void stepTypeSetExpression() -
stepTypeSetUserArgument
void stepTypeSetUserArgument() -
stepTypeSetUserFunction
void stepTypeSetUserFunction() -
stepTypeSetExpression
-
setUserArgument
-
setUserFunction
-
stepNumberGroupIncrease
-