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

Package class diagram package 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, ICompositeWorldObjectUpdatedEvent, ICompositeWorldObject, cz.cuni.amis.utils.listener.Event

public class AliveMessageMessage
extends AliveMessage
implements IWorldObjectUpdatedEvent, ICompositeWorldObjectUpdatedEvent

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
 
Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent
IWorldObjectUpdatedEvent.DestroyWorldObject
 
Field Summary
protected  ITeamId TeamId
           
protected  double Time
          Game time when this message was send.
protected  boolean Time_Set
          Whether property 'Time' was received from GB2004.
 
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()
           
 AliveMessageLocal getLocal()
           
 ILocalWorldObjectUpdatedEvent getLocalEvent()
           
 AliveMessageShared getShared()
           
 ISharedWorldObjectUpdatedEvent getSharedEvent()
           
 AliveMessageStatic getStatic()
           
 IStaticWorldObjectUpdatedEvent getStaticEvent()
           
 ITeamId getTeamId()
           
 double getTime()
          Game time when this message was send.
protected  void setTeamId(ITeamId TeamId)
          Used by Yylex to slip corretn TeamId.
 String toHtmlString()
           
 String toString()
           
 IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AliveMessage
getSimTime, setSimTime, toJsonLiteral
 
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.


Time_Set

protected boolean Time_Set
Whether property 'Time' was received from GB2004.

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()
Specified by:
getId in interface IWorldObjectUpdatedEvent
Specified by:
getId in interface IWorldObject
Specified by:
getId in interface ICompositeWorldObjectUpdatedEvent
Overrides:
getId in class AliveMessage

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

getLocalEvent

public ILocalWorldObjectUpdatedEvent getLocalEvent()
Specified by:
getLocalEvent in interface ICompositeWorldObjectUpdatedEvent

getSharedEvent

public ISharedWorldObjectUpdatedEvent getSharedEvent()
Specified by:
getSharedEvent in interface ICompositeWorldObjectUpdatedEvent

getStaticEvent

public IStaticWorldObjectUpdatedEvent getStaticEvent()
Specified by:
getStaticEvent in interface ICompositeWorldObjectUpdatedEvent

toString

public String toString()
Overrides:
toString in class AliveMessage

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class AliveMessage


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.