Class agent.Agent.Agent
All Packages Class Hierarchy This Package Previous Next Index
Class agent.Agent.Agent
java.lang.Object
|
+----java.lang.Thread
|
+----agent.Agent.Agent
- public class Agent
- extends Thread
The base class for all Agents in the agent system. An
almost purely abstract class, with the only bit of
implementation embodied in the setAgentContext method.
- See Also:
- AgentContext, AgentServer
-
ac
- The Agent's interface to the AgentServer.
-
configure(Frame)
- Called by the AgentLauncher to get the arguments needed
for this run of this agent.
-
getArguments()
- Called by the AgentLauncher to get the arguments that were
set via configure.
-
setAgentContext(AgentContext)
- Called by the AgentServer to set an AgentContext for this
agent to use when reporting status or creating/reporting
results.
-
setArguments(Vector)
- Called by the AgentServer to set the arguments this run of
this agent will use.
ac
public AgentContext ac
- The Agent's interface to the AgentServer. If the Agent is
loaded on an AgentLauncher, as it will be when it is being
configured, this will be null.
setAgentContext
public void setAgentContext(AgentContext a)
- Called by the AgentServer to set an AgentContext for this
agent to use when reporting status or creating/reporting
results.
- Parameters:
- agentContext - An object implementing the AgentContext
interface. Usually the AgentServer itself.
configure
public abstract void configure(Frame frame)
- Called by the AgentLauncher to get the arguments needed
for this run of this agent. Usually creates a Dialog to get
input from the browser user.
- Parameters:
- frame - A Frame object, usually the Frame of the browser.
getArguments
public abstract Vector getArguments()
- Called by the AgentLauncher to get the arguments that were
set via configure.
- Returns:
- A Vector of Strings that will be passed back to the
Agent when the AgentServer instantiates it on a server. The
Strings can contain any data that might be meaningful to the
Agent. There is no limit on the number of arguments.
- See Also:
- Dialog
setArguments
public abstract void setArguments(Vector args)
- Called by the AgentServer to set the arguments this run of
this agent will use. The arguments obtained from the browser
user are stuffed into a portion of the agent load message. The
AgentServer extracts the args from the message, creates a
Vector of Strings and passes that Vector to the agent via this
call.
- Parameters:
- args - A Vector of Strings that are exactly what the
AgentLauncher returned to the AgentLauncher from getArguments.
All Packages Class Hierarchy This Package Previous Next Index