cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class AliveMessageCompositeImpl
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.AliveMessageCompositeImpl
- All Implemented Interfaces:
- IWorldChangeEvent, IWorldEvent, IWorldObject, ICompositeWorldObject, cz.cuni.amis.utils.listener.Event
public class AliveMessageCompositeImpl
- extends AliveMessage
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)
partStatic
protected AliveMessageStaticImpl partStatic
partLocal
protected AliveMessageLocalImpl partLocal
AliveMessageCompositeImpl
public AliveMessageCompositeImpl()
- Parameter-less contructor for the message.
AliveMessageCompositeImpl
public AliveMessageCompositeImpl(AliveMessageLocalImpl partLocal,
AliveMessageSharedImpl partShared,
AliveMessageStaticImpl partStatic)
- Composite-impl constructor. It assembles the message from its three fragments - local/shared/static.
- Parameters:
partLocal
- local-part of the messagepartShared
- shared-part of the messagepartStatic
- static-part of the message
AliveMessageCompositeImpl
public AliveMessageCompositeImpl(AliveMessageCompositeImpl original)
- Cloning constructor.
- Parameters:
original
-
getId
public UnrealId getId()
- Specified by:
getId
in interface IWorldObject
- Overrides:
getId
in class AliveMessage
setSimTime
public void setSimTime(long SimTime)
- Description copied from class:
AliveMessage
- Used by Yylex to slip correct time of the object or programmatically.
- Overrides:
setSimTime
in class AliveMessage
getStatic
public AliveMessageStatic getStatic()
getLocal
public AliveMessageLocal getLocal()
getShared
public AliveMessageShared getShared()
getTime
public double getTime()
- Description copied from class:
AliveMessage
- Game time when this message was send.
- Specified by:
getTime
in class AliveMessage
toString
public String toString()
- Overrides:
toString
in class AliveMessage
toHtmlString
public String toHtmlString()
- Overrides:
toHtmlString
in class AliveMessage
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.