|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.trinetwatch.controlAgentSim.StationType
public class StationType
This class holds a set of stations in a table
Constructor Summary | |
---|---|
StationType(java.lang.String type)
Creates an object of type StationType |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StationType(java.lang.String type)
type
- A string containing the name of the station type.Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |