|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.props.Props
com.cometway.ak.Agent
com.cometway.ak.AgentKernel
public class AgentKernel
Reference implementation of the AgentKernelInterface.
| Field Summary |
|---|
| Fields inherited from class com.cometway.ak.Agent |
|---|
agent_id, agentController, CREATING_STATE, debugReporter, DESTROYED_STATE, DESTROYING_STATE, errorReporter, FAILED_STATE, printlnReporter, props, RUNNING_STATE, STARTING_STATE, STOPPED_STATE, STOPPING_STATE, warningReporter |
| Constructor Summary | |
|---|---|
AgentKernel()
|
|
| Method Summary | |
|---|---|
AgentControllerInterface |
createAgent(java.lang.Object agentInfo)
Creates an agent instance using the specified agent information; a String containing the classname of an AgentInterface implementation, or a Props with the classname property. |
protected AgentControllerInterface |
createAgent(Props agentProps)
Creates an agent instance using the classname property of the specified Props and automatically adopting any other properties which exist. |
protected java.lang.String |
getNextAgentID()
Increments and returns the next agent ID. |
void |
initProps()
Provides default values for the following properties if missing: next_agent_id - seed value for agent_id (default: 1001) |
void |
stop()
Shuts down the agent kernel and exits the VM by calling System.exit(0). |
| Methods inherited from class com.cometway.ak.Agent |
|---|
currentStateEquals, debug, destroy, error, error, getAgentController, getDateTimeStr, getProps, getServiceImpl, getStateMachineModel, println, register, registerService, setAgentController, setProps, start, toString, unregister, unregisterService, warning, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AgentKernel()
| Method Detail |
|---|
public AgentControllerInterface createAgent(java.lang.Object agentInfo)
createAgent in interface AgentKernelInterfaceprotected AgentControllerInterface createAgent(Props agentProps)
protected java.lang.String getNextAgentID()
public void initProps()
initProps in interface AgentInterfaceinitProps in class Agentpublic void stop()
stop in interface AgentInterfacestop in class Agent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||