|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.agentfactory.cldc.scheduler.AgentRunnable
com.agentfactory.cldc.MIDletRunnable
public class MIDletRunnable
This class provides the debugging interface functionality for MIDP environments and enables the developer to view an agent's mental state at run time. It provides functionaity to enable the developer to stop an agent, start an agent, and step a cycle of the agent's control process.
| Constructor Summary | |
|---|---|
MIDletRunnable(Agent a,
javax.microedition.midlet.MIDlet midlet,
TerImplication[] commitmentRule,
RoleLibrary rl,
javax.microedition.lcdui.List pList)
Creates an instance of MIDletRunnable. |
|
| Method Summary | |
|---|---|
void |
commandAction(javax.microedition.lcdui.Command c,
javax.microedition.lcdui.Displayable d)
This method handles input coming from the user. |
void |
display()
Displays three options to the user. |
void |
run()
If the agent is active, updates the agent's beliefs and then steps one cycle of the control algorithm. |
void |
start()
Starts the agent. |
void |
stop()
Stops the 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 |
|---|
public MIDletRunnable(Agent a,
javax.microedition.midlet.MIDlet midlet,
TerImplication[] commitmentRule,
RoleLibrary rl,
javax.microedition.lcdui.List pList)
a - the agent the MIDletRunnable displays/controls.midlet - the MIDlet for the application.commitmentRule - the agent's commitment rules.rl - the agent's role library.pList - a list of agents on the platform.| Method Detail |
|---|
public void start()
AgentRunnable
start in class AgentRunnablepublic void stop()
AgentRunnable
stop in class AgentRunnablepublic void display()
display in class AgentRunnable
public void commandAction(javax.microedition.lcdui.Command c,
javax.microedition.lcdui.Displayable d)
commandAction in interface javax.microedition.lcdui.CommandListenerCommandListener.commandAction(javax.microedition.lcdui.Command, javax.microedition.lcdui.Displayable)public void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||