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.
-
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.
-
LOG_IN
- When the provider determines that the AgentTerminal has
logged into an ACDAddress it reports the AgentTerminal's
state as LOG_IN.
-
LOG_OUT
- When the provider determines that the AgentTerminal has
logged out of an ACDAddress it reports the AgentTerminal's
state as LOG_OUT.
-
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.
-
READY
- When the provider determines that the AgentTerminal is
ready to service calls it reports the
AgentTerminal's state as READY.
-
UNKNOWN
- When the provider is unable to determine the state of the
AgentTerminal it reports is at UNKNOWN.
-
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.
-
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.
-
Agent(int, String, ACDAddress, Address, String)
- The constructor is used to create an Agent object prior to
invoking setAgent() on AgentTerminal.
-
getACDAddress()
- This returns the ACDAddress this Agent is logged into.
-
getAgentAddress()
- This returns the Agent's Address that is associated
with the given AgentTerminal.
-
getAgentID()
- This returns this Agent's ID.
-
getAgentTerminal()
- This returns the Agent Terminal that is associated with
this Agent object.
-
getPasswd()
- This returns this Agent's password.
-
getState()
- This returns this Agent's state in the
ACDAddress specified in the object.
-
setACDAddress(ACDAddress)
- This sets the ACDAddress this Agent intends
to log in to or is already logged into.
-
setAgentAddress(Address)
- This sets the Agent's Address that is associated
with the given AgentTerminal.
-
setAgentID(String)
- This sets this Agent's ID.
-
setPasswd(String)
- This sets this Agent's password.
-
setState(int)
- This sets this Agent's state.
UNKNOWN
public final static int UNKNOWN
- When the provider is unable to determine the state of the
AgentTerminal it reports is at UNKNOWN.
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.
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.
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.
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.
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.
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.
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.
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.
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.
setAgentID
public void setAgentID(String _agentID)
- This sets this Agent's ID.
Agent IDs are administered on the switch.
setACDAddress
public void setACDAddress(ACDAddress _acdAddress)
- This sets the ACDAddress this Agent intends
to log in to or is already logged into.
setPasswd
public void setPasswd(String _passwd)
- This sets this Agent's password.
setAgentAddress
public void setAgentAddress(Address _agentAddress)
- This sets the Agent's Address that is associated
with the given AgentTerminal.
getState
public int getState()
- This returns this Agent's state in the
ACDAddress specified in the object.
getAgentID
public String getAgentID()
- This returns this Agent's ID.
getACDAddress
public ACDAddress getACDAddress()
- This returns the ACDAddress this Agent is logged into.
getPasswd
public String getPasswd()
- This returns this Agent's password.
getAgentAddress
public Address getAgentAddress()
- This returns the Agent's Address that is associated
with the given AgentTerminal.
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