planet.test.trivialp2ptest
Class TrivialMessage

java.lang.Object
  extended byplanet.test.trivialp2ptest.TrivialMessage
All Implemented Interfaces:
Message, java.io.Serializable

public class TrivialMessage
extends java.lang.Object
implements Message

Simple Message to contain an Id to deliver a remote application.

Version:
1.0
Author:
Carles Pairot , Jordi Pujol
See Also:
Serialized Form

Constructor Summary
TrivialMessage(Id data)
          Builds a new message with the specified data
 
Method Summary
 Id getData()
          Gets the content of the message.
 java.lang.String toString()
          Gets a string representation of this application message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrivialMessage

public TrivialMessage(Id data)
Builds a new message with the specified data

Parameters:
data - Data to be set to new message.
Method Detail

getData

public Id getData()
Gets the content of the message.

Returns:
The internal Id.

toString

public java.lang.String toString()
Gets a string representation of this application message.

Returns:
A string representation of this application message.
See Also:
Object.toString()