|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.ak.AgentCommand
public class AgentCommand
This is a com.cometway.states.CommandInterface implementation for standard AgentInterface agents with initProps, start, stop, and destroy methods. No other command names are supported.
| Constructor Summary | |
|---|---|
AgentCommand(AgentInterface agent,
java.lang.String name)
Constructor for this class. |
|
| Method Summary | |
|---|---|
void |
execute()
Executes the command on the agent. |
java.lang.String |
getName()
Returns the name of this command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AgentCommand(AgentInterface agent,
java.lang.String name)
agent - the recipient of the method callname - of the command (method) to execute| Method Detail |
|---|
public java.lang.String getName()
getName in interface CommandInterface
public void execute()
throws CommandException
execute in interface CommandInterfaceCommandException - if there was a problem.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||