A C E G I M N P R S T U

A

Actions - interface Actions.
The interface defines some actions that User and and there nodes i.e NIC will use to synchronize token actions Other actions are also declared to check user input flag

C

createToken() - Static method in class Token
Creates Token object and return

E

EXIT - Static variable in interface Actions
 

G

GET_SIGNAL - Static variable in interface Actions
 

I

initialize() - Method in class Ring
create process and simulate
intRead() - Method in class Read
takes input from user breaks it into integer token and return

M

main(String[]) - Static method in class RingTest
 

N

NIC - class NIC.
The class creates token then Passes token to neighbour NIC and holds token while the resource in use bu user
NIC(ChannelInt, ChannelOutput, ChannelInput) - Constructor for class NIC
constuctor to assign channel to NIC

P

PASS - Static variable in interface Actions
 
PASS_SIGNAL - Static variable in interface Actions
 

R

READ - Static variable in interface Actions
 
Read - class Read.
This class takes command line input from user The class is based on book example (Horton, 2000 pp.378-379) Beginning JAVA 2.
Read() - Constructor for class Read
Creates command line reader
Resource - class Resource.
The class allow the users to print message on resource once their NIC has a token
Resource(Channel) - Constructor for class Resource
Constructor that assign output channel to resource
Ring - class Ring.
Startup class that creates channel and assign to Users, NIC and Resource
Ring() - Constructor for class Ring
Constructor to initialize channels
RingTest - class RingTest.
Main class that creates and start ring simulation
RingTest() - Constructor for class RingTest
 
run() - Method in class NIC
Defines action of processes
run() - Method in class Resource
Defines action of processes
run() - Method in class User
Defines action of processes

S

setReader() - Method in class User
Set the user to take input

T

Token - class Token.
Singleton class that creates token and return token only to the first creator otherwise it returns null The first user will only get the token and other will get null means no token

U

U1andU2 - Variable in class Ring
Channel for User1 and User2 communication
U2andU3 - Variable in class Ring
Channel for User2 and User3 communication
U3andU1 - Variable in class Ring
Channel for User3 and User1 communication
UNDEFINED - Static variable in interface Actions
 
User - class User.
This class prints on the resource once its NIC a token
User(Channel, ChannelInt, String) - Constructor for class User
Constructor for channel assignment and message
UsertoNICchanInt1 - Variable in class Ring
Channel for User1 and its NIC communication
UsertoNICchanInt2 - Variable in class Ring
Channel for User2 and its NIC communication
UsertoNICchanInt3 - Variable in class Ring
Channel for User3 and its NIC communication

A C E G I M N P R S T U