cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class AliveMessageMessage

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AliveMessage
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AliveMessageMessage
All Implemented Interfaces:
IWorldChangeEvent, IWorldObjectUpdatedEvent, IWorldEvent, IWorldObject, ICompositeWorldObject, Event

public class AliveMessageMessage
extends AliveMessage
implements IWorldObjectUpdatedEvent

Implementation of the GameBots2004 message ALIVE contains also its Local/Shared/Static subpart class definitions..

Complete message documentation: Synchronous message. Alive message are for confirmation, that the connection is still working. They are sent periodically with usual period of one second (this can change depending on the configuration of ControlServer)


Nested Class Summary
 class AliveMessageMessage.AliveMessageLocalMessage
          Implementation of the local part of the GameBots2004 message ALIVE, used to facade ALIVEMessage.
 class AliveMessageMessage.AliveMessageSharedMessage
          Implementation of the shared part of the GameBots2004 message ALIVE, used to facade ALIVEMessage.
 class AliveMessageMessage.AliveMessageStaticMessage
          Implementation of the static part of the GameBots2004 message ALIVE, used to facade ALIVEMessage.
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AliveMessage
AliveMessage.AliveMessageUpdate
 
Field Summary
protected  ITeamId TeamId
           
protected  double Time
          Game time when this message was send.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AliveMessage
AliveMessageId, PROTOTYPE, SimTime
 
Constructor Summary
AliveMessageMessage()
          Parameter-less contructor for the message.
AliveMessageMessage(AliveMessageMessage original)
          Cloning constructor from the full message.
AliveMessageMessage(double Time)
          Creates new instance of the message AliveMessage.
 
Method Summary
 UnrealId getId()
          Returns an id of the object that is unique among all world objects.
 AliveMessageLocal getLocal()
           
 AliveMessageShared getShared()
           
 AliveMessageStatic getStatic()
           
 ITeamId getTeamId()
           
 double getTime()
          Game time when this message was send.
protected  void setTeamId(ITeamId TeamId)
          Used by Yylex to slip corretn TeamId.
 java.lang.String toHtmlString()
           
 java.lang.String toString()
           
 IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AliveMessage
getSimTime, setSimTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent
getSimTime
 

Field Detail

TeamId

protected ITeamId TeamId

Time

protected double Time
Game time when this message was send.

Constructor Detail

AliveMessageMessage

public AliveMessageMessage()
Parameter-less contructor for the message.


AliveMessageMessage

public AliveMessageMessage(double Time)
Creates new instance of the message AliveMessage. Synchronous message. Alive message are for confirmation, that the connection is still working. They are sent periodically with usual period of one second (this can change depending on the configuration of ControlServer) Corresponding GameBots message is ALIVE.

Parameters:
Time - Game time when this message was send.

AliveMessageMessage

public AliveMessageMessage(AliveMessageMessage original)
Cloning constructor from the full message.

Parameters:
original -
Method Detail

getId

public UnrealId getId()
Description copied from interface: IWorldObject
Returns an id of the object that is unique among all world objects.

Specified by:
getId in interface IWorldObjectUpdatedEvent
Specified by:
getId in interface IWorldObject
Overrides:
getId in class AliveMessage
Returns:

setTeamId

protected void setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId.


getTeamId

public ITeamId getTeamId()

getTime

public double getTime()
Description copied from class: AliveMessage
Game time when this message was send.

Specified by:
getTime in class AliveMessage

getLocal

public AliveMessageLocal getLocal()
Specified by:
getLocal in interface ICompositeWorldObject

getShared

public AliveMessageShared getShared()
Specified by:
getShared in interface ICompositeWorldObject

getStatic

public AliveMessageStatic getStatic()
Specified by:
getStatic in interface ICompositeWorldObject

update

public IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
Specified by:
update in interface IWorldObjectUpdatedEvent

toString

public java.lang.String toString()
Overrides:
toString in class AliveMessage

toHtmlString

public java.lang.String toHtmlString()
Overrides:
toHtmlString in class AliveMessage