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

Package class diagram package LocationUpdateSharedImpl
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.LocationUpdateShared
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.LocationUpdateSharedImpl
All Implemented Interfaces:
IWorldObject, ISharedWorldObject, Cloneable

public class LocationUpdateSharedImpl
extends LocationUpdateShared

Implementation of the shared part of the GameBots2004 message UPD.

Complete message documentation: "Synchronous" message. Arrives outside sync. batch. The frequency of this message is configured through locUpdateMultiplier variable in GameBots2004.ini file. It gets exported N times faster than regular sync. batch where N equals locUpdateMultiplier. Holds information about Location, Velocity and Rotation of the bot and should help us to create more robust navigation.


Nested Class Summary
static class LocationUpdateSharedImpl.LocationUpdateSharedUpdate
           
 
Field Summary
protected  UnrealId Id
          Unique Id of this update message instance.
protected  HashMap<PropertyId,ISharedProperty> propertyMap
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.LocationUpdateShared
SharedPropertyTokens, SimTime
 
Constructor Summary
LocationUpdateSharedImpl(LocationUpdateSharedImpl source)
           
LocationUpdateSharedImpl(WorldObjectId objectId, Collection<ISharedProperty> properties)
           
 
Method Summary
 LocationUpdateSharedImpl clone()
           
 UnrealId getId()
          Unique Id of this update message instance.
 Map<PropertyId,ISharedProperty> getProperties()
           
 ISharedProperty getProperty(PropertyId id)
           
 void setSimTime(long SimTime)
          Used by Yylex to slip correct time of the object or programmatically.
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.LocationUpdateShared
getCompositeClass, getSimTime
 
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
toJsonLiteral
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

propertyMap

protected HashMap<PropertyId,ISharedProperty> propertyMap

Id

protected UnrealId Id
Unique Id of this update message instance.

Constructor Detail

LocationUpdateSharedImpl

public LocationUpdateSharedImpl(LocationUpdateSharedImpl source)

LocationUpdateSharedImpl

public LocationUpdateSharedImpl(WorldObjectId objectId,
                                Collection<ISharedProperty> properties)
Method Detail

setSimTime

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

Overrides:
setSimTime in class LocationUpdateShared

clone

public LocationUpdateSharedImpl clone()
Specified by:
clone in interface ISharedWorldObject
Specified by:
clone in class LocationUpdateShared

getProperty

public ISharedProperty getProperty(PropertyId id)

getProperties

public Map<PropertyId,ISharedProperty> getProperties()

getId

public UnrealId getId()
Unique Id of this update message instance.

Specified by:
getId in interface IWorldObject
Specified by:
getId in class LocationUpdateShared

toString

public String toString()
Overrides:
toString in class LocationUpdateShared

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class LocationUpdateShared


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