|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agentfactory.cldc.scheduler.AgentRunnable
public abstract class AgentRunnable
This is an abstract that is used to control the process of executing an agent in the scheduler. In MIDP, the MIDletRunnable will be used for debugging purposes, but in environments where there is no interface BasicRunnablewill be used or some other extentions of AgentRunnable that the application developer has written.
| Constructor Summary | |
|---|---|
AgentRunnable(Agent agt)
Constructs an instance of AgentRunnable. |
|
| Method Summary | |
|---|---|
void |
addFOSBelief(FOS fos)
Adds a belief to the agent. |
abstract void |
display()
Displays the mental state of the agent. |
abstract void |
start()
Starts the agent. |
abstract void |
stop()
Stops the agent. |
void |
writeToStream(java.io.DataOutputStream output)
Writes the state of the agent to a data output stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Constructor Detail |
|---|
public AgentRunnable(Agent agt)
agt - the agent that the runnable class controls.| Method Detail |
|---|
public void addFOSBelief(FOS fos)
fos - the belief to be added.public abstract void start()
public abstract void display()
public abstract void stop()
public void writeToStream(java.io.DataOutputStream output)
throws java.io.IOException
output - the stream that the state is to be written to.
java.io.IOException - if there is an I/O error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||