public class DynamicParamTable
extends java.lang.Object
| Constructor and Description |
|---|
DynamicParamTable(RuleSet ruleSetObj,
UsageLevelTag tableUsageLevel,
long timeVal)
Creates table to hold DynamicParamHolder objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeRuleSet(RuleSet ruleSetObj)
Changes the rule set for this table.
|
void |
closeParamHistories()
Closes the history tracking for the parameters in this table,
releasing resources allocated by their archive managers.
|
boolean |
containsKey(java.lang.String str)
Determines if the specified parameter-name key exists in the table.
|
boolean |
containsValue(DynamicParamHolder dParam)
Determines if the specified parameter object exists in the table.
|
DynamicParamHolder |
get(java.lang.String str)
Returns the parameter object associated with the given key.
|
DynamicParamHolder |
get(java.lang.String str,
AgentInfo agentObj)
Returns parameter object associated with the given key.
|
StatusLevelTag |
getMinStatusLevel()
Returns the minimum status level found in the table of dynamic
parameters.
|
long |
getStatusUsageTimeValue()
Returns the time of the last change to the status or usage level
for the parameter table.
|
java.util.Vector |
getTableVec(long timeVal)
Returns a Vector of dynamic parameter objects in the table that
have been updated.
|
void |
setTableUsageLevel(UsageLevelTag uLevel)
Sets the usage level used to determine status levels for parameters
in the table.
|
int |
size()
Returns the number of parameter objects in the table.
|
boolean |
updateParameter(Station stationObj,
ParamValues paramValues,
DynamicParamHolder dParamHolderObj)
Updates or adds a dynamic parameter to the table.
|
protected boolean |
updateParameter(Station stationObj,
ParamValues paramValues,
java.lang.String nameStr,
java.lang.Object dataObj,
long timeVal,
AgentInfo agentObj,
DynamicParamHolder dParamHolderObj)
Updates or adds a dynamic parameter to the table, with a timestamp.
|
boolean |
updateParameter(Station stationObj,
ParamValues paramValues,
java.lang.String nameStr,
java.lang.String dataStr,
long timeVal,
AgentInfo agentObj)
Updates or adds a dynamic parameter to the table, with a timestamp.
|
public DynamicParamTable(RuleSet ruleSetObj, UsageLevelTag tableUsageLevel, long timeVal)
ruleSetObj - rule-set for table.tableUsageLevel - initial usage level for table.timeVal - the initial time value for the time of last change
to the status/usage level of the table.public DynamicParamHolder get(java.lang.String str)
str - a string matching the contents of the 'name' field
of the desired parameter object. The 'name' field should include
the agent name.public DynamicParamHolder get(java.lang.String str, AgentInfo agentObj)
str - a string matching the contents of the 'name' field
of the desired parameter object. The 'name' field should not
include the agent name.agentObj - the agent information block object associated
with the source agent for this parameter.public void setTableUsageLevel(UsageLevelTag uLevel)
uLevel - the usage level.protected boolean updateParameter(Station stationObj, ParamValues paramValues, java.lang.String nameStr, java.lang.Object dataObj, long timeVal, AgentInfo agentObj, DynamicParamHolder dParamHolderObj)
stationObj - the station object.paramValues - parameter values.nameStr - the name of the dynamic parameter.dataObj - the data object for the dynamic parameter.timeVal - the timestamp value for this update of the parameter.agentObj - the agent information block object associated
with the source agent for this parameter.dParamHolderObj - dynamic-parameter holder object to use, or
null to create a new one (if needed).public boolean updateParameter(Station stationObj, ParamValues paramValues, java.lang.String nameStr, java.lang.String dataStr, long timeVal, AgentInfo agentObj)
stationObj - the station object.paramValues - parameter values.nameStr - the name of the dynamic parameter.dataStr - the data string for the dynamic parameter.timeVal - the timestamp value for this update of the parameter.agentObj - the agent information block object associated
with the source agent for this parameter.public boolean updateParameter(Station stationObj, ParamValues paramValues, DynamicParamHolder dParamHolderObj)
stationObj - the station object.paramValues - parameter values.dParamHolderObj - dynamic-parameter holder object to use.public StatusLevelTag getMinStatusLevel()
public void changeRuleSet(RuleSet ruleSetObj)
ruleSetObj - the new rule set object to use.public boolean containsKey(java.lang.String str)
str - the parameter-name key.public boolean containsValue(DynamicParamHolder dParam)
dParam - the dynamic parameter.public java.util.Vector getTableVec(long timeVal)
timeVal - only dynamic parameter objects with timestamps
greater than or equal to this value are returned.public int size()
public long getStatusUsageTimeValue()
public void closeParamHistories()