public class Parameters
extends java.lang.Object
Constructor and Description |
---|
Parameters()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Constant constant)
Adds a constant to the supported ones.
|
void |
add(Function function)
Adds a function to the supported ones.
|
void |
add(Operator operator)
Adds an operator to the supported ones.
|
void |
addConstants(java.util.Collection<Constant> constants)
Adds constants to the supported ones.
|
void |
addExpressionBracket(BracketPair pair)
Adds a new bracket pair to the expression bracket list.
|
void |
addExpressionBrackets(java.util.Collection<BracketPair> brackets)
Adds bracket pairs to the expression bracket list.
|
void |
addFunctionBracket(BracketPair pair)
Adds a new bracket pair to the function bracket list.
|
void |
addFunctionBrackets(java.util.Collection<BracketPair> brackets)
Adds bracket pairs to the function bracket list.
|
void |
addFunctions(java.util.Collection<Function> functions)
Adds functions to the supported ones.
|
void |
addOperators(java.util.Collection<Operator> operators)
Adds operators to the supported ones.
|
java.util.Collection<Constant> |
getConstants()
Gets the supported constants.
|
java.util.Collection<BracketPair> |
getExpressionBrackets()
Gets the supported bracket pairs for expressions.
|
java.lang.String |
getFunctionArgumentSeparator()
Gets the function argument separator.
|
java.util.Collection<BracketPair> |
getFunctionBrackets()
Gets the supported bracket pairs for functions.
|
java.util.Collection<Function> |
getFunctions()
Gets the supported functions.
|
java.util.Collection<Operator> |
getOperators()
Gets the supported operators.
|
void |
setFunctionArgumentSeparator(char separator)
Sets the function argument separator.
|
void |
setTranslation(Constant constant,
java.lang.String translatedName)
Sets the translated term for a constant.
|
void |
setTranslation(Function function,
java.lang.String translatedName)
Sets the translated term for a function.
|
public Parameters()
public java.util.Collection<Operator> getOperators()
public java.util.Collection<Function> getFunctions()
public java.util.Collection<Constant> getConstants()
public java.util.Collection<BracketPair> getExpressionBrackets()
public java.util.Collection<BracketPair> getFunctionBrackets()
public void addOperators(java.util.Collection<Operator> operators)
operators
- The operators to be added.public void add(Operator operator)
operator
- The added operatorpublic void addFunctions(java.util.Collection<Function> functions)
functions
- The functions to be added.public void add(Function function)
function
- The added functionpublic void addConstants(java.util.Collection<Constant> constants)
constants
- The constants to be added.public void add(Constant constant)
constant
- The added constantpublic void addExpressionBracket(BracketPair pair)
pair
- A bracket pairpublic void addExpressionBrackets(java.util.Collection<BracketPair> brackets)
brackets
- The brackets to be added.public void addFunctionBracket(BracketPair pair)
pair
- A bracket pairpublic void addFunctionBrackets(java.util.Collection<BracketPair> brackets)
brackets
- The brackets to be added.public void setTranslation(Function function, java.lang.String translatedName)
function
- The function you want to translate the nametranslatedName
- The translated nameDoubleEvaluator.SUM
public void setTranslation(Constant constant, java.lang.String translatedName)
constant
- The constant you want to translate the nametranslatedName
- The translated namesetTranslation(Function, String)
public void setFunctionArgumentSeparator(char separator)
separator
- The new separatorpublic java.lang.String getFunctionArgumentSeparator()