viceroy.net
Class NewParentMessage

java.lang.Object
  |
  +--viceroy.net.NewFieldMessage
        |
        +--viceroy.net.NewParentMessage
All Implemented Interfaces:
Message

public final class NewParentMessage
extends NewFieldMessage

represents a message which holds an update for the parent of the receiving peer

Author:
Anat Talmy
, Oren Dobzinski

Field Summary
 
Fields inherited from class viceroy.net.NewFieldMessage
 
Constructor Summary
NewParentMessage(ViceroyPeer pred)
          generates a new Message
 
Method Summary
 MessageType getType()
          gets the type of the message
 
Methods inherited from class viceroy.net.NewFieldMessage
getField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewParentMessage

public NewParentMessage(ViceroyPeer pred)
generates a new Message

Parameters:
pred - the new parent that will reside in this message
Method Detail

getType

public MessageType getType()
gets the type of the message

Returns:
the type of the message
See Also:
MessageType