|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.base.agent.impl.AbstractAgent
cz.cuni.amis.pogamut.base.agent.impl.AbstractObservingAgent<WORLD_VIEW>
cz.cuni.amis.pogamut.base.agent.impl.AbstractGhostAgent<WORLD_VIEW,ACT>
cz.cuni.amis.pogamut.base.server.AbstractWorldServer<WORLD_VIEW,ACT,IUDKBot>
cz.cuni.amis.pogamut.udk.server.impl.AbstractUDKServer<UDKWorldView,cz.cuni.amis.pogamut.base.communication.command.IAct>
cz.cuni.amis.pogamut.udk.server.impl.UDKServer
public class UDKServer
| Nested Class Summary | |
|---|---|
class |
UDKServer.MapChangeFuture
|
| Field Summary | |
|---|---|
protected boolean |
changingMap
|
protected int |
changingMapAttempt
|
protected Object |
changingMapMutex
|
static int |
MAP_CHANGE_CONNECT_INTERVAL_MILLIS
|
protected UDKServer.MapChangeFuture |
mapChangeFuture
|
protected cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEventListener<MapListObtained> |
mapListListener
|
static int |
MAX_CHANGING_MAP_ATTEMPTS
How many times we're going to try to connect to the GB2004 before declaring that the change-map has failed. |
protected cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEventListener<PlayerJoinsGame> |
playerJoinsListener
|
protected String |
targetMap
|
| Fields inherited from class cz.cuni.amis.pogamut.base.server.AbstractWorldServer |
|---|
worldAddress |
| Fields inherited from class cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent |
|---|
events, INTROSPECTION_ROOT_NAME, log, LOG_CATEGORY_NAME |
| Constructor Summary | |
|---|---|
UDKServer(UDKAgentParameters params,
cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger agentLogger,
cz.cuni.amis.pogamut.base.component.bus.IComponentBus bus,
cz.cuni.amis.pogamut.base.communication.connection.impl.socket.SocketConnection connection,
UDKWorldView worldView,
cz.cuni.amis.pogamut.base.communication.command.IAct act)
|
|
| Method Summary | |
|---|---|
UDKAgentParameters |
getParams()
Returns parameters that were passed into the agent during the construction. |
protected void |
reset()
Called during stop/kill/reset events. |
Future<Boolean> |
setGameMap(String map)
As of now, this just plain does not work. |
protected void |
startAgent()
|
| Methods inherited from class cz.cuni.amis.pogamut.udk.server.impl.AbstractUDKServer |
|---|
connectNativeBot, createPasswordReply, getAgents, getAvailableMaps, getGameInfo, getGameSpeedFlag, getMap, getMapName, getMutators, getNativeAgents, getPasswordReply, getPlayers, getWorldView, killAgent, readyCommandRequested, resetAgent, setAddress, setPassword, stopAgent |
| Methods inherited from class cz.cuni.amis.pogamut.base.server.AbstractWorldServer |
|---|
getWorldAddress |
| Methods inherited from class cz.cuni.amis.pogamut.base.agent.impl.AbstractGhostAgent |
|---|
getAct |
| Methods inherited from class cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent |
|---|
addDependency, addDependency, addDependency, addJMXComponents, awaitState, awaitState, componentFatalError, componentStarted, componentStarted, componentStopped, componentStopping, createAgentJMX, createIntrospection, equals, getComponentId, getEventBus, getIntrospection, getJMX, getLog, getLogger, getName, getState, hashCode, inState, kill, notInState, pause, pauseAgent, preKillAgent, preStopAgent, resetEvent, resume, resumeAgent, setState, start, startPaused, startPausedAgent, stop, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface cz.cuni.amis.pogamut.udk.server.IUDKServer |
|---|
connectNativeBot, getAvailableMaps, getGameSpeedFlag, getMap, getMapName, getMutators, getNativeAgents, getPlayers, setAddress |
| Methods inherited from interface cz.cuni.amis.pogamut.base.server.IWorldServer |
|---|
getWorldAddress |
| Methods inherited from interface cz.cuni.amis.pogamut.base.server.IWorldAgentsObserver |
|---|
getAgents |
| Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IGhostAgent |
|---|
getAct |
| Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IObservingAgent |
|---|
getWorldView |
| Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IAgent |
|---|
getComponentId, getIntrospection, getLogger, getName, getState, kill, pause, resume, start, startPaused, stop |
| Methods inherited from interface cz.cuni.amis.pogamut.base.component.IComponentAware |
|---|
getEventBus |
| Field Detail |
|---|
public static final int MAX_CHANGING_MAP_ATTEMPTS
public static final int MAP_CHANGE_CONNECT_INTERVAL_MILLIS
protected cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEventListener<PlayerJoinsGame> playerJoinsListener
protected cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEventListener<MapListObtained> mapListListener
protected Object changingMapMutex
protected boolean changingMap
protected int changingMapAttempt
protected String targetMap
protected UDKServer.MapChangeFuture mapChangeFuture
| Constructor Detail |
|---|
@Inject
public UDKServer(UDKAgentParameters params,
cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger agentLogger,
cz.cuni.amis.pogamut.base.component.bus.IComponentBus bus,
cz.cuni.amis.pogamut.base.communication.connection.impl.socket.SocketConnection connection,
UDKWorldView worldView,
cz.cuni.amis.pogamut.base.communication.command.IAct act)
| Method Detail |
|---|
public UDKAgentParameters getParams()
This is a great place to parametrize your agent. Note that you may pass arbitrary subclass of UDKAgentParameters
to the constructor/factory/runner and pick them up here.
protected void startAgent()
startAgent in class AbstractUDKServer<UDKWorldView,cz.cuni.amis.pogamut.base.communication.command.IAct>protected void reset()
AbstractUDKServer
reset in class AbstractUDKServer<UDKWorldView,cz.cuni.amis.pogamut.base.communication.command.IAct>
public Future<Boolean> setGameMap(String map)
throws MapChangeException
UCCWrapper#changeMap(java.lang.String, long) which works.
setGameMap in interface IUDKServersetGameMap in interface cz.cuni.amis.pogamut.unreal.server.IUnrealServer<IUDKBot>map -
MapChangeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||