Class AgentFace
Class AgentFace
java.lang.Object
|
+----AgentFace
- class AgentFace
- extends Object
A class that encapsulates the face that a dispatched agent
presents to the user. Contains a series of animations that
each represent a different possible state that the Agent can be
in. At any time, only one of these animations will be running.
Clicking on the animation should take the user to the results
document for this agent. AgentFaces are uniquely identified by
the server name supplied to the constructor.
-
index
-
-
url
-
-
AgentFace(AgentLauncher, String, int)
-
-
clicked()
- Called by the Animation whenever the user clicks in the
animation.
-
dispatched()
- Changes the AgentFace's state to dispatched.
-
getCurrentAnimation()
- Return the Animation that represents this agent's current
state.
-
returnedNoResults()
- Change the AgentFace's state to returned with no results.
-
returnedResults(String)
- Changes the AgentFace's state to returned with results.
-
running()
- Changes the AgentFace's state to running.
index
public int index
url
public String url
AgentFace
public AgentFace(AgentLauncher ap,
String ServerName,
int index)
clicked
public boolean clicked()
- Called by the Animation whenever the user clicks in the
animation. If the agent has finished work and has something to
report, this takes us over to that document, else it displays a
message box explaining what state the agent is in.
dispatched
public void dispatched()
- Changes the AgentFace's state to dispatched.
running
public void running()
- Changes the AgentFace's state to running.
returnedResults
public void returnedResults(String u)
- Changes the AgentFace's state to returned with results.
returnedNoResults
public void returnedNoResults()
- Change the AgentFace's state to returned with no results.
getCurrentAnimation
public Animation getCurrentAnimation()
- Return the Animation that represents this agent's current
state.
- Returns:
- An Animation.