DFSS
Class Message

java.lang.Object
  extended byDFSS.Message
All Implemented Interfaces:
Ordinable, java.io.Serializable

public class Message
extends java.lang.Object
implements java.io.Serializable, Ordinable

Author:
Dario Agostinone Classe che rappresenta un messaggio
See Also:
Serialized Form

Field Summary
static int NEWDIR
           
static int NEWFILE
           
static int NEWNODE
           
static int REMOVEDIR
           
static int REMOVEFILE
           
static int REMOVENODE
           
 
Constructor Summary
Message(int oggetto, java.lang.String[] corpo, HostID Mittente, java.util.Hashtable vectorClock)
          Costruttore
 
Method Summary
 java.lang.String[] getCorpo()
          restituisce il corpo del messaggio
 HostID getMittente()
          restituisce il mittente del messaggio
 int getOggetto()
          resituisce il tipo del messaggio
 java.util.Hashtable getVectorClock()
          restituisce il time stamp
 boolean isLess(java.lang.Object in)
          resituisce true se il messaggio è minore dell'oggetto in ingresso
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEWNODE

public static final int NEWNODE
See Also:
Constant Field Values

NEWDIR

public static final int NEWDIR
See Also:
Constant Field Values

NEWFILE

public static final int NEWFILE
See Also:
Constant Field Values

REMOVEFILE

public static final int REMOVEFILE
See Also:
Constant Field Values

REMOVEDIR

public static final int REMOVEDIR
See Also:
Constant Field Values

REMOVENODE

public static final int REMOVENODE
See Also:
Constant Field Values
Constructor Detail

Message

public Message(int oggetto,
               java.lang.String[] corpo,
               HostID Mittente,
               java.util.Hashtable vectorClock)
Costruttore

Method Detail

getOggetto

public int getOggetto()
resituisce il tipo del messaggio


getCorpo

public java.lang.String[] getCorpo()
restituisce il corpo del messaggio


getMittente

public HostID getMittente()
restituisce il mittente del messaggio


getVectorClock

public java.util.Hashtable getVectorClock()
restituisce il time stamp


isLess

public boolean isLess(java.lang.Object in)
resituisce true se il messaggio è minore dell'oggetto in ingresso

Specified by:
isLess in interface Ordinable