com.isti.trinetwatch.server
Class PerformanceGroupTable

java.lang.Object
  extended by com.isti.trinetwatch.server.PerformanceGroupTable
All Implemented Interfaces:
GroupTableInfo

public class PerformanceGroupTable
extends java.lang.Object
implements GroupTableInfo

Class PerformanceGroupTable manages a table of station groups with a particular performance.


Constructor Summary
PerformanceGroupTable(StationTable mainStationsTable, java.util.Enumeration levelObjsEnum)
          Class PerformanceGroupTable manages a table of station groups with a particular performance.
 
Method Summary
 java.util.Enumeration elements()
          Returns an enumeration of the 'StationTable' objects in the table.
 java.lang.String getStationsString(int compCode, java.lang.String groupName)
          Returns a String of names of stations associated with the given group name, via the given comparison code.
 StationTable getStationsTable(int compCode, java.lang.String groupName)
          Returns the StationTable associated with the given group name, via the given comparison code.
 java.util.Enumeration keys()
          Returns an enumeration of (performance level) group name keys.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerformanceGroupTable

public PerformanceGroupTable(StationTable mainStationsTable,
                             java.util.Enumeration levelObjsEnum)
Class PerformanceGroupTable manages a table of station groups with a particular performance.

Parameters:
mainStationsTable - "main" table of all stations for server.
levelObjsEnum - Enumeration of status-level-tag objects.
Method Detail

elements

public java.util.Enumeration elements()
Returns an enumeration of the 'StationTable' objects in the table. For this class, an enumeration of all stations for the server is returned.

Specified by:
elements in interface GroupTableInfo
Returns:
an enumeration of the 'StationTable' objects in the table.

getStationsTable

public StationTable getStationsTable(int compCode,
                                     java.lang.String groupName)
Returns the StationTable associated with the given group name, via the given comparison code.

Specified by:
getStationsTable in interface GroupTableInfo
Parameters:
compCode - the comparison code associated with the group name (one of the GUIServicesDefines "PROP_CODE_..." values).
groupName - name of the (performance level) group to get.
Returns:
The associated StationTable object; or null if none found.

getStationsString

public java.lang.String getStationsString(int compCode,
                                          java.lang.String groupName)
Returns a String of names of stations associated with the given group name, via the given comparison code.

Specified by:
getStationsString in interface GroupTableInfo
Parameters:
compCode - the comparison code associated with the group name (one of the GUIServicesDefines "PROP_CODE_..." values).
groupName - name of the (performance level) group to get.
Returns:
A String of station name strings, each surrounded by double-quotes and separated by a comma; or an empty String if no station names could be generated.

keys

public java.util.Enumeration keys()
Returns an enumeration of (performance level) group name keys.

Specified by:
keys in interface GroupTableInfo
Returns:
an enumeration of (performance level) group name keys.