Package org.mariuszgromada.math.mxparser
Class CalcStepsRegister
- java.lang.Object
-
- org.mariuszgromada.math.mxparser.CalcStepsRegister
-
- All Implemented Interfaces:
java.io.Serializable
public class CalcStepsRegister extends java.lang.Object implements java.io.SerializableCalculation 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 Summary
Fields Modifier and Type Field Description java.lang.StringargumentNameStartIf a root of the calculation tree is an argument then argument name is provided herejava.util.List<CalcStepRecord>calcStepRecordsList that stores all the calculation stepsdoublecomputingTimeDuration of calculation process - in secondsjava.lang.StringerrorMessageInformation on error or lack of error while performing calculation processjava.lang.StringexpressionStringStart1.java.lang.StringfunctionNameStartIf a root of the calculation tree is a function then function name is provided here(package private) booleanisStartSetdoubleresultFinal result of calculationprivate static intserialClassIDprivate static longserialVersionUID(package private) intstepNumberGroup(package private) CalcStepRecord.StepTypestepType
-
Constructor Summary
Constructors Constructor Description CalcStepsRegister()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsolePrint()Prints 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) voidstepTypeSetExpression()(package private) static voidstepTypeSetExpression(CalcStepsRegister calcStepsRegister)(package private) voidstepTypeSetUserArgument()(package private) voidstepTypeSetUserFunction()java.lang.StringtoString()private static java.lang.StringtoString(CalcStepsRegister calcStepsRegister)
-
-
-
Field Detail
-
serialClassID
private static final int serialClassID
- See Also:
- Constant Field Values
-
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
-
stepType
CalcStepRecord.StepType stepType
-
-
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:
toStringin classjava.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)
-
setUserArgument
static void setUserArgument(CalcStepsRegister calcStepsRegister, Argument argument)
-
setUserFunction
static void setUserFunction(CalcStepsRegister calcStepsRegister, Function function)
-
stepNumberGroupIncrease
static void stepNumberGroupIncrease(CalcStepsRegister calcStepsRegister, Expression expression)
-
-