Class java.telephony.callcenter.Agent
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.telephony.callcenter.Agent

java.lang.Object
   |
   +----java.telephony.callcenter.Agent

public class Agent
extends Object
The Agent object represents an AgentTerminals relationship to an ACDAddress. The Agent object represents a person acting as an agent in the simplest case where the person is logged into only one ACD Address. If the person were logged into several ACD Addresses these scenarios would be represented as several Agent objects. This relationship is created by constructing an Agent object with the necessary information (e.g. desired agent state, ACD Address that the Agent will be associated with, Agent Address to be associated with this Agent at the Terminal, etc.) and used it with the setAgent() method of the AgentTerminal. The relationship can be changed by updating the appropriate attributes of the Agent object and using it with the setAgent() method again.

Variable Index

 o BUSY
When the provider determines that the AgentTerminal is busy with a call and is not available to handle other ACD calls, it reports the AgentTerminal's state as BUSY.
 o LOG_IN
When the provider determines that the AgentTerminal has logged into an ACDAddress it reports the AgentTerminal's state as LOG_IN.
 o LOG_OUT
When the provider determines that the AgentTerminal has logged out of an ACDAddress it reports the AgentTerminal's state as LOG_OUT.
 o NOT_READY
When the provider determines that the AgentTerminal is busy with tasks other than servicing calls it reports the AgentTerminal's state as NOT_READY.
 o READY
When the provider determines that the AgentTerminal is ready to service calls it reports the AgentTerminal's state as READY.
 o UNKNOWN
When the provider is unable to determine the state of the AgentTerminal it reports is at UNKNOWN.
 o WORK_NOT_READY
When the provider determines that the AgentTerminal has been disconnected from a call and is busy handling tasks associated with a call and is not available to service calls it reports the AgentTerminal's state as WORK_NOT_READY.
 o WORK_READY
When the provider determines that the AgentTerminal has been disconnected from a call and is busy handling tasks associated with a call and is available to service calls it reports the AgentTerminal's state as WORK_READY.

Constructor Index

 o Agent(int, String, ACDAddress, Address, String)
The constructor is used to create an Agent object prior to invoking setAgent() on AgentTerminal.

Method Index

 o getACDAddress()
This returns the ACDAddress this Agent is logged into.
 o getAgentAddress()
This returns the Agent's Address that is associated with the given AgentTerminal.
 o getAgentID()
This returns this Agent's ID.
 o getAgentTerminal()
This returns the Agent Terminal that is associated with this Agent object.
 o getPasswd()
This returns this Agent's password.
 o getState()
This returns this Agent's state in the ACDAddress specified in the object.
 o setACDAddress(ACDAddress)
This sets the ACDAddress this Agent intends to log in to or is already logged into.
 o setAgentAddress(Address)
This sets the Agent's Address that is associated with the given AgentTerminal.
 o setAgentID(String)
This sets this Agent's ID.
 o setPasswd(String)
This sets this Agent's password.
 o setState(int)
This sets this Agent's state.

Variables

 o UNKNOWN
  public final static int UNKNOWN
When the provider is unable to determine the state of the AgentTerminal it reports is at UNKNOWN.
 o LOG_IN
  public final static int LOG_IN
When the provider determines that the AgentTerminal has logged into an ACDAddress it reports the AgentTerminal's state as LOG_IN.
 o LOG_OUT
  public final static int LOG_OUT
When the provider determines that the AgentTerminal has logged out of an ACDAddress it reports the AgentTerminal's state as LOG_OUT.
 o NOT_READY
  public final static int NOT_READY
When the provider determines that the AgentTerminal is busy with tasks other than servicing calls it reports the AgentTerminal's state as NOT_READY.
 o READY
  public final static int READY
When the provider determines that the AgentTerminal is ready to service calls it reports the AgentTerminal's state as READY.
 o WORK_NOT_READY
  public final static int WORK_NOT_READY
When the provider determines that the AgentTerminal has been disconnected from a call and is busy handling tasks associated with a call and is not available to service calls it reports the AgentTerminal's state as WORK_NOT_READY.
 o WORK_READY
  public final static int WORK_READY
When the provider determines that the AgentTerminal has been disconnected from a call and is busy handling tasks associated with a call and is available to service calls it reports the AgentTerminal's state as WORK_READY.
 o BUSY
  public final static int BUSY
When the provider determines that the AgentTerminal is busy with a call and is not available to handle other ACD calls, it reports the AgentTerminal's state as BUSY.

Constructors

 o Agent
  public Agent(int _state,
               String _agentID,
               ACDAddress _acdAddress,
               Address _agentAddress,
               String _passwd)
The constructor is used to create an Agent object prior to invoking setAgent() on AgentTerminal.

Methods

 o setState
  public void setState(int _state)
This sets this Agent's state.

Valid states are UNKNOWN, LOG_IN, LOG_OUT, NOT_READY, READY, WORK_NOT_READY, WORK_READY.

 o setAgentID
  public void setAgentID(String _agentID)
This sets this Agent's ID.

Agent IDs are administered on the switch.

 o setACDAddress
  public void setACDAddress(ACDAddress _acdAddress)
This sets the ACDAddress this Agent intends to log in to or is already logged into.
 o setPasswd
  public void setPasswd(String _passwd)
This sets this Agent's password.
 o setAgentAddress
  public void setAgentAddress(Address _agentAddress)
This sets the Agent's Address that is associated with the given AgentTerminal.
 o getState
  public int getState()
This returns this Agent's state in the ACDAddress specified in the object.
 o getAgentID
  public String getAgentID()
This returns this Agent's ID.
 o getACDAddress
  public ACDAddress getACDAddress()
This returns the ACDAddress this Agent is logged into.
 o getPasswd
  public String getPasswd()
This returns this Agent's password.
 o getAgentAddress
  public Address getAgentAddress()
This returns the Agent's Address that is associated with the given AgentTerminal.
 o getAgentTerminal
  public AgentTerminal getAgentTerminal()
This returns the Agent Terminal that is associated with this Agent object. If the agent state is LOG_OUT, this method will return a null for the AgentTerminal object.

All Packages  Class Hierarchy  This Package  Previous  Next  Index