|
|||||||||
| 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.props.PropsListIteratorAgent
public class PropsListIteratorAgent
This agent can be extended to iterate over a PropsList passing each Props value to the handleRequest method when the agent is started, or it's iterate method is called.
| 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 | |
|---|---|
PropsListIteratorAgent()
|
|
| Method Summary | |
|---|---|
void |
handleRequest(Props p)
Override this method to perform custom operations on each Props in the PropsList. |
void |
initProps()
Override this method to initialize this agent's properties before it is started. |
void |
iterate(java.lang.String database_name)
Iterates over the specified PropsList calling handleRequest for each Props in the PropsList. |
void |
start()
Iterates over the PropsList specified by databse_name. |
| Methods inherited from class com.cometway.ak.Agent |
|---|
currentStateEquals, debug, destroy, error, error, getAgentController, getDateTimeStr, getProps, getServiceImpl, getStateMachineModel, println, register, registerService, setAgentController, setProps, stop, 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 PropsListIteratorAgent()
| Method Detail |
|---|
public void initProps()
Agent
initProps in interface AgentInterfaceinitProps in class Agentpublic void start()
start in interface AgentInterfacestart in class Agentpublic void iterate(java.lang.String database_name)
public void handleRequest(Props p)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||