|
|||||||||
| 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.AgentController
public class AgentController
An implementation of AgentControllerInterface that is created by AgentKernel to control the agents it creates.
| Constructor Summary | |
|---|---|
AgentController(AgentInterface agent)
Constructor for this class. |
|
| Method Summary | |
|---|---|
void |
destroy()
Starts the controlled Agent and puts it into the DESTROYED_STATE. |
Props |
getProps()
Returns the Props for the controlled agent. |
void |
start()
Starts the controlled Agent and puts it into the RUNNING_STATE. |
void |
stop()
Starts the controlled Agent and puts it into the STOPPED_STATE. |
java.lang.String |
toString()
Returns the controlled agent's toString output (ie: 100_ServiceManager). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AgentController(AgentInterface agent)
agent - an AgentInterface instance to be controlled| Method Detail |
|---|
public java.lang.String toString()
toString in class Propspublic Props getProps()
getProps in interface AgentControllerInterfacepublic void start()
start in interface AgentControllerInterfacepublic void stop()
stop in interface AgentControllerInterfacepublic void destroy()
destroy in interface AgentControllerInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||