Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
B
C
D
E
F
G
I
L
M
P
Q
R
S
T
U
A
AppletMig
- class
AppletMig
.
AppletMig()
- Constructor for class
AppletMig
Simple Constructor
B
BigBen
- Variable in class
CPU
C
Clock
- class
Clock
.
Computer
- class
Computer
.
CPU
- class
CPU
.
create()
- Method in class
Creator
Create a new process
Creator
- class
Creator
.
D
dequeue()
- Method in class
Queue
This method removes the process at the beginning of the queue.
dequeueLast()
- Method in class
Queue
This method removes the process at the end of the queue.
Display
- class
Display
.
drawClock(Graphics)
- Method in class
Display
Draw all the clocks
drawgraph
- Variable in class
Display
drawMeanCompletionTime(Graphics)
- Method in class
Display
Draw all the Mean Completion Time graphs
drawProcessArrived(Graphics, int, float)
- Method in class
Display
drawProcessCompleted(Graphics, int, float)
- Method in class
Display
drawQueue(Graphics)
- Method in class
Display
Draw all the queues
drawQueueLength(Graphics)
- Method in class
Display
Draw all the queue length graphs
E
enqueue(Proc)
- Method in class
Queue
This method adds a new process to the queue.
execute()
- Method in class
CPU
Take out the process which is being run and get the next process from the queue
F
FIFO
- Variable in class
CPU
FIFO
- Variable in class
Creator
G
getArrType()
- Method in class
Creator
Accesor method to read the arrival process type
getClock()
- Method in class
Computer
getCompletion()
- Method in class
CPU
Accesor method to read the mean completion time
getCPU()
- Method in class
Computer
getCreation()
- Method in class
Proc
Accesor method to read the time of process creation
getCreation()
- Method in class
Queue
Reads the creationTime of the first process in the queue
getCreator()
- Method in class
Computer
getName()
- Method in class
Proc
Accesor method to read procName
getName(int)
- Method in class
Queue
Reads the process name of the i-th process in the queue
getOverhead()
- Method in class
CPU
Accesor method to read the context-switch overhead
getProcType()
- Method in class
Creator
Accesor method to read the process duration distribution
getQuantum()
- Method in class
CPU
Accesor method to read the quantum
getQueue()
- Method in class
Computer
getServiceTime()
- Method in class
Creator
Accesor method to read the service time parameter
getTime()
- Method in class
Clock
Accesor method to read the clockTime variable
getTime()
- Method in class
Proc
Accesor method to read timeLeft
getTime(int)
- Method in class
Queue
Reads the time left in the i-th process in the queue
I
incrementIdent()
- Static method in class
Computer
Increments the counter
init()
- Method in class
AppletMig
Initiate the applet execution.
isEmpty()
- Method in class
Queue
returns TRUE if the queue is empty.
isFull()
- Method in class
Queue
Returns TRUE if the queue is full.
L
length()
- Method in class
Queue
Returns the number of processes currently in the queue.
M
main(String[])
- Static method in class
AppletMig
Main method to initiate the applet from the prompt.
P
paint(Graphics)
- Method in class
Display
paint() is the basic display method; most applets implement this method to draw the applet's representation within a browser page
pause()
- Method in class
Clock
Pause the execution of the clock
pause()
- Method in class
Computer
Pause computer's threads
pause()
- Method in class
CPU
Pause the execution of the CPU
pause()
- Method in class
Creator
Pause the execution of the creator
pause()
- Method in class
Server
Pause the execution of the server
Proc
- class
Proc
.
File: Proc class Description: This class implements a Process for the simulation.
Q
Queue
- class
Queue
.
File: Queue Class Description: This is my Queue class.
R
Refresher
- class
Refresher
.
restart()
- Static method in class
Computer
Restart the counter
restart()
- Method in class
CPU
Restart the execution of the CPU, set all attributes with the default values
restart()
- Method in class
Display
Restart the simulation, create new Queues
rotate()
- Method in class
Queue
This method rotates the queue, so that Queue[0] is always the element being serviced by the CPU.
run()
- Method in class
Clock
Increment the clock time each 1000+(ident*100) milliseconds.
run()
- Method in class
CPU
Call execute method and sleep
run()
- Method in class
Creator
Call create method and sleep
run()
- Method in class
Refresher
Each second call display's repaint method
run()
- Method in class
Server
Migrates the process from one computer to another
S
Server
- class
Server
.
setArrivalTime(float)
- Method in class
Creator
Accesor method to modify the arrivalTime
setArrType(boolean)
- Method in class
Creator
Accesor method to modify the arrival process type
setClock(Clock)
- Method in class
Computer
setCPU(CPU)
- Method in class
Computer
setCreator(Creator)
- Method in class
Computer
setOverhead(float)
- Static method in class
CPU
Accesor method to modify the context-switch overhead
setProcType(boolean)
- Method in class
Creator
Accesor method to modify the process duration distribution
setQuantum(float)
- Static method in class
CPU
Accesor method to modify the quantum
setQueue(Queue)
- Method in class
Computer
setServiceTime(float)
- Method in class
Creator
Accesor method to modify the service time parameter
setTime(float)
- Method in class
Clock
Accesor method to modify the clockTime variable
setTime(int)
- Method in class
Proc
Accesor method to modify timeLeft
setTime(int, int)
- Method in class
Queue
Changes the time left for the process being served by the CPU which is always process 0.
smallestQueue()
- Method in class
Server
Return the id of the computer with the smallest Queue
start_threads()
- Method in class
AppletMig
Initiate the computers threads
start()
- Method in class
Computer
Start computer's threads
T
turnoff()
- Method in class
Clock
Stop the execution of the clock
turnoff()
- Method in class
Computer
Stop computer's threads
turnoff()
- Method in class
CPU
Stop the execution of the CPU
turnoff()
- Method in class
Creator
Stop the execution of the creator
turnoff()
- Method in class
Server
Stop the execution of the server
U
update(Graphics)
- Method in class
Display
Draw the elements again (Queues, Clocks and Graphs)
A
B
C
D
E
F
G
I
L
M
P
Q
R
S
T
U
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES