Package org.yamcs.studio.data.formula
Class FormulaFunctionSet
java.lang.Object
org.yamcs.studio.data.formula.FormulaFunctionSet
- Direct Known Subclasses:
AlarmFunctionSet
,ArrayFunctionSet
,MathFunctionSet
,VEnumFunctionSet
,VNumberFunctionSet
,VStringFunctionSet
,VTableFunctionSet
A set of functions that can be used in the formulas.
Objects of this class can be registered in the FormulaRegistry
and the functions will be available in the
formula language.
-
Constructor Summary
ConstructorDescriptionFormulaFunctionSet
(FormulaFunctionSetDescription functionSetDescription) Creates a new ser of functions to be registered in the formula language. -
Method Summary
Modifier and TypeMethodDescriptionfinal Collection<FormulaFunction>
findFunctions
(String name) Returns all the functions in the set with the given name.final String
Returns the description of the function set.final Collection<String>
The names of all functions in this set.final Collection<FormulaFunction>
Returns all functions in the set.final String
getName()
Returns the name of the function set.
-
Constructor Details
-
FormulaFunctionSet
Creates a new ser of functions to be registered in the formula language.- Parameters:
functionSetDescription
- the description of the function set
-
-
Method Details
-
getName
Returns the name of the function set.- Returns:
- the function set name
-
getDescription
Returns the description of the function set.- Returns:
- the function set description
-
getFunctionNames
The names of all functions in this set.- Returns:
- the function names
-
findFunctions
Returns all the functions in the set with the given name.- Parameters:
name
- the name of the function- Returns:
- the matched functions; never null
-
getFunctions
Returns all functions in the set.- Returns:
- the functions in the set
-