|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--java.util.Vector
|
+--os.Queue
|
+--os.ProcessTable
Implements a process table for managing process in the Bot Operating System.
| Fields inherited from class java.util.Vector |
capacityIncrement,
elementCount,
elementData |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
ProcessTable()
|
|
| Method Summary | |
void |
addProcess(OSProcess p)
Adds a process to the end of the queue. |
OSProcess |
getNextProcess()
Gets the next process off of the queue to run. |
OSProcess |
getProcess(int id)
Gets a specific process from the queue using the specified id. |
java.lang.String |
toString()
Create a string representation of the current state of the queue. |
| Methods inherited from class os.Queue |
get,
main |
| Methods inherited from class java.util.Vector |
add,
add,
addAll,
addAll,
addElement,
capacity,
clear,
clone,
contains,
containsAll,
copyInto,
elementAt,
elements,
ensureCapacity,
equals,
firstElement,
get,
hashCode,
indexOf,
indexOf,
insertElementAt,
isEmpty,
lastElement,
lastIndexOf,
lastIndexOf,
remove,
remove,
removeAll,
removeAllElements,
removeElement,
removeElementAt,
removeRange,
retainAll,
set,
setElementAt,
setSize,
size,
subList,
toArray,
toArray,
trimToSize |
| Methods inherited from class java.util.AbstractList |
iterator,
listIterator,
listIterator |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public ProcessTable()
| Method Detail |
public OSProcess getNextProcess()
public void addProcess(OSProcess p)
p - the process to add to the end of the queue.public OSProcess getProcess(int id)
id - the id of the process to retrieve from the process
queue.public java.lang.String toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||