A B D E F H I L M N P R S T U

A

actionPerformed(ActionEvent) - Method in class PhilosopherApplet
Catches the button click event INPUT: ActionEvent which is linked to a button press.
activity(int, Color) - Method in class Philosopher
The thread for each philosopher.

B

buf - Variable in class PhilosopherApplet
 

D

DP - class DP.
This class is used to allow the file to be called DP.
DP() - Constructor for class DP
 
drawDisc(int, int, int, Color, Graphics) - Method in class PhilosopherApplet
Draw a circle with black shadeing.
drawPhil(int, int, Color, Graphics) - Method in class PhilosopherApplet
Draw the philosophers with scaled size to the applet size INPUT: n, the number of this current philosopher, index 0 numPhils, the total number of philosophers, index 0 Color, the color of the philosophers Graphics class to allow the creation of shapes..
drawTable(Graphics) - Method in class PhilosopherApplet
Draw the table witch is scaled to the applet size INPUT: Graphics class to allow the creation of shapes..

E

eat() - Method in class Philosopher
Defines what the color will be with the assorted acction INPUT: none OUTPUT: none

F

forks - Variable in class PhilosopherApplet
 

H

handleEvent(Event) - Method in class PhilosopherApplet
Catches the scroll bar event INPUT: Event which is linked to a scroll move.
hungry() - Method in class Philosopher
Defines what the color will be with the assorted action INPUT: none OUTPUT: none

I

im - Variable in class PhilosopherApplet
 
init() - Method in class PhilosopherApplet
This function will setup the layout of the button elements, as well as link the elements with the actions.

L

left() - Method in class Philosopher
Not used, not needed.
lock - Variable in class PhilosopherApplet
 

M

me - Variable in class Philosopher
 

N

NUMPHILS - Variable in class PhilosopherApplet
 

P

pa - Variable in class Philosopher
 
paint(Graphics) - Method in class PhilosopherApplet
Repaint the screen.
philArray - Variable in class PhilosopherApplet
 
Philosopher - class Philosopher.
The philosopher class INPUT: none OUTPUT: none
Philosopher(PhilosopherApplet, int) - Constructor for class Philosopher
Initialize the philosopher class INPUT: phillApp, link to main _me , ID number OUTPUT: none
PhilosopherApplet - class PhilosopherApplet.
This is the main class for the Applet.
PhilosopherApplet() - Constructor for class PhilosopherApplet
 

R

right() - Method in class Philosopher
Not used, not needed.
run() - Method in class Philosopher
Change the modes.
running - Variable in class PhilosopherApplet
 

S

sleep - Variable in class PhilosopherApplet
 
speed() - Method in class PhilosopherApplet
Return the current sleep value INPUT: none OUTPUT: sleep
speedBar - Variable in class PhilosopherApplet
 
speedDown() - Method in class PhilosopherApplet
Change the speed down of the update, used with the buttons.
speedLabel - Variable in class PhilosopherApplet
 
SpeedLabel - Variable in class PhilosopherApplet
 
speedSet(int) - Method in class PhilosopherApplet
Change the speed of the update, used with the scroll bar.
speedUp() - Method in class PhilosopherApplet
Change the speed up of the update, used with the buttons.
start() - Method in class PhilosopherApplet
Starts applet and initializes the philosophers INPUT: none OUTPUT: none, but initializes the philosophers
startStopButton - Variable in class PhilosopherApplet
 
state - Variable in class PhilosopherApplet
 
stop() - Method in class PhilosopherApplet
Starts applet and suspends the philosophers INPUT: none OUTPUT: none, but suspends the philosophers
stopped - Variable in class PhilosopherApplet
 
suspended - Variable in class PhilosopherApplet
 

T

think() - Method in class Philosopher
Defines what the color will be with the assorted action INPUT: none OUTPUT: none

U

update(Graphics) - Method in class PhilosopherApplet
Update and Repaint the screen.

A B D E F H I L M N P R S T U