public class SubsetPropInfo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SubsetPropInfo.AgentStationsUpdater
Class AgentStationsUpdater implements a method used to gather a list
of stations that match a given agent-name criteria and that have
changed status or usage since a given time value.
|
static interface |
SubsetPropInfo.StationsUpdatable
Interface StationsUpdatable defines a method used to gather a list
of stations that match a given criteria and that have changed
status or usage since a given time value.
|
Constructor and Description |
---|
SubsetPropInfo(java.lang.String name,
byte propCodeMask,
GroupTableInfo groupTableObj,
SubsetPropInfo.StationsUpdatable stationUpdater)
Creates an property item information block.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getCheckSameStatusFlag()
Returns true if subsets should be checked for all stations at same
status level (via 'procSameStatusGroups()' method).
|
java.util.Enumeration |
getGroupKeys()
Returns an enumeration of group names associated with this property
item.
|
java.lang.String |
getName()
Returns this property item's name.
|
byte |
getPropCodeMask()
Returns this property item's bit mask for its property code (used
with the 'GUIServices.getPropValuesList()' method).
|
java.lang.String |
getSameStatusString(long timeVal,
StatusLevelTag sLevel)
Returns a String indicating which subset-of-stations sets contain
stations that are all at the given status level as of the given
server time value (if no sets then an empty string is returned).
|
java.lang.String |
getStationsString(int compCode,
java.lang.String groupName)
Returns a String of names of stations associated with the given
group name (within this property item).
|
StationTable |
getStationsTable(int compCode,
java.lang.String groupName)
Returns the table of station objects associated with the given
group name (within this property item).
|
java.lang.String |
getSubsetUpdateString(long timeVal,
int compCode,
java.lang.String agentName)
Returns an update string of entries for all stations that match
the given criteria and that have changed status or usage since the
given time value.
|
void |
procSameStatusGroups()
Tracks the status levels of the stations in all of the groups held
by this object.
|
void |
setCheckSameStatusFlag(boolean flg)
Sets flag that is true to indicate that subsets should be checked
for all stations at same status level (via 'procSameStatusGroups()'
method).
|
java.lang.String |
toString()
Returns this property item's name.
|
public SubsetPropInfo(java.lang.String name, byte propCodeMask, GroupTableInfo groupTableObj, SubsetPropInfo.StationsUpdatable stationUpdater)
name
- name of the property item.propCodeMask
- bit mask for the property code; used with the
'GUIServices.getPropValuesList()' method.groupTableObj
- table of station groups associated with the
property item.stationUpdater
- the station updater object to use with this
information block; defines action taken by 'getSubsetUpdateString()'
method.public java.lang.String getName()
public byte getPropCodeMask()
public java.util.Enumeration getGroupKeys()
public java.lang.String getStationsString(int compCode, java.lang.String groupName)
compCode
- the comparison code associated with the group
name (not currently used).groupName
- the group name to use.public StationTable getStationsTable(int compCode, java.lang.String groupName)
compCode
- the comparison code associated with the group
name (not currently used).groupName
- the group name to use.public java.lang.String getSubsetUpdateString(long timeVal, int compCode, java.lang.String agentName)
timeVal
- a server epoch time value (seconds since 1/1/1970).compCode
- the comparison code associated with the group
name (not currently used).agentName
- the name of the agent to use in determining status,
or null for no agent.public void setCheckSameStatusFlag(boolean flg)
public boolean getCheckSameStatusFlag()
public void procSameStatusGroups()
public java.lang.String getSameStatusString(long timeVal, StatusLevelTag sLevel)
timeVal
- a server epoch time value (seconds since 1/1/1970).sLevel
- the status level to use.public java.lang.String toString()
toString
in class java.lang.Object