public interface ParamBase extends ExpressionBase
Modifier and Type | Method and Description |
---|---|
double |
evaluate(java.lang.String expression)
Evaluates an expression, including functions, parameters and units.
|
double |
evaluate(java.lang.String expression,
java.lang.String unit)
Evaluates an expression, including functions, parameters and units.
|
double[] |
evaluateComplex(java.lang.String expression)
Evaluates an expression, including functions, parameters and units.
|
double[] |
evaluateComplex(java.lang.String expression,
java.lang.String unit)
Evaluates an expression, including functions, parameters and units.
|
java.lang.String |
evaluateUnit(java.lang.String expr)
Evaluates the unit of an expression.
|
void |
loadFile(java.lang.String path)
Loads from a file.
|
void |
loadFile(java.lang.String path,
char delim)
Loads from a file using a specified delimiter.
|
void |
loadFile(java.lang.String path,
char delim,
boolean separateUnitColumns)
Loads from a file using a specified delimiter.
|
void |
loadFile(java.lang.String path,
java.lang.String sheet,
java.lang.String range)
Loads from an Excel-file with a specified range to read, or a cell to
start from, in the specified sheet.
|
void |
loadFile(java.lang.String path,
java.lang.String sheet,
java.lang.String range,
boolean separateUnitColumns)
Loads from an Excel-file with a specified range to read, or a cell to
start from, in the specified sheet.
|
void |
saveFile(java.lang.String path)
Saves to a file.
|
void |
saveFile(java.lang.String path,
char delim)
Saves to a file using a specified delimiter.
|
void |
saveFile(java.lang.String path,
char delim,
boolean separateUnitColumns)
Saves to a file using a specified delimiter.
|
void |
saveFile(java.lang.String path,
java.lang.String sheet,
java.lang.String range,
boolean includeHeaders,
boolean overwrite)
Saves to an Excel-file in a specified range, or at a cell to start
from, in a specified sheet.
|
void |
saveFile(java.lang.String path,
java.lang.String sheet,
java.lang.String range,
boolean includeHeaders,
boolean overwrite,
boolean separateUnitColumns)
Saves to an Excel-file in a specified range, or at a cell to start
from, in a specified sheet.
|
clear, descr, descr, get, remove, remove, rename, set, set, set, set, varnames
active, author, author, comments, comments, dateCreated, dateModified, docMarker, docMarker, help, help, icon, isactive, isActive, label, label, lastModifiedBy, model, model, name, name, resetAuthor, scope, tag, tag, timeCreated, timeModified, version, version
getContainer, getDisplayString
double evaluate(java.lang.String expression)
expression
- The expression.double evaluate(java.lang.String expression, java.lang.String unit)
expression
- The expression.unit
- The unit.double[] evaluateComplex(java.lang.String expression)
expression
- The parameter name.double[] evaluateComplex(java.lang.String expression, java.lang.String unit)
expression
- The expression.unit
- The unit.java.lang.String evaluateUnit(java.lang.String expr)
expr
- The expression.null
if the parameter has
no unit defined, or if the model does not use units.void loadFile(java.lang.String path)
path
- Path to file.void loadFile(java.lang.String path, char delim)
path
- Path to file.delim
- Delimiter to use.void loadFile(java.lang.String path, java.lang.String sheet, java.lang.String range)
path
- Path to file.sheet
- The Excel-sheet to use.range
- The range, or a starting cell.void loadFile(java.lang.String path, char delim, boolean separateUnitColumns)
path
- Path to file.delim
- Delimiter to use.separateUnitColumns
- True to split expression columns into expression and unit.void loadFile(java.lang.String path, java.lang.String sheet, java.lang.String range, boolean separateUnitColumns)
path
- Path to file.sheet
- The Excel-sheet to use.range
- The range, or a starting cell.separateUnitColumns
- True to split expression columns into expression and unit.void saveFile(java.lang.String path)
path
- Path to file.void saveFile(java.lang.String path, char delim)
path
- Path to file.delim
- Delimiter to use.void saveFile(java.lang.String path, char delim, boolean separateUnitColumns)
path
- Path to file.delim
- Delimiter to use.separateUnitColumns
- True to split expression columns into expression and unit.void saveFile(java.lang.String path, java.lang.String sheet, java.lang.String range, boolean includeHeaders, boolean overwrite)
path
- Path to file.sheet
- The Excel-sheet to use.range
- The range, or a starting cell.includeHeaders
- True if column headers are to be written.overwrite
- True if an existing file is to be overwritten, or if an error should
be cast in that instance.void saveFile(java.lang.String path, java.lang.String sheet, java.lang.String range, boolean includeHeaders, boolean overwrite, boolean separateUnitColumns)
path
- Path to file.sheet
- The Excel-sheet to use.range
- The range, or a starting cell.includeHeaders
- True if column headers are to be written.overwrite
- True if an existing file is to be overwritten, or if an error should
be cast in that instance.separateUnitColumns
- True to split expression columns into expression and unit.