cz.cuni.pogamut.Client
Class RcvMsgEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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

Field Summary
private  MessageObject message
           
private static long serialVersionUID
           
private  CommunicationState state
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RcvMsgEvent(java.lang.Object source, MessageObject message, CommunicationState state)
          Source - who sends the event (usualy AgentBody)
MessageObject - message from gamebots (complete!)
 
Method Summary
 CommunicationState getCommunicationState()
           
 MessageObject getMessage()
           
 
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
 

Field Detail

message

private MessageObject message

state

private CommunicationState state

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

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 -
Method Detail

getMessage

public MessageObject getMessage()

getCommunicationState

public CommunicationState getCommunicationState()