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.

Variable Index

 o index
 o url

Constructor Index

 o AgentFace(AgentLauncher, String, int)

Method Index

 o clicked()
Called by the Animation whenever the user clicks in the animation.
 o dispatched()
Changes the AgentFace's state to dispatched.
 o getCurrentAnimation()
Return the Animation that represents this agent's current state.
 o returnedNoResults()
Change the AgentFace's state to returned with no results.
 o returnedResults(String)
Changes the AgentFace's state to returned with results.
 o running()
Changes the AgentFace's state to running.

Variables

 o index
  public int index
 o url
  public String url

Constructors

 o AgentFace
  public AgentFace(AgentLauncher ap,
                   String ServerName,
                   int index)

Methods

 o 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.
 o dispatched
  public void dispatched()
Changes the AgentFace's state to dispatched.
 o running
  public void running()
Changes the AgentFace's state to running.
 o returnedResults
  public void returnedResults(String u)
Changes the AgentFace's state to returned with results.
 o returnedNoResults
  public void returnedNoResults()
Change the AgentFace's state to returned with no results.
 o getCurrentAnimation
  public Animation getCurrentAnimation()
Return the Animation that represents this agent's current state.
Returns:
An Animation.