Index of all Fields and Methods
All Packages  Class Hierarchy

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Index of all Fields and Methods

A

activate(process). Static method in class sim.scheduler
like activate(p, 0);
activate(process, int). Static method in class sim.scheduler
if p is not running or scheduled, schedule it with delay time; otherwise, do nothing
active(). Method in class sim.process
test if process is active, i.e.

C

cancel(). Method in class sim.process
make this process idle (unscheduled and not running)
clock. Static variable in class sim.scheduler
global simulated time
current. Static variable in class sim.scheduler
reference to current process

D

Dequeue(). Method in class queues.Queue
draw(). Method in class random.erand
draw(). Method in class random.urand

E

Enqueue(Object). Method in class queues.Queue
Enqueue(Object, int). Method in class queues.PriorityQueue
Note that Enqueue is overloaded!
erand(double). Constructor for class random.erand
erand(double, long). Constructor for class random.erand

F

fatal_error(String). Static method in class sim.scheduler
signal a fatal error and die
fdraw(). Method in class random.erand
fdraw(). Method in class random.rand
Find(Object). Method in class queues.Queue
Front(). Method in class queues.Queue
FrontKey(). Method in class queues.PriorityQueue

H

hold(int). Static method in class sim.scheduler
schedule for activation after 'delay' time units, and passivate

I

IsEmpty(). Method in class queues.Queue

L

Length(). Method in class queues.Queue

N

name. Variable in class sim.process
name of this process as given in constructor

P

pass_baton(process). Static method in class sim.scheduler
pass_baton() to support coroutines
pass_baton(process, boolean). Static method in class sim.scheduler
pass baton to next process
passivate(). Static method in class sim.scheduler
make current process non-active
Print(). Method in class queues.PriorityQueue
print(). Method in class sim.process
print name, state, and scheduled event time for process
Print(). Method in class queues.Queue
PriorityQueue(). Constructor for class queues.PriorityQueue
process(String). Constructor for class sim.process
process constructor

Q

Queue(). Constructor for class queues.Queue

R

rand(). Constructor for class random.rand
rand(long). Constructor for class random.rand
reactivate(process). Static method in class sim.scheduler
like reactivate(p, 0);
reactivate(process, int). Static method in class sim.scheduler
if p is not running or scheduled, schedule it with delay t; if p is running or scheduled, reschedule it with delay t
Rear(). Method in class queues.Queue
RearKey(). Method in class queues.PriorityQueue
Remove(Object). Method in class queues.Queue
run(). Method in class sim.process
main body for thread
run_simulation(). Static method in class sim.scheduler
start simulation (event queue must be non-empty)

S

scheduled(). Method in class sim.process
test for scheduled (has an event notice; false if running)
scheduler(). Constructor for class sim.scheduler

T

terminate(). Method in class sim.process
make process unrunnable (no longer activatable);

note that there is no terminate_and_delete() as Java doesn't need to delete objects; similarly, you cannot rely on clean-up being done in the destructor

terminated(). Method in class sim.process
test if this process is terminated

U

urand(int, int). Constructor for class random.urand
urand(int, int, long). Constructor for class random.urand

W

waitq(Queue). Method in class sim.process
enqueue reference to this process in queue q, and passivate

note that there is no enqueue_proc/dequeue_proc anymore;

use Queue Enqueue/Dequeue instead