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

Package class diagram package LocationUpdateStaticImpl
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.LocationUpdateStatic
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.LocationUpdateStaticImpl
All Implemented Interfaces:
IWorldObject, IStaticWorldObject

public class LocationUpdateStaticImpl
extends LocationUpdateStatic

Implementation of the static 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 LocationUpdateStaticImpl.LocationUpdateStaticUpdate
           
 
Field Summary
protected  UnrealId Id
          Unique Id of this update message instance.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.LocationUpdateStatic
SimTime
 
Constructor Summary
LocationUpdateStaticImpl()
          Parameter-less contructor for the message.
LocationUpdateStaticImpl(LocationUpdate original)
          Cloning constructor from the full message.
LocationUpdateStaticImpl(LocationUpdateStatic original)
          Cloning constructor from the message part.
LocationUpdateStaticImpl(LocationUpdateStaticImpl original)
          Cloning constructor from the full message.
LocationUpdateStaticImpl(UnrealId Id)
          Creates new instance of the message LocationUpdate.
 
Method Summary
 LocationUpdateStaticImpl clone()
           
 UnrealId getId()
          Unique Id of this update message instance.
 boolean isDifferentFrom(IStaticWorldObject other)
           
 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.LocationUpdateStatic
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

Id

protected UnrealId Id
Unique Id of this update message instance.

Constructor Detail

LocationUpdateStaticImpl

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


LocationUpdateStaticImpl

public LocationUpdateStaticImpl(UnrealId Id)
Creates new instance of the message LocationUpdate. "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. Corresponding GameBots message (static part) is UPD.

Parameters:
Id - Unique Id of this update message instance.

LocationUpdateStaticImpl

public LocationUpdateStaticImpl(LocationUpdate original)
Cloning constructor from the full message.

Parameters:
original -

LocationUpdateStaticImpl

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

Parameters:
original -

LocationUpdateStaticImpl

public LocationUpdateStaticImpl(LocationUpdateStatic original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

setSimTime

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

Overrides:
setSimTime in class LocationUpdateStatic

clone

public LocationUpdateStaticImpl clone()
Specified by:
clone in class LocationUpdateStatic

getId

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

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

isDifferentFrom

public boolean isDifferentFrom(IStaticWorldObject other)
Specified by:
isDifferentFrom in interface IStaticWorldObject
Overrides:
isDifferentFrom in class LocationUpdateStatic

toString

public String toString()
Overrides:
toString in class LocationUpdateStatic

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class LocationUpdateStatic


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