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

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AliveMessageLocal
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AliveMessageLocalImpl
All Implemented Interfaces:
IWorldObject, ILocalWorldObject, java.lang.Cloneable

public class AliveMessageLocalImpl
extends AliveMessageLocal

Implementation of the local part of the GameBots2004 message ALIVE.

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
static class AliveMessageLocalImpl.AliveMessageLocalUpdate
           
 
Field Summary
protected  double Time
          Game time when this message was send.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AliveMessageLocal
AliveMessageId, SimTime
 
Constructor Summary
AliveMessageLocalImpl()
          Parameter-less contructor for the message.
AliveMessageLocalImpl(AliveMessage original)
          Cloning constructor from the full message.
AliveMessageLocalImpl(AliveMessageLocal original)
          Cloning constructor from the message part.
AliveMessageLocalImpl(AliveMessageLocalImpl original)
          Cloning constructor from the full message.
 
Method Summary
 AliveMessageLocalImpl clone()
           
 UnrealId getId()
          Returns an id of the object that is unique among all world objects.
 AliveMessageLocalImpl getLocal()
           
 ISharedWorldObject getShared()
           
 IStaticWorldObject getStatic()
           
 double getTime()
          Game time when this message was send.
 void setSimTime(long SimTime)
          Used by Yylex to slip correct time of the object or programmatically.
 java.lang.String toHtmlString()
           
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AliveMessageLocal
getCompositeClass, getSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Time

protected double Time
Game time when this message was send.

Constructor Detail

AliveMessageLocalImpl

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


AliveMessageLocalImpl

public AliveMessageLocalImpl(AliveMessage original)
Cloning constructor from the full message.

Parameters:
original -

AliveMessageLocalImpl

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

Parameters:
original -

AliveMessageLocalImpl

public AliveMessageLocalImpl(AliveMessageLocal original)
Cloning constructor from the message part.

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 IWorldObject
Overrides:
getId in class AliveMessageLocal
Returns:

setSimTime

public void setSimTime(long SimTime)
Description copied from class: AliveMessageLocal
Used by Yylex to slip correct time of the object or programmatically.

Overrides:
setSimTime in class AliveMessageLocal

clone

public AliveMessageLocalImpl clone()
Specified by:
clone in interface ILocalWorldObject
Specified by:
clone in class AliveMessageLocal

getTime

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

Specified by:
getTime in class AliveMessageLocal

getLocal

public AliveMessageLocalImpl getLocal()
Overrides:
getLocal in class AliveMessageLocal

getShared

public ISharedWorldObject getShared()
Overrides:
getShared in class AliveMessageLocal

getStatic

public IStaticWorldObject getStatic()
Overrides:
getStatic in class AliveMessageLocal

toString

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

toHtmlString

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