p2p.simulator.message
Class MessageBody

java.lang.Object
  extended by p2p.simulator.message.MessageBody
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
LookupResponse

public abstract class MessageBody
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

This interface should be implemented by the classes that consist the message's data.

See Also:
Serialized Form

Constructor Summary
MessageBody()
           
 
Method Summary
 java.lang.Object clone()
           
abstract  int getType()
          Returns the message's type.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageBody

public MessageBody()
Method Detail

getType

public abstract int getType()
Returns the message's type.

Returns:
The type of the message

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException