cz.cuni.pogamut.MessageObjects
Class AliveMessage

java.lang.Object
  extended by cz.cuni.pogamut.MessageObjects.MessageObject
      extended by cz.cuni.pogamut.MessageObjects.AliveMessage
All Implemented Interfaces:
Visible, java.io.Serializable, java.lang.Cloneable

public class AliveMessage
extends MessageObject
implements java.io.Serializable

Alive message are for measuring the server lag. They are sending periodically with usual period of one second (this can change depending on the configuration of ControlServer)

See Also:
Serialized Form

Field Summary
 double time
           
 
Fields inherited from class cz.cuni.pogamut.MessageObjects.MessageObject
ID, type, types, UnrealID, visible
 
Constructor Summary
AliveMessage()
           
AliveMessage(int ID, java.lang.String UnrealID)
           
 
Method Summary
 double getTime()
           
 
Methods inherited from class cz.cuni.pogamut.MessageObjects.MessageObject
clone, diff, equals, getID, getType, getUnrealID, getVisibility, hasID, isVisible, setID, setType, setUnrealID, setVisible, toString, update
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

time

public double time
Constructor Detail

AliveMessage

public AliveMessage()

AliveMessage

public AliveMessage(int ID,
                    java.lang.String UnrealID)
Method Detail

getTime

public double getTime()
Returns:
Game time when this message was send.