public class StationTypeTable
extends java.lang.Object
| Constructor and Description |
|---|
StationTypeTable()
Creates an object of type StationType
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addType(StationType typeToAdd)
This method adds a type to the type table.
|
boolean |
addType(java.lang.String typeName)
This method adds a type to the type table.
|
boolean |
contains(java.lang.String keyName)
This method is used to see if the given type is present in the table.
|
java.util.Enumeration |
getAllTypes()
This method returns an enumeration of all the types held in this table.
|
java.util.Enumeration |
getKeys()
This method returns an enumeration of the names (keys) of all the types
in the types table.
|
java.lang.String |
getScriptPath(int level,
java.lang.String typeOfStation)
This method is used to get the path of the script associated with the
given type and level.
|
java.lang.Integer |
getTimeout(int level,
java.lang.String typeOfStation)
This method is used to get the timeout for a given level/station type
pair.
|
StationType |
getType(java.lang.String typeName)
This method returns the type object associated with the given type name
|
StationType |
removeType(java.lang.String typeName)
This method removes a type from the type table.
|
public boolean addType(java.lang.String typeName)
typeName - A string holding the name of the type to be added.public boolean addType(StationType typeToAdd)
typeToAdd - An object of StationType which is to be added to the
type table.public StationType removeType(java.lang.String typeName)
typeName - A string containing the name of the type to be removed
from the type table.public StationType getType(java.lang.String typeName)
typeName - A string containing the name of the type object you
desire.public java.util.Enumeration getAllTypes()
public java.util.Enumeration getKeys()
public java.lang.String getScriptPath(int level,
java.lang.String typeOfStation)
level - The level to which will be changedtypeOfStation - The name (key) of the type of station for which the
script path is desired.public java.lang.Integer getTimeout(int level,
java.lang.String typeOfStation)
level - An int representing the level.typeOfStation - The name (key) of the type of station for which the
timeout is desired.public boolean contains(java.lang.String keyName)
keyName - A string containing the name (key) of the type to check
for.