com.isti.trinetwatch.ruleset
Class RuleSetTable

java.lang.Object
  extended bycom.isti.trinetwatch.ruleset.RuleSetTable

public class RuleSetTable
extends java.lang.Object

Class RuleSetTable manages a table of RuleSet objects (each object is associated with a station-template name).


Constructor Summary
RuleSetTable()
           
 
Method Summary
 boolean add(java.lang.String name, RuleSet rSetObj)
          Adds a station-template-name / rule-set pair to the table.
 boolean containsKey(java.lang.String name)
          Tests if the specified station-template-name exists in the table of rule-sets.
 java.util.Enumeration elements()
          Returns an enumeration of rule-set hash table values.
 RuleSet get(java.lang.String name)
          Returns RuleSet object associated with the given station-template-name.
 java.util.Enumeration keys()
          Returns an enumeration of rule-set hash table keys.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuleSetTable

public RuleSetTable()
Method Detail

add

public boolean add(java.lang.String name,
                   RuleSet rSetObj)
Adds a station-template-name / rule-set pair to the table.

Returns:
true if successful, false if an object with the same station-template-name already exists in table.

get

public RuleSet get(java.lang.String name)
Returns RuleSet object associated with the given station-template-name.

Returns:
The handle of the RuleSet object or null if no matching object was found.

containsKey

public boolean containsKey(java.lang.String name)
Tests if the specified station-template-name exists in the table of rule-sets.

Returns:
true if the station-template-name exists in the table, false if not.

keys

public java.util.Enumeration keys()
Returns an enumeration of rule-set hash table keys. Each key will be the String name of a station-template.


elements

public java.util.Enumeration elements()
Returns an enumeration of rule-set hash table values. Each value will be a RuleSet object.


toString

public java.lang.String toString()
Returns a string representation of this object. The string representation of each 'RuleSet' object is put in a separate section delimited by a blank line.