|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcz.cuni.amis.pogamut.base.communication.messages.InfoMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AliveMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AliveMessageCompositeImpl
public class AliveMessageCompositeImpl

Composite implementation of the ALIVE abstract message. It wraps Local/Shared/Static parts in single object allowing to presenting a nice facade for users.
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 |
|---|
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AliveMessage |
|---|
AliveMessage.AliveMessageUpdate |
| Field Summary | |
|---|---|
protected AliveMessageLocalImpl |
partLocal
|
protected AliveMessageStaticImpl |
partStatic
|
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AliveMessage |
|---|
AliveMessageId, PROTOTYPE, SimTime |
| Constructor Summary | |
|---|---|
AliveMessageCompositeImpl()
Parameter-less contructor for the message. |
|
AliveMessageCompositeImpl(AliveMessageCompositeImpl original)
Cloning constructor. |
|
AliveMessageCompositeImpl(AliveMessageLocalImpl partLocal,
AliveMessageSharedImpl partShared,
AliveMessageStaticImpl partStatic)
Composite-impl constructor. |
|
| Method Summary | |
|---|---|
UnrealId |
getId()
Returns an id of the object that is unique among all world objects. |
AliveMessageLocal |
getLocal()
|
AliveMessageShared |
getShared()
|
AliveMessageStatic |
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.AliveMessage |
|---|
getSimTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected AliveMessageStaticImpl partStatic
protected AliveMessageLocalImpl partLocal
| Constructor Detail |
|---|
public AliveMessageCompositeImpl()
public AliveMessageCompositeImpl(AliveMessageLocalImpl partLocal,
AliveMessageSharedImpl partShared,
AliveMessageStaticImpl partStatic)
partLocal - local-part of the messagepartShared - shared-part of the messagepartStatic - static-part of the messagepublic AliveMessageCompositeImpl(AliveMessageCompositeImpl original)
original - | Method Detail |
|---|
public UnrealId getId()
IWorldObject
getId in interface IWorldObjectgetId in class AliveMessagepublic void setSimTime(long SimTime)
AliveMessage
setSimTime in class AliveMessagepublic AliveMessageStatic getStatic()
public AliveMessageLocal getLocal()
public AliveMessageShared getShared()
public double getTime()
AliveMessage
getTime in class AliveMessagepublic java.lang.String toString()
toString in class AliveMessagepublic java.lang.String toHtmlString()
toHtmlString in class AliveMessage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||