public class DefaultEquationSupport extends Object implements EquationSupport
DefaultEquationSupport class.
Constructor and Description |
---|
DefaultEquationSupport()
Constructor for DefaultEquationSupport.
|
Modifier and Type | Method and Description |
---|---|
void |
assignVariable(String variableName,
Object value)
assignVariable.
|
void |
assignVariable(String variableName,
Object value,
boolean sysgen)
assignVariable.
|
void |
clear()
Removes all variables except system generated ones.
|
List<String> |
getVariableNames()
getVariableNames.
|
List<String> |
getVariableNames(boolean includeSystemGenerated)
getVariableNames.
|
void |
removeVariable(String name)
removeVariable.
|
Hashtable<Double,Double> |
resolveRate(String tableName,
Date baseDate,
double tableKey)
resolveRate.
|
double |
resolveRate(String tableId,
Date effectiveDate,
String key1,
String key2,
String key3,
String key4,
String key5)
resolveRate.
|
Object |
resolveVariable(String variableName)
resolveVariable.
|
Object |
resolveVariable(String variableName,
Date baseDate)
resolveVariable.
|
void |
setVariables(Hashtable<String,com.codetaco.math.support.DefaultEquationSupport.Variable> newVariables)
Setter for the field
variables . |
public DefaultEquationSupport()
Constructor for DefaultEquationSupport.
public void assignVariable(String variableName, Object value) throws Exception
assignVariable.
assignVariable
in interface EquationSupport
variableName
- a String
object.value
- a Object
object.Exception
- if any.public void assignVariable(String variableName, Object value, boolean sysgen) throws Exception
assignVariable.
assignVariable
in interface EquationSupport
variableName
- a String
object.value
- a Object
object.sysgen
- If true these variables can not be cleared.Exception
- if any.public void clear()
Removes all variables except system generated ones.
clear
in interface EquationSupport
public List<String> getVariableNames()
getVariableNames.
getVariableNames
in interface EquationSupport
List
object.public List<String> getVariableNames(boolean includeSystemGenerated)
getVariableNames.
getVariableNames
in interface EquationSupport
List
object.public void removeVariable(String name)
removeVariable.
removeVariable
in interface EquationSupport
name
- a String
object.public Hashtable<Double,Double> resolveRate(String tableName, Date baseDate, double tableKey) throws Exception
resolveRate.
resolveRate
in interface EquationSupport
tableName
- a String
object.baseDate
- a Date
object.tableKey
- a double.Hashtable
object.Exception
- if any.public double resolveRate(String tableId, Date effectiveDate, String key1, String key2, String key3, String key4, String key5) throws Exception
resolveRate.
resolveRate
in interface EquationSupport
tableId
- a String
object.effectiveDate
- a Date
object.key1
- a String
object.key2
- a String
object.key3
- a String
object.key4
- a String
object.key5
- a String
object.Exception
- if any.public Object resolveVariable(String variableName) throws Exception
resolveVariable.
resolveVariable
in interface EquationSupport
variableName
- a String
object.Object
object.Exception
- if any.public Object resolveVariable(String variableName, Date baseDate) throws Exception
resolveVariable.
resolveVariable
in interface EquationSupport
variableName
- a String
object.baseDate
- a Date
object.Object
object.Exception
- if any.Copyright © 2018 CodeTaco. All rights reserved.