|
||||||||||
| 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.agent.impl.AbstractEmbodiedAgent<DefConWorldView,cz.cuni.amis.pogamut.base.communication.command.impl.IJNIAct>
cz.cuni.amis.pogamut.defcon.agent.DefConAgent<CONTROLLER>
CONTROLLER - public class DefConAgent<CONTROLLER extends IDefConAgentLogicController<DefConAgent<?>,?>>
Basic defcon agent implementation.
| Field Summary | |
|---|---|
protected DefConWorldView |
worldview
|
| Fields inherited from class cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent |
|---|
events, INTROSPECTION_ROOT_NAME, log, LOG_CATEGORY_NAME |
| Constructor Summary | |
|---|---|
DefConAgent(cz.cuni.amis.pogamut.base.agent.IAgentId agentId,
cz.cuni.amis.pogamut.base.component.bus.IComponentBus eventBus,
cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger logger,
DefConWorldView worldView,
DefConAct act,
IDefConAgentLogicController logic)
Inits a DefConAgent instance |
|
| Method Summary | |
|---|---|
void |
act(DefConCommand command)
Simplifies access to IAct. |
protected boolean |
gameHasStarted()
|
protected void |
gameStarted()
|
Map<String,String> |
getArguments()
Returns a set of arguments passed to defcon. |
DefConWorldView |
getWorldView()
|
protected void |
killAgent()
|
void |
setOptions(Map<String,String> arguments)
Used by PogamutJBotSupport to assign arguments. |
protected void |
startAgent()
|
protected void |
stopAgent()
|
| Methods inherited from class cz.cuni.amis.pogamut.base.agent.impl.AbstractEmbodiedAgent |
|---|
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, resetAgent, 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.base.agent.IEmbodiedAgent |
|---|
getAct |
| 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 |
|---|
protected DefConWorldView worldview
| Constructor Detail |
|---|
@Inject
public DefConAgent(cz.cuni.amis.pogamut.base.agent.IAgentId agentId,
cz.cuni.amis.pogamut.base.component.bus.IComponentBus eventBus,
cz.cuni.amis.pogamut.base.utils.logging.IAgentLogger logger,
DefConWorldView worldView,
DefConAct act,
IDefConAgentLogicController logic)
agentId - eventBus - logger - worldView - act - logic - | Method Detail |
|---|
public Map<String,String> getArguments()
getArguments in interface IDefConAgentpublic void setOptions(Map<String,String> arguments)
setOptions in interface IDefConAgentpublic DefConWorldView getWorldView()
getWorldView in interface cz.cuni.amis.pogamut.base.agent.IObservingAgentgetWorldView in class cz.cuni.amis.pogamut.base.agent.impl.AbstractObservingAgent<DefConWorldView>protected void startAgent()
startAgent in class cz.cuni.amis.pogamut.base.agent.impl.AbstractAgentprotected void stopAgent()
stopAgent in class cz.cuni.amis.pogamut.base.agent.impl.AbstractAgentprotected void killAgent()
killAgent in class cz.cuni.amis.pogamut.base.agent.impl.AbstractAgentprotected void gameStarted()
protected boolean gameHasStarted()
public void act(DefConCommand command)
IDefConAgent
act in interface IDefConAgent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||