|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.messaging.Message
A message, which can be sent from a sender to a receiver with some content.
The Message is actually the 'envelope' around the content of the message.
Messages are exchanged between devices. The Serializable content that is part
of the message, needs to be handled by separate, domain specific, content
handlers.
Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
Delft, the Netherlands. All rights reserved.
See for project information
www.simulation.tudelft.nl .
The source code and binary code of this software is proprietary information
of Delft University of Technology.
| Constructor Summary | |
Message(ActorInterface sender,
ActorInterface receiver,
double timestamp,
int priority,
java.io.Serializable body,
long id)
constructs a new message |
|
Message(ActorInterface sender,
ActorInterface receiver,
java.io.Serializable body)
constructs a new Message |
|
| Method Summary | |
java.io.Serializable |
getBody()
|
long |
getId()
|
int |
getPriority()
|
ActorInterface |
getReceiver()
|
ActorInterface |
getSender()
|
double |
getTimestamp()
|
void |
setBody(java.io.Serializable body)
sets the body of a message |
void |
setId(long id)
sets the id of a message |
void |
setPriority(int priority)
sets the priority of the message |
void |
setReceiver(ActorInterface receiver)
sets the receiver of the message |
void |
setTimestamp(double timestamp)
sets the timestamp |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Message(ActorInterface sender,
ActorInterface receiver,
double timestamp,
int priority,
java.io.Serializable body,
long id)
sender - the senderreceiver - the receivertimestamp - the timestamppriority - the prioritybody - the bodyid - the id
public Message(ActorInterface sender,
ActorInterface receiver,
java.io.Serializable body)
sender - the senderreceiver - the receiverbody - the body| Method Detail |
public ActorInterface getSender()
public ActorInterface getReceiver()
public double getTimestamp()
public int getPriority()
public java.io.Serializable getBody()
public long getId()
public void setId(long id)
id - The id to set.public void setBody(java.io.Serializable body)
body - The body to set.public void setPriority(int priority)
priority - The priority to set.public void setReceiver(ActorInterface receiver)
receiver - The receiver to set.public void setTimestamp(double timestamp)
timestamp - The timestamp to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||