MutualExclusion
Class Msg

java.lang.Object
  |
  +--daj.Message
        |
        +--MutualExclusion.Msg

class Msg
extends daj.Message


Field Summary
static int OK
          message type: ok (a process confirms another process's request
 LogicalTime time
          the logical time of the sending process when the message was sent
static int TRY
          message type: try (a process tries to get the shared ressource)
 int type
          the message type
 
Constructor Summary
Msg(int type, LogicalTime time)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getText()
           
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

TRY

public static final int TRY
message type: try (a process tries to get the shared ressource)

OK

public static final int OK
message type: ok (a process confirms another process's request

type

public int type
the message type

time

public LogicalTime time
the logical time of the sending process when the message was sent
Constructor Detail

Msg

public Msg(int type,
           LogicalTime time)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getText

public java.lang.String getText()
Overrides:
getText in class daj.Message