|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AgentInterface
A standard interface for Agents.
| Method Summary | |
|---|---|
void |
debug(java.lang.String message)
Sends the debugging message to the agent's standard output. |
void |
destroy()
Called by agent kernel for special cleanup before an agent is destroyed. |
void |
error(java.lang.String message)
Sends the error message to the agent's error output. |
void |
error(java.lang.String message,
java.lang.Exception e)
Sends the error message and associated exception to the agent's error output. |
Props |
getProps()
Returns the Props assigned to this agent. |
void |
initProps()
Initialize agent properties before it is started. |
void |
println(java.lang.String message)
Sends the message to the agent's standard output. |
void |
setAgentController(AgentControllerInterface agentController)
Assigns an AgentController to this agent. |
void |
setProps(Props p)
Called by the agent kernel to assign a Props to this agent. |
void |
start()
Called by agent kernel to initiate activities for this agent. |
void |
stop()
Called by agent kernel to send stop requests from the agent kernel. |
java.lang.String |
toString()
Returns the string representation of this agent. |
void |
warning(java.lang.String message)
Sends the warning message to the agent's standard output. |
void |
warning(java.lang.String message,
java.lang.Exception e)
Sends the warning message and associated exception to the agent's error output. |
| Methods inherited from interface com.cometway.states.HasStateMachineModel |
|---|
getStateMachineModel |
| Method Detail |
|---|
Props getProps()
void setProps(Props p)
void setAgentController(AgentControllerInterface agentController)
void initProps()
void start()
void stop()
void destroy()
void debug(java.lang.String message)
void error(java.lang.String message)
void error(java.lang.String message,
java.lang.Exception e)
void println(java.lang.String message)
void warning(java.lang.String message)
void warning(java.lang.String message,
java.lang.Exception e)
java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||