| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hussam.math.operations.dataBase.OperatorSourceImpl
public class OperatorSourceImpl
This is the default implemetation of the OperatorSource interface. This is the most used implementation through out the package. This Source of data is stored in memmory.
Constructor Summary | |
---|---|
OperatorSourceImpl() Constructs a New Operator Source. |
Method Summary | |
---|---|
void | addFunction(OperatorFactory<Function> fac) add the specified factory to this source. |
void | addFunctions(java.util.Map<java.lang.String,? extends OperatorFactory<Function>> funcitons) adds all Function Factories to this source. |
void | addGlobalVariable(Variable v) add a global Variable to the Data Source. |
void | addGlobalVariables(java.util.Map<java.lang.String,? extends Variable> v) adds all Global Variables. |
void | addLocalVariable(Variable v) adds a local variable to this source. |
void | addLocalVariables(java.util.Map<java.lang.String,? extends Variable> v) adds all local variables. |
void | addOperand(OperatorFactory<Operand> fac) adds the specified factory to this source. |
void | addOperands(java.util.Map<java.lang.String,? extends OperatorFactory<Operand>> ops) adds all Operand factories to this source. |
java.util.Map<java.lang.String,OperatorFactory<Function>> | getFunctionFactories() Returns all Function factories. |
OperatorFactory<Function> | getFunctionFactory(java.lang.String name) Returns the FunctionFactory for the given Function name. |
Variable | getGlobalVariable(java.lang.String name) Returns the Global Variable. |
java.util.Map<java.lang.String,Variable> | getGlobalVariables() Returns all Global Variables. |
Variable | getLocalVariable(java.lang.String name) Returns the Local Variable. |
java.util.Map<java.lang.String,Variable> | getLocalVariables() Returns all local Variables. |
java.util.Map<java.lang.String,OperatorFactory<Operand>> | getOperandFactories() Returns all Operand Factories. |
OperatorFactory<Operand> | getOperandFactory(java.lang.String name) Returns the factory for the given Operand. |
java.lang.String | toString() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OperatorSourceImpl()
Method Detail |
---|
public OperatorFactory<Function> getFunctionFactory(java.lang.String name)
OperatorSource
getFunctionFactory
in interface OperatorSource
name
- The name of the Function public OperatorFactory<Operand> getOperandFactory(java.lang.String name)
OperatorSource
getOperandFactory
in interface OperatorSource
name
- The name of the operand. public Variable getGlobalVariable(java.lang.String name)
OperatorSource
Gloval Variables are variables accessed by all Expressions. For example, Constants such as E, of PI.
getGlobalVariable
in interface OperatorSource
name
- The name of the variable. public Variable getLocalVariable(java.lang.String name)
OperatorSource
getLocalVariable
in interface OperatorSource
name
- The name of the variable. public void addGlobalVariable(Variable v)
v
- The variable to be added.public void addLocalVariable(Variable v)
v
- The variable to be added.public void addFunction(OperatorFactory<Function> fac)
fac
- the factory to be added.public void addOperand(OperatorFactory<Operand> fac)
fac
- the factory to be added.public void addOperands(java.util.Map<java.lang.String,? extends OperatorFactory<Operand>> ops)
ops
- the list of factories.public void addFunctions(java.util.Map<java.lang.String,? extends OperatorFactory<Function>> funcitons)
funcitons
- The factory functions.public void addGlobalVariables(java.util.Map<java.lang.String,? extends Variable> v)
v
- the gloval variables to be added.public void addLocalVariables(java.util.Map<java.lang.String,? extends Variable> v)
v
- the variables to be added.public java.util.Map<java.lang.String,OperatorFactory<Function>> getFunctionFactories()
getFunctionFactories
in interface OperatorSource
public java.util.Map<java.lang.String,Variable> getGlobalVariables()
getGlobalVariables
in interface OperatorSource
public java.util.Map<java.lang.String,Variable> getLocalVariables()
getLocalVariables
in interface OperatorSource
public java.util.Map<java.lang.String,OperatorFactory<Operand>> getOperandFactories()
getOperandFactories
in interface OperatorSource
public java.lang.String toString()
toString
in class java.lang.Object
| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |