Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
A
B
C
D
E
F
G
H
I
L
M
O
P
R
T
A
assert(Program[])
- Method in class MutualExclusion.
CriticalRegionConflict
assert(Program[])
- Method in class MutualExclusion.
CriticalRegionLockout
B
BORDER
- Static variable in class MutualExclusion.
RicartAgrawala
C
C
- Static variable in class MutualExclusion.
Prog
possible value for region: critical region entered
checkOkMsgsReceived()
- Method in class MutualExclusion.
Prog
This is a helper function that checks if all "OK" messages have been recieved for the last try message.
clock
- Variable in class MutualExclusion.
Prog
the current clock value
clock
- Variable in class MutualExclusion.
LogicalTime
the clock value
construct()
- Method in class MutualExclusion.
RicartAgrawala
CriticalRegionConflict
- class MutualExclusion.
CriticalRegionConflict
.
This assertion checks that at most 1 process is in the critical region at the same time.
CriticalRegionConflict()
- Constructor for class MutualExclusion.
CriticalRegionConflict
CriticalRegionLockout
- class MutualExclusion.
CriticalRegionLockout
.
This assertion checks that if a process tries to enter the critical region, no other process trying it at any time later will be allowed to enter the critical region before the first process has entered it.
CriticalRegionLockout()
- Constructor for class MutualExclusion.
CriticalRegionLockout
D
deferred_ok
- Variable in class MutualExclusion.
Prog
for every neighbour, the buffer for remembering deferred ok messages until critical region has been left
DISTANCE
- Static variable in class MutualExclusion.
RicartAgrawala
E
equals(Object)
- Method in class MutualExclusion.
LogicalTime
checks for equality as defined for the Lamport logical time
equals(Object)
- Method in class MutualExclusion.
Msg
F
freeRessource()
- Method in class MutualExclusion.
Prog
the user function for freeing the ressource (exiting the critical region)
G
getText()
- Method in class MutualExclusion.
RicartAgrawala
getText()
- Method in class MutualExclusion.
Prog
getText()
- Method in class MutualExclusion.
Msg
getText()
- Method in class MutualExclusion.
CriticalRegionConflict
getText()
- Method in class MutualExclusion.
CriticalRegionLockout
H
handleTryMessage(int, Msg)
- Method in class MutualExclusion.
Prog
This is a helper function that responds properly to a received "try" message.
history
- Variable in class MutualExclusion.
Prog
for every node, the message history
I
index
- Variable in class MutualExclusion.
Prog
the node number
L
lastTryTime
- Variable in class MutualExclusion.
Prog
the logical time of the last "try" message that has been sent
lessThan(LogicalTime)
- Method in class MutualExclusion.
LogicalTime
check if the the current time is less than t as defined for the Lamport logical time
LogicalTime
- class MutualExclusion.
LogicalTime
.
Represents a logical time value with operations for checking for equality and order.
LogicalTime(int, int)
- Constructor for class MutualExclusion.
LogicalTime
a logical time object can only be constructed when both parameters are known
M
main()
- Method in class MutualExclusion.
Prog
this method performs the node's main functions
main(String[])
- Static method in class MutualExclusion.
RicartAgrawala
Msg
- class MutualExclusion.
Msg
.
Msg(int, LogicalTime)
- Constructor for class MutualExclusion.
Msg
O
OK
- Static variable in class MutualExclusion.
Msg
message type: ok (a process confirms another process's request
P
PNUM
- Static variable in class MutualExclusion.
RicartAgrawala
process
- Variable in class MutualExclusion.
LogicalTime
for equal clock values the sender process's index is compared
procInCR
- Variable in class MutualExclusion.
CriticalRegionLockout
procsInCR
- Variable in class MutualExclusion.
CriticalRegionConflict
procTryingLonger
- Variable in class MutualExclusion.
CriticalRegionLockout
Prog
- class MutualExclusion.
Prog
.
The code that will be executed on each node.
Prog(int)
- Constructor for class MutualExclusion.
Prog
the default constructor initializes the index and the arrays
R
R
- Static variable in class MutualExclusion.
Prog
possible value for region: idle
region
- Variable in class MutualExclusion.
Prog
the region can be either R, T, C or E
ressourceAvailable()
- Method in class MutualExclusion.
Prog
this function is called when the ressource can be taken (the critical region can be entered)
ressourceFreed()
- Method in class MutualExclusion.
Prog
this function is called when the ressource has been freed (the critical region has been left)
RicartAgrawala
- class MutualExclusion.
RicartAgrawala
.
RicartAgrawala()
- Constructor for class MutualExclusion.
RicartAgrawala
Creates new Main
T
T
- Static variable in class MutualExclusion.
Prog
possible value for region: try to get the ressource
time
- Variable in class MutualExclusion.
Msg
the logical time of the sending process when the message was sent
toString()
- Method in class MutualExclusion.
LogicalTime
TRY
- Static variable in class MutualExclusion.
Msg
message type: try (a process tries to get the shared ressource)
tryRessource()
- Method in class MutualExclusion.
Prog
the user function for trying to get the ressource (getting the permission to enter the critical region)
tryTimes
- Variable in class MutualExclusion.
CriticalRegionLockout
type
- Variable in class MutualExclusion.
Msg
the message type
A
B
C
D
E
F
G
H
I
L
M
O
P
R
T
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES