com.avaya.jtapi.tsapi
Class TsapiTrunk

java.lang.Object
  extended by com.avaya.jtapi.tsapi.TsapiTrunk
All Implemented Interfaces:
CallCenterTrunk

public class TsapiTrunk
extends java.lang.Object
implements CallCenterTrunk

TsapiTrunk.


Field Summary
 
Fields inherited from interface javax.telephony.callcenter.CallCenterTrunk
INCOMING_TRUNK, INVALID_TRUNK, OUTGOING_TRUNK, UNKNOWN_TRUNK, VALID_TRUNK
 
Method Summary
 boolean equals(java.lang.Object obj)
          This overrides the Object classes equals method.
 Call getCall()
          Returns the Call associated with this trunk.
 Connection getConnection()
          Returns the Connection associated with this trunk, if it is available.
 java.lang.String getGroupName()
          this method returns the name of the trunk group for this trunk, or null if no trunk name or trunk group name is known.
 java.lang.String getMemberName()
          this method returns the name of the trunk member for this trunk, or null if no trunk name or trunk member name is known.
 java.lang.String getName()
          Returns the name of the trunk.
 int getState()
          Returns the current state of the Trunk.
 int getType()
          Returns the type of trunk.
 int hashCode()
           
static java.lang.String makeTrunkName(java.lang.String groupName, java.lang.String memberName)
          returns a string representing a default arbitrary name for a trunk device, when no device name is given.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Description copied from interface: CallCenterTrunk
Returns the name of the trunk. This name is assigned by the underlying telephony hardware.

Specified by:
getName in interface CallCenterTrunk
Returns:
The name of the trunk.

getState

public int getState()
Description copied from interface: CallCenterTrunk
Returns the current state of the Trunk.

Specified by:
getState in interface CallCenterTrunk
Returns:
The current state of the trunk.

getType

public int getType()
Description copied from interface: CallCenterTrunk
Returns the type of trunk.

Specified by:
getType in interface CallCenterTrunk
Returns:
The type of trunk.

getCall

public Call getCall()
Description copied from interface: CallCenterTrunk
Returns the Call associated with this trunk. This Call reference remains valid throughout the lifetime of the trunk, despite the current state of the trunk.

Specified by:
getCall in interface CallCenterTrunk
Returns:
The Call associated with this trunk.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
This overrides the Object classes equals method.

Overrides:
equals in class java.lang.Object

getConnection

public Connection getConnection()
Returns the Connection associated with this trunk, if it is available.


getGroupName

public java.lang.String getGroupName()
this method returns the name of the trunk group for this trunk, or null if no trunk name or trunk group name is known.


getMemberName

public java.lang.String getMemberName()
this method returns the name of the trunk member for this trunk, or null if no trunk name or trunk member name is known.


makeTrunkName

public static java.lang.String makeTrunkName(java.lang.String groupName,
                                             java.lang.String memberName)
returns a string representing a default arbitrary name for a trunk device, when no device name is given. For example, NetworkReached provides trunkUsed, but the Delivered and Established events both the group and member indicated; takes into account that one or both may be null, and returns either null if groupName is null, or groupName + ":" + "0" if memberName is null, or groupName + ":" + "memberName otherwise.



Copyright © 2006 Avaya All Rights Reserved.