public class StationType
extends java.lang.Object
| Constructor and Description |
|---|
StationType(java.lang.String type)
Creates an object of type StationType
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLevel(int levNum,
int timeout,
java.lang.String scriptPath)
This method adds a new level and its corresponding timeout and script
path to this type.
|
java.lang.String |
getLevelScriptPath(int level)
This method returns the path to the script to execute to change to this
level for this given type of station.
|
java.util.Enumeration |
getLevelsEnum()
This method returns an enumeration of StationTypeLevelInfo objects which
hold the information about each level.
|
int |
getLevelTimeout(int level)
Use this method to get the timeout for the given level.
|
java.lang.String |
getTypeName()
This method returns the name of this type.
|
StationTypeLevelInfo |
removeLevel(int levelNumber)
This method is used to remove a level from this type.
|
public StationType(java.lang.String type)
type - A string containing the name of the station type.public boolean addLevel(int levNum,
int timeout,
java.lang.String scriptPath)
levelNumber - An int representing the level number to be added.timeout - An int containing the timeout for this level and type
combo.scriptPath - The path of the script to execute to change to this
level.public java.lang.String getLevelScriptPath(int level)
level - The level for which you want to find out the script path.public java.util.Enumeration getLevelsEnum()
public int getLevelTimeout(int level)
level - An int holding the level for which a timeout is desired.public java.lang.String getTypeName()
public StationTypeLevelInfo removeLevel(int levelNumber)
levelNumber - An int indicating the level that is to be removed.