@Deprecated public class Message extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
Serializable |
CONTENT
Deprecated.
Content of this message
|
AgentIdentifier |
FROM
Deprecated.
Sender.
|
AgentIdentifier |
TO
Deprecated.
Receiver.
|
| Constructor and Description |
|---|
Message(AgentIdentifier from,
AgentIdentifier to,
Serializable content)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Serializable> |
getContent()
Deprecated.
Replies the content.
|
boolean |
isTypeOf(Class<? extends Serializable> type)
Deprecated.
Replies if the content of this message has the specified type.
|
public final Serializable CONTENT
public final AgentIdentifier FROM
public final AgentIdentifier TO
public Message(AgentIdentifier from, AgentIdentifier to, Serializable content)
from - is the emitterto - is the receivedcontent - is the content of the message.public boolean isTypeOf(Class<? extends Serializable> type)
type - is the type to test against the message contenttrue if the message content is an instance of the given type,
otherwise falsepublic <T extends Serializable> T getContent()
T - is the type of the message content.ClassCastException - if the content could not be casted as type T.Copyright © 2003-2013 Arakhnê.org Members. All rights reserved under LGPL license terms.