cz.cuni.amis.pogamut.base.agent.impl
Class AbstractGhostAgent<WORLD_VIEW extends IWorldView,ACT extends IAct>

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent
      extended by cz.cuni.amis.pogamut.base.agent.impl.AbstractObservingAgent<WORLD_VIEW>
          extended by cz.cuni.amis.pogamut.base.agent.impl.AbstractGhostAgent<WORLD_VIEW,ACT>
All Implemented Interfaces:
IAgent, IGhostAgent, IObservingAgent, IComponent, IComponentAware, IControllable
Direct Known Subclasses:
AbstractEmbodiedAgent, AbstractUT2004Observer, AbstractWorldServer

public abstract class AbstractGhostAgent<WORLD_VIEW extends IWorldView,ACT extends IAct>
extends AbstractObservingAgent<WORLD_VIEW>
implements IGhostAgent

Next step to embodied agents are those without the physical body but with the ability to act inside the environment.

Example can be a world controller that is connected to the world gets all world events (knows everything) and can alter the environment (sounds like a god, right? :-).


Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.base.agent.impl.AbstractAgent
events, INTROSPECTION_ROOT_NAME, log
 
Constructor Summary
AbstractGhostAgent(IAgentId agentId, IComponentBus bus, IAgentLogger logger, WORLD_VIEW worldView, ACT act)
           
 
Method Summary
 ACT getAct()
          Returns an object through which we may communicate with the world.
 
Methods inherited from class cz.cuni.amis.pogamut.base.agent.impl.AbstractObservingAgent
getWorldView
 
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, killAgent, notInState, pause, pauseAgent, preKillAgent, preStopAgent, resetAgent, resetEvent, resume, resumeAgent, setState, start, startAgent, startPaused, startPausedAgent, stop, stopAgent, 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.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
 

Constructor Detail

AbstractGhostAgent

@Inject
public AbstractGhostAgent(IAgentId agentId,
                                 IComponentBus bus,
                                 IAgentLogger logger,
                                 WORLD_VIEW worldView,
                                 ACT act)
Method Detail

getAct

public ACT getAct()
Description copied from interface: IGhostAgent
Returns an object through which we may communicate with the world. Represents the agent effectors providing a low-level act() method. You have to instantiate CommandObject for yourself.

Specified by:
getAct in interface IGhostAgent
Returns: