|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--os.OSScheduler
Implements a round-robin scheduler for the Bot Operating System. Each process is allowed to run as long as it wants until it throws an OSProcessDone, OSProcessExec, OSProcessLoadProcess, OSProcessRelinquishControl, or OSProcessWaitForProcess exception. At that point the process is removed from the run queue, and for all but OSProcessDone, and OSProcessExec, put back at the bottom of the run queue to run again later. When OSProcessDone is thrown the processes done method is called.
| Constructor Summary | |
OSScheduler()
Creates an empty scheduler with no initialization path or initialization process name. |
|
OSScheduler(java.lang.String initPath)
Creates a scheduler with the specified initialization path. |
|
OSScheduler(java.lang.String initPath,
java.lang.String initProcessName)
Creates a scheduler with the specified initialization path and initialization process name. |
|
| Method Summary | |
java.lang.String |
getInitPath()
Gets the initialization path that is used for locating the initialization process. |
java.lang.String |
getInitProcessName()
Gets the initialization process name that is used to start up the operating system. |
static void |
main(java.lang.String[] args)
|
void |
setInitPath(java.lang.String initPath)
Sets the initialization path that is used for locating the initialization process. |
void |
setInitProcessName(java.lang.String initProcessName)
Sets the initialization process name that is used to start up the operating system. |
void |
start()
Starts the operating system up and begins to run processes. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public OSScheduler()
public OSScheduler(java.lang.String initPath)
initPath -
public OSScheduler(java.lang.String initPath,
java.lang.String initProcessName)
initPath - initProcessName - | Method Detail |
public void setInitPath(java.lang.String initPath)
initPath - the initialization path where the initialization
process lives.public java.lang.String getInitPath()
public void setInitProcessName(java.lang.String initProcessName)
initProcessName - the name of the process that is used to
start up the operating system.public java.lang.String getInitProcessName()
public void start()
public static void main(java.lang.String[] args)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||