public class TCMessage extends Object implements cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent, cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEvent, Serializable
| Constructor and Description |
|---|
TCMessage(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId source,
TCRecipient target,
boolean excludeMyselfIfApplicable,
cz.cuni.amis.utils.token.IToken messageType,
Serializable message,
long simTime) |
| Modifier and Type | Method and Description |
|---|---|
Serializable |
getData() |
int |
getChannelId() |
Serializable |
getMessage()
Attempts to deserialize
messageData and returns them. |
cz.cuni.amis.utils.token.IToken |
getMessageType() |
long |
getSimTime() |
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getSource() |
TCRecipient |
getTarget() |
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getTargetId() |
boolean |
isExcludeMyselfIfApplicable() |
boolean |
isMessageType(cz.cuni.amis.utils.token.IToken type) |
boolean |
isMessageType(String type) |
boolean |
isResolved()
CLIENT SUPPORT for implementation of TCMessage filters, you can check whether this message has already been resolved by other filter.
|
boolean |
isTarget(TCRecipient target) |
void |
markResolved()
CLIENT SUPPORT for implementation of TCMessage filters, you can mark this message as "resolved" within your logic to let your further filters know it was handled...
|
void |
setChannelId(int channelId) |
void |
setTargetId(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId targetId) |
String |
toString() |
public TCMessage(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId source,
TCRecipient target,
boolean excludeMyselfIfApplicable,
cz.cuni.amis.utils.token.IToken messageType,
Serializable message,
long simTime)
public cz.cuni.amis.utils.token.IToken getMessageType()
public boolean isMessageType(String type)
public boolean isMessageType(cz.cuni.amis.utils.token.IToken type)
public Serializable getMessage() throws cz.cuni.amis.utils.exception.PogamutException
messageData and returns them.
Throws PogamutException if unsuccessful.cz.cuni.amis.utils.exception.PogamutExceptionpublic Serializable getData()
public TCRecipient getTarget()
public boolean isTarget(TCRecipient target)
public boolean isExcludeMyselfIfApplicable()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getSource()
public int getChannelId()
public void setChannelId(int channelId)
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getTargetId()
public void setTargetId(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId targetId)
public boolean isResolved()
public void markResolved()
public long getSimTime()
getSimTime in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEventgetSimTime in interface cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEventCopyright © 2019 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.