hussam.math.operations.dataBase
Interface OperatorSource

All Known Implementing Classes:
DynamicOperatorSourceWrapper, OperatorFactoryDB, OperatorSourceImpl, OperatorSourceWrapper

public interface OperatorSource

This resembles a Data source of Special Arguments for any expression such as Operands, Functions and Variables, etc.. The dataSource can be the memmory, a data base, or a remote data source. For a set of a default DataSource see OperatorFactoryDB

Author:
Hussam Almulhim حسام الملحم
See Also:
OperatorSourceImpl, OperatorSourceWrapper, SmartExpressionReader

Method Summary
 java.util.Map<java.lang.String,OperatorFactory<Function>>getFunctionFactories()
          Returns all Function Factories in this OperatorSource.
 OperatorFactory<Function>getFunctionFactory(java.lang.String name)
          Returns the FunctionFactory for the given Function name.
 VariablegetGlobalVariable(java.lang.String name)
          Returns the Global Variable.
 java.util.Map<java.lang.String,Variable>getGlobalVariables()
          Returns a map of all Global Variables.
 VariablegetLocalVariable(java.lang.String name)
          Returns the Local Variable.
 java.util.Map<java.lang.String,Variable>getLocalVariables()
          Returns a map of all Local variables.
 java.util.Map<java.lang.String,OperatorFactory<Operand>>getOperandFactories()
          Returns a map of all Operand Factories.
 OperatorFactory<Operand>getOperandFactory(java.lang.String name)
          Returns the factory for the given Operand.
 

Method Detail

getFunctionFactory

OperatorFactory<Function> getFunctionFactory(java.lang.String name)
Returns the FunctionFactory for the given Function name.

Parameters:
name - The name of the Function
Returns:
Operator Factory.

getOperandFactory

OperatorFactory<Operand> getOperandFactory(java.lang.String name)
Returns the factory for the given Operand.

Parameters:
name - The name of the operand.
Returns:
The factory for that Operand.

getGlobalVariable

Variable getGlobalVariable(java.lang.String name)
Returns the Global Variable.
Gloval Variables are variables accessed by all Expressions.

 For example, Constants such as E, of PI.

Parameters:
name - The name of the variable.
Returns:
The Global Variable.

getLocalVariable

Variable getLocalVariable(java.lang.String name)
Returns the Local Variable.

Parameters:
name - The name of the variable.
Returns:
The Local Variable.

getFunctionFactories

java.util.Map<java.lang.String,OperatorFactory<Function>> getFunctionFactories()
Returns all Function Factories in this OperatorSource.

Returns:
A map of all factories.

getOperandFactories

java.util.Map<java.lang.String,OperatorFactory<Operand>> getOperandFactories()
Returns a map of all Operand Factories.

Returns:
a map of all Operand factories.

getGlobalVariables

java.util.Map<java.lang.String,Variable> getGlobalVariables()
Returns a map of all Global Variables.

Returns:
a map of all Global Variables

getLocalVariables

java.util.Map<java.lang.String,Variable> getLocalVariables()
Returns a map of all Local variables.

Returns:
a map of all Local Variables.