cz.cuni.pogamut.Client
Class RcvMsgEvent
java.lang.Object
java.util.EventObject
cz.cuni.pogamut.Client.RcvMsgEvent
- All Implemented Interfaces:
- java.io.Serializable
public class RcvMsgEvent
- extends java.util.EventObject
Event which is raised when new message arrives and is processed.
It contains new message and can be caught by anyone interested
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
message
private MessageObject message
state
private CommunicationState state
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
RcvMsgEvent
public RcvMsgEvent(java.lang.Object source,
MessageObject message,
CommunicationState state)
- Source - who sends the event (usualy AgentBody)
MessageObject - message from gamebots (complete!)
State - state of the communication when the message was received
- Parameters:
source
- message
- state
-
getMessage
public MessageObject getMessage()
getCommunicationState
public CommunicationState getCommunicationState()