cz.cuni.amis.pogamut.ut2004.agent.params
Class UT2004AgentParameters

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.agent.params.impl.AgentParameters
      extended by cz.cuni.amis.pogamut.base.agent.params.impl.RemoteAgentParameters
          extended by cz.cuni.amis.pogamut.ut2004.agent.params.UT2004AgentParameters
All Implemented Interfaces:
IAgentParameters, IRemoteAgentParameters
Direct Known Subclasses:
UT2004AnalyzerObserverParameters, UT2004AnalyzerParameters

public class UT2004AgentParameters
extends RemoteAgentParameters

Agent parameters are meant to provide run-time parameters needed by various UT2004 agents for running such as IAgentId and ISocketConnectionAddress.

If you need to populate the parameters after instantiation, use setters available in this class: setAgentId(IAgentId), setWorldAddress(IWorldConnectionAddress).

NOTE: all IAgentParameters implementors are usually used together with IAgentRunner or IMultipleAgentRunner which usually contains sensible default params, therefore there is no need to set all parameters into newly created ones as runners will supply them via IAgentParameters.assignDefaults(IAgentParameters).

See Also:
RemoteAgentParameters

Constructor Summary
UT2004AgentParameters()
          If you need to populate the parameters after instantiation, use setters available in this class: setAgentId(IAgentId), setWorldAddress(IWorldConnectionAddress).
 
Method Summary
 UT2004AgentParameters setAgentId(IAgentId agentId)
          Sets agent id into the parameters.
 UT2004AgentParameters setWorldAddress(IWorldConnectionAddress address)
          Sets connection address into the parameters.
 
Methods inherited from class cz.cuni.amis.pogamut.base.agent.params.impl.RemoteAgentParameters
assignDefaults, getWorldAddress
 
Methods inherited from class cz.cuni.amis.pogamut.base.agent.params.impl.AgentParameters
getAgentId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.params.IAgentParameters
getAgentId
 

Constructor Detail

UT2004AgentParameters

public UT2004AgentParameters()
If you need to populate the parameters after instantiation, use setters available in this class: setAgentId(IAgentId), setWorldAddress(IWorldConnectionAddress).

Method Detail

setAgentId

public UT2004AgentParameters setAgentId(IAgentId agentId)
Description copied from class: AgentParameters
Sets agent id into the parameters.

WARNING: Note that you should not mess with 'setters' in different threads as they are non-thread-safe and may interrupt horrible agent instantiations with such behavior.

Overrides:
setAgentId in class RemoteAgentParameters
Returns:
this instance

setWorldAddress

public UT2004AgentParameters setWorldAddress(IWorldConnectionAddress address)
Description copied from class: RemoteAgentParameters
Sets connection address into the parameters.

WARNING: Note that you should not mess with 'setters' in different threads as they are non-thread-safe and may interrupt horrible agent instantiations with such behavior.

Overrides:
setWorldAddress in class RemoteAgentParameters
Returns:
this instance