|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.agent.params.impl.AgentParameters cz.cuni.amis.pogamut.base.agent.params.impl.RemoteAgentParameters cz.cuni.amis.pogamut.ut2004.agent.params.UT2004AgentParameters
public class UT2004AgentParameters
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)
.
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 |
---|
public UT2004AgentParameters()
setAgentId(IAgentId)
, setWorldAddress(IWorldConnectionAddress)
.
Method Detail |
---|
public UT2004AgentParameters setAgentId(IAgentId agentId)
AgentParameters
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.
setAgentId
in class RemoteAgentParameters
public UT2004AgentParameters setWorldAddress(IWorldConnectionAddress address)
RemoteAgentParameters
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.
setWorldAddress
in class RemoteAgentParameters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |