Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## it.unitn.ds.peersim.messages.interfaces
Interface Message

All Known Implementing Classes:
  BEBMessage, ConsensusMessage, GenericMessage

    public interface Message

Distributed Systems Course Project

Year: 2009/2010

University of Trento

Message -. Interface used to implement the messages.

Version:
  1.0
Author:
  Avancini Mattia, Giampaolo Farina
See Also:
  `http://peersim.sourceforge.net/`

Method Summary
`long` | `getMessageID()` Gets the message id.
`java.lang.Object` | `getPayload()` Gets the payload.
`int` | `getProtocolID()` Gets the protocol id.
`peersim.core.Node` | `getReceiver()` Gets the receiver.
`peersim.core.Node` | `getSender()` Gets the sender.
`void` | `setReceiver(peersim.core.Node receiver)` Sets the receiver.
`java.lang.String` | `toString()` To string.

Method Detail

### getMessageID

    long getMessageID()

  Gets the message id.

  Returns:
    the messageID

### getPayload

    java.lang.Object getPayload()

  Gets the payload.

  Returns:
    the payload

### getSender

    peersim.core.Node getSender()

  Gets the sender.

  Returns:
    the sender

### getReceiver

    peersim.core.Node getReceiver()

  Gets the receiver.

  Returns:
    the receiver

### setReceiver

    void setReceiver(peersim.core.Node receiver)

  Sets the receiver.

  Parameters:
    `receiver` - the new receiver

### getProtocolID

    int getProtocolID()

  Gets the protocol id.

  Returns:
    the transport protocol ID

### toString

    java.lang.String toString()

  To string.

  Overrides:
    `toString` in class `java.lang.Object`
  Returns:
    the string

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD