|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.js.api.util.TransitionTimeTable
TransitionTimeTable is a singleton class to keep track of the amount of time it takes to transition between two different locations, a source and destination.
Method Summary | |
void |
add(int sourceRefNum,
int destRefNum,
int transitTime)
Adds an entry to the table given source and destination numbers |
void |
addByOp(int sourceOpId,
int destOpId,
int transitTime)
Adds an entry to the table given the between two operations |
int |
get(int sourceRefNum,
int destRefNum)
Returns the entry for the amount of time it takes to transition from the source to the destination |
int |
getByOp(int sourceOpId,
int destOpId)
Returns the entry for the amount of time it takes to transition from the source to the destination give their respective operation ids |
int |
getDestNumByOp(int opID)
Returns the destination number for a given operation Id |
static TransitionTimeTable |
getInstance()
Gets an instance of the TransitionTimeTable. |
int |
getSourceNumByOp(int opID)
Returns the source number for a given operation Id |
void |
registerOperationID(int operationID,
int sourceRefNum,
int destRefNum)
Registers an operation ID with a specific source and destination reference number. |
java.lang.String |
toString()
Creates a String object that represents the useful information in this class |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static TransitionTimeTable getInstance()
public void registerOperationID(int operationID, int sourceRefNum, int destRefNum)
operationID
- the id of the operation, andpublic int getSourceNumByOp(int opID)
opID
- operation id
public int getDestNumByOp(int opID)
opID
- operation id
public void addByOp(int sourceOpId, int destOpId, int transitTime)
sourceOpId
- id of the source operationdestOpId
- id of the destination operationtransitTime
- the amount of time that it takes to transition between the given source and destinationpublic void add(int sourceRefNum, int destRefNum, int transitTime)
sourceRefNum
- number of the sourcedestRefNum
- number of the destinationtransitTime
- the amount of time that it takes to transition between the given source and destinationpublic int get(int sourceRefNum, int destRefNum)
sourceRefNum
- number of the sourcedestRefNum
- number of the destination
public int getByOp(int sourceOpId, int destOpId)
sourceOpId
- id of the source operationdestOpId
- id of the destination operation
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |