|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.InfoMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AliveMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AliveMessageMessage
public class AliveMessageMessage
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 |
---|
protected ITeamId TeamId
protected double Time
protected boolean Time_Set
Constructor Detail |
---|
public AliveMessageMessage()
public AliveMessageMessage(double Time)
Time
- Game time when this message was send.public AliveMessageMessage(AliveMessageMessage original)
original
- Method Detail |
---|
public UnrealId getId()
getId
in interface IWorldObjectUpdatedEvent
getId
in interface IWorldObject
getId
in interface ICompositeWorldObjectUpdatedEvent
getId
in class AliveMessage
protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public double getTime()
AliveMessage
getTime
in class AliveMessage
public AliveMessageLocal getLocal()
getLocal
in interface ICompositeWorldObject
public AliveMessageShared getShared()
getShared
in interface ICompositeWorldObject
public AliveMessageStatic getStatic()
getStatic
in interface ICompositeWorldObject
public IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
update
in interface IWorldObjectUpdatedEvent
public ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent
in interface ICompositeWorldObjectUpdatedEvent
public ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent
in interface ICompositeWorldObjectUpdatedEvent
public IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent
in interface ICompositeWorldObjectUpdatedEvent
public String toString()
toString
in class AliveMessage
public String toHtmlString()
toHtmlString
in class AliveMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |