com.agentfactory.cldc
Class BasicRunnable

java.lang.Object
  extended by com.agentfactory.cldc.scheduler.AgentRunnable
      extended by com.agentfactory.cldc.BasicRunnable
All Implemented Interfaces:
java.lang.Runnable

public class BasicRunnable
extends AgentRunnable

This class provides basic functionality for executing an agent. It is used in environments where there is no GUI functionality (such as the Stargate WSN gateway node), therefore is does not provide a GUI debugging interface.

Author:
Conor Muldoon

Constructor Summary
BasicRunnable(Agent a)
          Creates a new instance of BasicRunnable.
 
Method Summary
 void display()
          This method is left blank in the BasicRunnable since there is no GUI functionality provided.
 void run()
          This method updates the agent's beliefs and then steps one cycle of the agent's control process.
 void start()
          This method is left blank in the BasicRunnable class since there is no GUI for starting or stopping an agent.
 void stop()
          This method is left blank in the BasicRunnable class since there is no GUI for starting or stopping an agent.
 
Methods inherited from class com.agentfactory.cldc.scheduler.AgentRunnable
addFOSBelief, writeToStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicRunnable

public BasicRunnable(Agent a)
Creates a new instance of BasicRunnable.

Parameters:
a - the agent that is to be executed.
Method Detail

start

public void start()
This method is left blank in the BasicRunnable class since there is no GUI for starting or stopping an agent.

Specified by:
start in class AgentRunnable

stop

public void stop()
This method is left blank in the BasicRunnable class since there is no GUI for starting or stopping an agent.

Specified by:
stop in class AgentRunnable

display

public void display()
This method is left blank in the BasicRunnable since there is no GUI functionality provided.

Specified by:
display in class AgentRunnable

run

public void run()
This method updates the agent's beliefs and then steps one cycle of the agent's control process.