com.avaya.jtapi.tsapi
Interface LucentAgent

All Superinterfaces:
Agent, ITsapiAgent
All Known Subinterfaces:
LucentV6Agent, LucentV7Agent

public interface LucentAgent
extends ITsapiAgent

The LucentAgent interface extends the ITsapiAgent interface.


Field Summary
static int MODE_AUTO_IN
          In this work mode the agent is put into the Agent.READY state immediately after disconnecting from a previous call and can be delivered a new call .
static int MODE_MANUAL_IN
          In this work mode the agent is put into the Agent.WORK_NOT_READY immediately after disconnecting from a previous call and cannot be delivered a new call .
static int MODE_NONE
          This implies the agent's work mode is not being set.
 
Fields inherited from interface javax.telephony.callcenter.Agent
BUSY, LOG_IN, LOG_OUT, NOT_READY, READY, UNKNOWN, WORK_NOT_READY, WORK_READY
 
Method Summary
 LucentAgentStateInfoEx getStateInfo()
          This returns this Agent's state and workMode.
 void setState(int state, int workMode)
          This method overrides Agent.setState() to add the Avaya-specific parameter workMode.
 
Methods inherited from interface javax.telephony.callcenter.Agent
getACDAddress, getAgentAddress, getAgentID, getAgentTerminal, getState, setState
 

Field Detail

MODE_NONE

public static final int MODE_NONE
This implies the agent's work mode is not being set.

See Also:
Constant Field Values

MODE_AUTO_IN

public static final int MODE_AUTO_IN
In this work mode the agent is put into the Agent.READY state immediately after disconnecting from a previous call and can be delivered a new call .

See Also:
Constant Field Values

MODE_MANUAL_IN

public static final int MODE_MANUAL_IN
In this work mode the agent is put into the Agent.WORK_NOT_READY immediately after disconnecting from a previous call and cannot be delivered a new call .

See Also:
Constant Field Values
Method Detail

setState

public void setState(int state,
                     int workMode)
              throws TsapiInvalidArgumentException,
                     TsapiInvalidStateException
This method overrides Agent.setState() to add the Avaya-specific parameter workMode. It changes the state and workMode of a previously added Agent.

The post and pre conditions are as follows:

The pre-condition predicates for this method are:
1. this.getTerminal.getProvider().getState() == IN_SERVICE
2. this.getStateInfo (appropriate state and workMode)

The post-condition predicates for this method are:
1. this.getTerminal.getProvider().getState() == IN_SERVICE
2. this.getStateInfo() == state and workMode ( specified as a parameter )

Parameters:
state - specifies the state this Agent should be set to. Valid states are READY, NOT_READY, WORK_READY and WORK_NOT_READY.
workMode - specifies the state this Agent should be set to. Valid workModes are MODE_AUTO_IN and MODE_MANUAL_IN.
Throws:
TsapiInvalidArgumentException - At least one of the arguments passed in is not valid.
TsapiInvalidStateException - Implementation determined Agent was in an invalid state for this method.

getStateInfo

public LucentAgentStateInfoEx getStateInfo()
This returns this Agent's state and workMode.

Valid values of state returned are UNKNOWN, BUSY, READY, NOT_READY, WORK_READY, WORK_NOT_READY, LOG_IN and LOG_OUT. Valid values of workModes are MODE_AUTO_IN and MODE_MANUAL_IN.



Copyright © 2005 Avaya All Rights Reserved.