sk.robotics.rlcs.agents.sim
Class ImageLoaderSimAgent

java.lang.Object
  extended by sk.robotics.rlcs.agentspace.Agent
      extended by sk.robotics.rlcs.agents.sim.ImageLoaderSimAgent
All Implemented Interfaces:
java.lang.Runnable

public class ImageLoaderSimAgent
extends Agent

Agent for drawing current calibrated image for simulated arena. Uses the simulator's Animator class.


Nested Class Summary
static class ImageLoaderSimAgent.Cfg
           
 
Nested classes/interfaces inherited from class sk.robotics.rlcs.agentspace.Agent
Agent.AgentThread, Agent.Hidden, Agent.ThreadCreator, Agent.WorkerThreadGroup
 
Field Summary
 
Fields inherited from class sk.robotics.rlcs.agentspace.Agent
logTimeFormat, space, thread, workerThreads
 
Constructor Summary
ImageLoaderSimAgent(ImageLoaderSimAgent.Cfg cfg)
           
 
Method Summary
protected  void cleanup()
          Cleanup method, called just before the agent thread finishes.
protected  void senseSelectAct(int triggeredIds)
          Sense-select-act, called upon trigger().
protected  void startup()
          Initialization method called from the agent's thread.
 
Methods inherited from class sk.robotics.rlcs.agentspace.Agent
exit, getConfig, getIdleTime, getWorkerThreadGroup, isAlive, kill, log, log, log, log, log, run, senseSelectAct, setLogLevel, setPeriodicTrigger, setPeriodicTrigger, sleep, start, toString, trigger, trigger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageLoaderSimAgent

public ImageLoaderSimAgent(ImageLoaderSimAgent.Cfg cfg)
Method Detail

startup

protected void startup()
Description copied from class: Agent
Initialization method called from the agent's thread. Can be overriden to perform special thread-specific initialization, for which constructor is not appropriate, or do anything which should be done only once the agent's thread is started.

Overrides:
startup in class Agent

cleanup

protected void cleanup()
Description copied from class: Agent
Cleanup method, called just before the agent thread finishes. Can be overriden to cleanup any allocated resources.

Overrides:
cleanup in class Agent

senseSelectAct

protected void senseSelectAct(int triggeredIds)
Description copied from class: Agent
Sense-select-act, called upon trigger(). One of the two overloads should be overriden. The overload without arguments is for convenience, can be used if derived agent doesn't need to distinguish between different types of triggers.

Overrides:
senseSelectAct in class Agent
Parameters:
triggeredIds - Or-ed combination of triggered ID's (params for trigger()).