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

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ConfigChangeShared
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ConfigChangeSharedImpl
All Implemented Interfaces:
IWorldObject, ISharedWorldObject, java.lang.Cloneable

public class ConfigChangeSharedImpl
extends ConfigChangeShared

Implementation of the shared part of the GameBots2004 message CONFCH.

Complete message documentation: Asynchronous message. Message sent when the bot configuration changed - each agent has a lot of parameters affecting his state in the environment. See each property for the details.


Nested Class Summary
static class ConfigChangeSharedImpl.ConfigChangeSharedUpdate
           
 
Field Summary
protected  UnrealId Id
          Id of this config message.
protected  java.util.HashMap<PropertyId,ISharedProperty> propertyMap
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ConfigChangeShared
SharedPropertyTokens, SimTime
 
Constructor Summary
ConfigChangeSharedImpl(ConfigChangeSharedImpl source)
           
ConfigChangeSharedImpl(WorldObjectId objectId, java.util.Collection<ISharedProperty> properties)
           
 
Method Summary
 ConfigChangeSharedImpl clone()
           
 UnrealId getId()
          Id of this config message.
 java.util.Map<PropertyId,ISharedProperty> getProperties()
           
 ISharedProperty getProperty(PropertyId id)
           
 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.ConfigChangeShared
getCompositeClass, getSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

propertyMap

protected java.util.HashMap<PropertyId,ISharedProperty> propertyMap

Id

protected UnrealId Id
Id of this config message. This Id is generated from BotId, string "_CONFCH" is added at the end.

Constructor Detail

ConfigChangeSharedImpl

public ConfigChangeSharedImpl(ConfigChangeSharedImpl source)

ConfigChangeSharedImpl

public ConfigChangeSharedImpl(WorldObjectId objectId,
                              java.util.Collection<ISharedProperty> properties)
Method Detail

setSimTime

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

Overrides:
setSimTime in class ConfigChangeShared

clone

public ConfigChangeSharedImpl clone()
Specified by:
clone in interface ISharedWorldObject
Specified by:
clone in class ConfigChangeShared

getProperty

public ISharedProperty getProperty(PropertyId id)

getProperties

public java.util.Map<PropertyId,ISharedProperty> getProperties()

getId

public UnrealId getId()
Id of this config message. This Id is generated from BotId, string "_CONFCH" is added at the end.

Specified by:
getId in interface IWorldObject
Specified by:
getId in class ConfigChangeShared
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class ConfigChangeShared

toHtmlString

public java.lang.String toHtmlString()
Overrides:
toHtmlString in class ConfigChangeShared