nl.tudelft.goal.unreal.messages
Class Parameters

Package class diagram package Parameters
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
              extended by cz.cuni.amis.pogamut.ut2004.bot.params.UT2004BotParameters
                  extended by nl.tudelft.goal.unreal.messages.Parameters
All Implemented Interfaces:
cz.cuni.amis.pogamut.base.agent.params.IAgentParameters, cz.cuni.amis.pogamut.base.agent.params.IRemoteAgentParameters, cz.cuni.amis.pogamut.base.component.IComponent
Direct Known Subclasses:
BotParameters, EnvironmentParameters

public abstract class Parameters
extends UT2004BotParameters
implements cz.cuni.amis.pogamut.base.component.IComponent

Base class for the EnvironmentParameters and BotParameters. These parameters are instantiated using the init values provided by EIS.

Author:
mpkorstanje

Field Summary
static int BOT_SERVER_PORT
           
static int CONTROL_SERVER_PORT
           
static String DEFAULT_NAME
           
static String LOCAL_HOST
           
protected  Logger log
           
 
Constructor Summary
Parameters(cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger log)
           
Parameters(Map<String,eis.iilang.Parameter> parameters, cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger log)
           
 
Method Summary
 void assignDefaults(cz.cuni.amis.pogamut.base.agent.params.IAgentParameters defaults)
           
 Parameters setAgentId(cz.cuni.amis.pogamut.base.agent.IAgentId agentId)
           
 Parameters setAgentId(String name)
           
protected abstract  void setKey(Key key, eis.iilang.Parameter value)
           
 Parameters setWorldAddress(cz.cuni.amis.pogamut.base.communication.connection.IWorldConnectionAddress address)
           
 Parameters setWorldAddress(String host, Integer port)
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.bot.params.UT2004BotParameters
getInitialLocation, getInitialRotation, getTeam, setInitialLocation, setInitialRotation, setTeam
 
Methods inherited from class cz.cuni.amis.pogamut.base.agent.params.impl.RemoteAgentParameters
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.component.IComponent
getComponentId
 
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.params.IAgentParameters
getAgentId
 

Field Detail

BOT_SERVER_PORT

public static final int BOT_SERVER_PORT
See Also:
Constant Field Values

CONTROL_SERVER_PORT

public static final int CONTROL_SERVER_PORT
See Also:
Constant Field Values

LOCAL_HOST

public static final String LOCAL_HOST
See Also:
Constant Field Values

DEFAULT_NAME

public static final String DEFAULT_NAME
See Also:
Constant Field Values

log

protected final Logger log
Constructor Detail

Parameters

public Parameters(cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger log)

Parameters

public Parameters(Map<String,eis.iilang.Parameter> parameters,
                  cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger log)
           throws UnrealEnvironmentException
Throws:
UnrealEnvironmentException
Method Detail

assignDefaults

public void assignDefaults(cz.cuni.amis.pogamut.base.agent.params.IAgentParameters defaults)
Specified by:
assignDefaults in interface cz.cuni.amis.pogamut.base.agent.params.IAgentParameters
Overrides:
assignDefaults in class UT2004BotParameters

setKey

protected abstract void setKey(Key key,
                               eis.iilang.Parameter value)
                        throws nl.tudelft.goal.EIS2Java.exception.TranslationException
Throws:
nl.tudelft.goal.EIS2Java.exception.TranslationException

setAgentId

public Parameters setAgentId(cz.cuni.amis.pogamut.base.agent.IAgentId agentId)
Overrides:
setAgentId in class UT2004BotParameters

setAgentId

public Parameters setAgentId(String name)

setWorldAddress

public Parameters setWorldAddress(cz.cuni.amis.pogamut.base.communication.connection.IWorldConnectionAddress address)
Overrides:
setWorldAddress in class UT2004BotParameters

setWorldAddress

public Parameters setWorldAddress(String host,
                                  Integer port)


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