|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use SupportParameters | |
---|---|
com.accountingenhancements.formula | BETA 9/10/2006 The formula package is a string based interpreted scripting math and string manipulation language written in Java. It's intended to perform math and/or string concatination based on basic code segments that are stored in databases and work with dynamically created variables. In an effort to improve speed in loops where some variables are stable and other variables change, levels of volatility can be assigned to variables. |
Uses of SupportParameters in com.accountingenhancements.formula |
---|
Fields in com.accountingenhancements.formula declared as SupportParameters | |
---|---|
protected SupportParameters |
Formula.supportParameters
|
Methods in com.accountingenhancements.formula that return SupportParameters | |
---|---|
SupportParameters |
Formula.getSupportParameters()
Get the internal support parameter list |
Methods in com.accountingenhancements.formula with parameters of type SupportParameters | |
---|---|
static FormulaVariable |
FormulaVariableMath.applyOperatorToTwoVariables(FormulaVariable leftVariable,
int operator,
FormulaVariable rightVariable,
FormulaVariableList variableList,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
Please The lowest precision determines the number of digits to the right of the decimal point. Ex: Assuming the precision of 10 is 2 (Not overriden by user so 2 digits long) .234 * 10 = 2.3 therefore scale=1 However, differing from real math, 12.345 * 10 = 123 (scale=0) instead of 120 (scale=-1) as regular math requires it because I am assuming user intent is that accuracy is always at least to the 1's place. On a related note if one variable is a TYPE_LONG or TYPE_BOOLEAN , that variable defaults to a precision of 17, so in this case the precision ends up being the same as the precision of the only double value. |
static FormulaVariable |
FormulaVariableMath.applyOperatorToTwoVariables(java.lang.Integer optionalLeftUnaryOperator,
FormulaVariable leftVariable,
int operator,
java.lang.Integer optionalRightUnaryOperator,
FormulaVariable rightVariable,
FormulaVariableList variableList,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
Please The lowest precision determines the number of digits to the right of the decimal point. Ex: Assuming the precision of 10 is 2 (Not overriden by user so 2 digits long) .234 * 10 = 2.3 therefore scale=1 However, differing from real math, 12.345 * 10 = 123 (scale=0) instead of 120 (scale=-1) as regular math requires it because I am assuming user intent is that accuracy is always at least to the 1's place. On a related note if one variable is a TYPE_LONG or TYPE_BOOLEAN , that variable defaults to a precision of 17, so in this case the precision ends up being the same as the precision of the only double value. This means (Assuming scale of 12.345 is 5) that 12.345 * 10 = 123.45 and scale=2. |
FormulaVariable |
FormulaFunction_IIF.function(FormulaVariableList variableList,
int iteration,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
IIF Function Based on the truth of a test, a FormulaVariable is returned by following the result of the true branch or the false branch. |
FormulaVariable |
FormulaFunction.function(FormulaVariableList variableList,
int iteration,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
Programmer defined function. |
FormulaVariable |
FormulaFunction.function(FormulaVariableStack functionArgumentStack,
FormulaVariableList variableList,
int iteration,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
Programmer defined function. This function replaces the funcionArgumentStack and calls function(FormulaVariableList variableList, int iteration, SupportParameters supportParameters, FormulaFunctionList functionList, int resolveEverythingAboveLevel) so you can leave this function alone, but the other function needs to be overriden. |
FormulaVariable |
FormulaVariableStack.solve(FormulaVariableList variableList,
int iteration,
SupportParameters supportParameters,
FormulaFunctionList functionList)
This solves the supplied formula and returns the result. |
FormulaVariable |
FormulaVariableStack.solve(FormulaVariableList variableList,
int iteration,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
|
FormulaVariable |
FormulaVariable.solve(FormulaVariableList variableList,
int iteration,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
IF this variable is of TYPE_FORMULA, TYPE_FUNCTION, or TYPE_VARIABLE then this method solves for the value. |
protected FormulaVariable |
FormulaFunction_UCase.solve(FormulaVariableList variableList,
int iteration,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
|
protected FormulaVariable |
FormulaFunction_Right.solve(FormulaVariableList variableList,
int iteration,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
|
protected FormulaVariable |
FormulaFunction_Mid.solve(FormulaVariableList variableList,
int iteration,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
|
protected FormulaVariable |
FormulaFunction_Len.solve(FormulaVariableList variableList,
int iteration,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
|
protected FormulaVariable |
FormulaFunction_Left.solve(FormulaVariableList variableList,
int iteration,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
|
protected FormulaVariable |
FormulaFunction_LCase.solve(FormulaVariableList variableList,
int iteration,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
|
protected FormulaVariable |
FormulaFunction_DatePart.solve(FormulaVariableList variableList,
int iteration,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
|
protected FormulaVariable |
FormulaFunction_DateAdd.solve(FormulaVariableList variableList,
int iteration,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
|
protected FormulaVariable |
FormulaFunction.solve(FormulaVariableList variableList,
int iteration,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
Actual method to be overridden. |
static FormulaVariable |
FormulaVariableStack.solveRangeOfValuesSeparatedBySameOperator(java.util.ArrayList<FormulaVariable> stack,
int startPointer,
int endPointer,
FormulaVariableList variableList,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
|
static FormulaVariable |
FormulaVariableMath.solveUnaryOfVariable(int unaryOperator,
FormulaVariable variable,
FormulaVariableList variableList,
SupportParameters supportParameters,
FormulaFunctionList functionList,
int resolveEverythingAboveLevel)
Apply unary operations to variable |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |