Java Programmer's Guide and Reference


Agent class

The Agent object represents the relationship between an Agent Terminal and an ACDAddress (Automatic Call Distribution Address).

Methods

Table 23 lists the methods included in the Agent class (and provides comments about those methods, where appropriate).

Table 23 shows the standard javax.telephony.callcenter.Agent interface as well as the IBM extension for getAgentData().

Table 23. javax.telephony.callcenter.Agent methods
Method Comments

ACDAddress getACDAddress()


Address getAgentAddress()


String getAgentID()


AgentTerminal getAgentTerminal()


int getState()

See Table 24 for a list of supported states.

void setState(int)

Several states cannot be set explicitly and will cause IllegalArgumentException to be thrown. See Table 24 for a list of these states.

Object getAgentData()

Returns application specific data about the Agent to the application. This is set by the Provider as a result of the getNextAvailableAgent() method on the ACDAddress.

For more information, refer to the JavaSoft JTAPI 1.2 documentation.

States

Agent objects always have states associated with them. This state changes depending on the status of the Agent.

Table 24 lists all states (and provides comments about those states, where appropriate) for the Agent class.

Table 24. javax.telephony.callcenter.Agent states
State Comments

Agent.BUSY

Cannot explicitly set this state. IllegalArgumentException is thrown if setState() is invoked with this argument.

Agent.LOG_IN

Cannot explicitly set this state. IllegalArgumentException is thrown if setState() is invoked with this argument.

Agent.LOG_OUT

Cannot explicitly set this state. IllegalArgumentException is thrown if setState() is invoked with this argument.

Agent.NOT_READY


Agent.READY


Agent.UNKNOWN

Cannot explicitly set this state. IllegalArgumentException is thrown if setState() is invoked with this argument.

Agent.WORK_NOT_READY


Agent.WORK_READY



[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]