Class Hierarchy
ABCDEFGHIJKLMNOPQRSTUVWXYZ
Index of all Fields and Methods
A
-
add(Job,
int). Method in class DiskScheduler
-
Add a new job wanting service.
-
add(Job,
int). Method in class RRScheduler
-
Add a new job wanting service.
-
add(Job,
int). Method in class Scheduler
-
Add a new job wanting service.
-
add(Job,
int). Method in class XQ1Scheduler
-
Add a new job wanting service.
-
add(Job,
int). Method in class XQ2Scheduler
-
Add a new job wanting service.
-
assert(boolean).
Static method in class Sim
-
Crude assertion checking
B
-
BLOCKED.
Static variable in class Job
-
Job needs to do an I/O operation next
-
BLOCKSIZE.
Static variable in class Sim
-
The size of a disk block, in bytes
-
burst.
Variable in class Job
-
size of current burst
-
burstStart.
Variable in class Job
-
time when current burst started (job "arrived" at the cpu queue)
C
-
CPU_RR.
Static variable in class Sim
-
Types of CPU scheduler
-
CPU_XQ1.
Static variable in class Sim
-
CPU_XQ2.
Static variable in class Sim
-
D
-
db(int,
Object, Object). Static method in class Sim
-
db(int,
Object, Object, Object). Static method in class Sim
-
db(int,
Object, Object, Object, Object). Static method in class Sim
-
db(int,
Object, Object, Object, Object, Object). Static method in class Sim
-
db(int,
Object, Object, Object, Object, Object, int). Static method in class Sim
-
db(int,
String). Static method in class Sim
-
Print msg if verbosity >= level
-
db(String).
Static method in class Sim
-
Print msg unconditionally
-
DISK_TIME.
Static variable in class Sim
-
The amount of time it takes for a disk operation
-
DiskScheduler().
Constructor for class DiskScheduler
-
doIO().
Method in class Job
-
Called when this Job does an I/O operation
-
DONE.
Static variable in class Job
-
Job has completed
F
-
finish().
Method in class Job
-
This job is finished.
I
-
isBusy().
Method in class Device
-
Is the device currently runing?
M
-
main(String[]).
Static method in class Proj3
-
moreVerbose().
Static method in class Sim
-
N
-
nextBurst().
Method in class Job
-
Return the amount of CPU time remaining for this job until it next does
I/O, or completes.
-
nextInterrupt().
Method in class Device
-
Retrieve the time when the next interrupt will occur
-
now().
Static method in class Sim
-
O
-
ODD_BURST_PROB.
Static variable in class Sim
-
Probability of an "unusual" CPU burst (see Job.newBurst())
P
-
pl(String).
Static method in class Sim
-
Print msg unconditionally without the header
-
printQueue().
Method in class DiskScheduler
-
For debugging: print the queue of waiting jobs
-
printQueue().
Method in class RRScheduler
-
For debugging: print the queue of waiting jobs
-
printQueue().
Method in class Scheduler
-
For debugging: print the queue of waiting jobs
-
printQueue().
Method in class XQ1Scheduler
-
For debugging: print the queue of waiting jobs
-
printQueue().
Method in class XQ2Scheduler
-
For debugging: print the queue of waiting jobs
-
printStats().
Method in class Device
-
Print information about this device
-
printStats().
Method in class Scheduler
-
Print statistics about the history of this queue.
-
Proj3().
Constructor for class Proj3
-
Q
-
QUANTUM.
Static variable in class Sim
-
The quantum for round-robin scheduling
-
queueChanged(int).
Method in class Scheduler
-
This method should be called by a subclass whenever the queue length changes.
R
-
READY.
Static variable in class Job
-
Job is ready to run
-
record(double).
Method in class Stats
-
remove().
Method in class DiskScheduler
-
Retrieve (and remove) the next job to be served.
-
remove().
Method in class RRScheduler
-
Retrieve (and remove) the next job to be served.
-
remove().
Method in class Scheduler
-
Retrieve (and remove) the next job to be served.
-
remove().
Method in class XQ1Scheduler
-
Retrieve (and remove) the next job to be served.
-
remove().
Method in class XQ2Scheduler
-
Retrieve (and remove) the next job to be served.
-
reschedule(int).
Method in class DiskScheduler
-
This method is called when there is a clock interrupt, and just after a
call to schedule().
-
reschedule(int).
Method in class RRScheduler
-
This method is called when there is a clock interrupt.
-
reschedule(int).
Method in class Scheduler
-
This method is called when there is a clock interrupt.
-
reschedule(int).
Method in class XQ1Scheduler
-
This method is called when there is a clock interrupt.
-
reschedule(int).
Method in class XQ2Scheduler
-
This method is called when there is a clock interrupt.
-
RRScheduler().
Constructor for class RRScheduler
-
S
-
Scheduler().
Constructor for class Scheduler
-
Sim().
Constructor for class Sim
-
start().
Method in class Job
-
Called when this Job is started running on the CPU
-
start(Job,
int). Method in class CPU
-
Start the device running.
-
start(Job,
int). Method in class Device
-
Start the device running job j.
-
start(Job,
int). Method in class JobArrival
-
Read the next (or first) job description from the input file, skipping
molformed lines, and make it the current job, with a simulated interrupt
occurring at the arrival time of the job.
-
state().
Method in class Job
-
What is the current state of this Job?
-
Stats().
Constructor for class Stats
-
stop().
Method in class Device
-
Stop the device, and return the Job currently running.
-
stop().
Method in class Job
-
Called when this Job is removed from the CPU
-
SWAP_OVERHEAD.
Static variable in class Sim
-
Penalty for starting and stopping a process.
T
-
tod(int).
Static method in class Sim
-
Convert a time-stamp from ms to time of day in the format h:mm:ss.mmm This
used to be written more "cleanly", but it turned out to consume a huge
fraction of the entire time taken by the program, so it was re-written
to avoid allocating and concatenating Strings until the very end.
-
toString().
Method in class Device
-
For debugging, information about this device
-
toString().
Method in class Job
-
for debugging: a string version of this job
-
toString().
Method in class JobStats
-
toString().
Method in class Stats
-
traceFlag.
Static variable in class Sim
-
Trace flag:
V
-
verbosity.
Static variable in class Sim
-
Flag to control the verbosity of debugging output.
X
-
XQ1Scheduler().
Constructor for class XQ1Scheduler
-
XQ2Scheduler().
Constructor for class XQ2Scheduler
-