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

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

public class LocationUpdateLocalImpl
extends LocationUpdateLocal

Implementation of the local 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 LocationUpdateLocalImpl.LocationUpdateLocalUpdate
           
 
Field Summary
protected  UnrealId Id
          Unique Id of this update message instance.
protected  Location Loc
          An absolute location of the bot.
protected  Rotation Rot
          Which direction the bot is facing in absolute terms.
protected  Velocity Vel
          Absolute velocity of the bot as a vector of movement per one game second.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.LocationUpdateLocal
SimTime
 
Constructor Summary
LocationUpdateLocalImpl()
          Parameter-less contructor for the message.
LocationUpdateLocalImpl(LocationUpdate original)
          Cloning constructor from the full message.
LocationUpdateLocalImpl(LocationUpdateLocal original)
          Cloning constructor from the message part.
LocationUpdateLocalImpl(LocationUpdateLocalImpl original)
          Cloning constructor from the full message.
LocationUpdateLocalImpl(UnrealId Id, Location Loc, Velocity Vel, Rotation Rot)
          Creates new instance of the message LocationUpdate.
 
Method Summary
 LocationUpdateLocalImpl clone()
           
 UnrealId getId()
          Unique Id of this update message instance.
 Location getLoc()
          An absolute location of the bot.
 LocationUpdateLocalImpl getLocal()
           
 Rotation getRot()
          Which direction the bot is facing in absolute terms.
 ISharedWorldObject getShared()
           
 IStaticWorldObject getStatic()
           
 Velocity getVel()
          Absolute velocity of the bot as a vector of movement per one game second.
 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.LocationUpdateLocal
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.


Loc

protected Location Loc
An absolute location of the bot.


Vel

protected Velocity Vel
Absolute velocity of the bot as a vector of movement per one game second.


Rot

protected Rotation Rot
Which direction the bot is facing in absolute terms.

Constructor Detail

LocationUpdateLocalImpl

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


LocationUpdateLocalImpl

public LocationUpdateLocalImpl(UnrealId Id,
                               Location Loc,
                               Velocity Vel,
                               Rotation Rot)
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 (local part) is UPD.

Parameters:
Id - Unique Id of this update message instance.
Loc - An absolute location of the bot.
Vel - Absolute velocity of the bot as a vector of movement per one game second.
Rot - Which direction the bot is facing in absolute terms.

LocationUpdateLocalImpl

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

Parameters:
original -

LocationUpdateLocalImpl

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

Parameters:
original -

LocationUpdateLocalImpl

public LocationUpdateLocalImpl(LocationUpdateLocal original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

setSimTime

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

Overrides:
setSimTime in class LocationUpdateLocal

clone

public LocationUpdateLocalImpl clone()
Specified by:
clone in interface ILocalWorldObject
Specified by:
clone in class LocationUpdateLocal

getId

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

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

getLoc

public Location getLoc()
An absolute location of the bot.

Specified by:
getLoc in class LocationUpdateLocal

getVel

public Velocity getVel()
Absolute velocity of the bot as a vector of movement per one game second.

Specified by:
getVel in class LocationUpdateLocal

getRot

public Rotation getRot()
Which direction the bot is facing in absolute terms.

Specified by:
getRot in class LocationUpdateLocal

getLocal

public LocationUpdateLocalImpl getLocal()
Overrides:
getLocal in class LocationUpdateLocal

getShared

public ISharedWorldObject getShared()
Overrides:
getShared in class LocationUpdateLocal

getStatic

public IStaticWorldObject getStatic()
Overrides:
getStatic in class LocationUpdateLocal

toString

public String toString()
Overrides:
toString in class LocationUpdateLocal

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class LocationUpdateLocal


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