com.isti.trinetwatch.station
Interface GroupTableInfo

All Known Implementing Classes:
GroupTable, PerformanceGroupTable, VotableGroupTable

public interface GroupTableInfo

Interface GroupTableInfo defines methods to access a table of station groups.


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 group name keys.
 

Method Detail

elements

java.util.Enumeration elements()
Returns an enumeration of the 'StationTable' objects in the table.

Returns:
an enumeration of the 'StationTable' objects in the table.

getStationsTable

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

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

getStationsString

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.

Parameters:
compCode - the comparison code associated with the group name (one of the GUIServicesDefines "PROP_CODE_..." values).
groupName - name of the 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

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

Returns:
an enumeration of group name keys.