public class Parameters extends 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(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(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(Collection<BracketPair> brackets)
Adds bracket pairs to the function bracket list.
|
void |
addFunctions(Collection<Function> functions)
Adds functions to the supported ones.
|
void |
addOperators(Collection<Operator> operators)
Adds operators to the supported ones.
|
Collection<Constant> |
getConstants()
Gets the supported constants.
|
Collection<BracketPair> |
getExpressionBrackets()
Gets the supported bracket pairs for expressions.
|
String |
getFunctionArgumentSeparator()
Gets the function argument separator.
|
Collection<BracketPair> |
getFunctionBrackets()
Gets the supported bracket pairs for functions.
|
Collection<Function> |
getFunctions()
Gets the supported functions.
|
Collection<Operator> |
getOperators()
Gets the supported operators.
|
void |
setFunctionArgumentSeparator(char separator)
Sets the function argument separator.
|
void |
setTranslation(Constant constant,
String translatedName)
Sets the translated term for a constant.
|
void |
setTranslation(Function function,
String translatedName)
Sets the translated term for a function.
|
public Parameters()
public Collection<Operator> getOperators()
public Collection<Function> getFunctions()
public Collection<Constant> getConstants()
public Collection<BracketPair> getExpressionBrackets()
public Collection<BracketPair> getFunctionBrackets()
public void addOperators(Collection<Operator> operators)
operators
- The operators to be added.public void add(Operator operator)
operator
- The added operatorpublic void addFunctions(Collection<Function> functions)
functions
- The functions to be added.public void add(Function function)
function
- The added functionpublic void addConstants(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(Collection<BracketPair> brackets)
brackets
- The brackets to be added.public void addFunctionBracket(BracketPair pair)
pair
- A bracket pairpublic void addFunctionBrackets(Collection<BracketPair> brackets)
brackets
- The brackets to be added.public void setTranslation(Function function, String translatedName)
function
- The function you want to translate the nametranslatedName
- The translated nameDoubleEvaluator.SUM
public void setTranslation(Constant constant, 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 String getFunctionArgumentSeparator()
Copyright © 2014. All Rights Reserved.