com.ibm.diameter.charging.util
Class TalkBurstExchange

java.lang.Object
  extended by com.ibm.diameter.charging.util.TalkBurstExchange

public class TalkBurstExchange
extends java.lang.Object

TalkBurstExchange is a lightweight representation of the Grouped [Talk-Burst-Exchange] Avp.

The Talk-Burst-Exchange Avp is defined by the 3GPP in ETSI TS 132 299 V6.9.0 (2006-12) - Diameter charging applications.


Constructor Summary
TalkBurstExchange()
          Constructs an empty TalkBurstExchange object representing the [Talk-Burst-Exchange] Avp.
TalkBurstExchange(java.util.List<Avp> avps)
          Constructs a TalkBurstExchange object representing the Grouped [Talk-Burst-Exchange] Avp.
 
Method Summary
 java.lang.Integer getNumberOfParticipants()
          Gets the value corresponding to the payload of the [Number-Of-Participants] Avp.
 java.lang.Integer getPocChangeCondition()
          Gets the value corresponding to the payload of the [PoC-Change-Condition] Avp.
 java.lang.Long getPocChangeTime()
          Gets the value corresponding to the payload of the {PoC-Change-Time} Avp.
 void setNumberOfParticipants(java.lang.Integer numberOfParticipants)
          Sets the value corresponding to the payload of the [Number-Of-Participants] Avp.
 void setPocChangeCondition(java.lang.Integer pocChangeCondition)
          Sets the value corresponding to the payload of the [PoC-Change-Condition] Avp.
 void setPocChangeTime(java.lang.Long pocChangeTime)
          Sets the value corresponding to the payload of the {PoC-Change-Time} Avp.
 Avp toAvp()
          Transforms a TalkBurstExchange object into a Grouped [Talk-Burst-Exchange] Avp.
 void validate()
          Validates the members of the TalkBurstExchange object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TalkBurstExchange

public TalkBurstExchange()
Constructs an empty TalkBurstExchange object representing the [Talk-Burst-Exchange] Avp.


TalkBurstExchange

public TalkBurstExchange(java.util.List<Avp> avps)
                  throws AvpTransformationException
Constructs a TalkBurstExchange object representing the Grouped [Talk-Burst-Exchange] Avp.

The method takes a List of Avps as an input. If an Avp code inside the list corresponds to a member of TalkBurstExchange, the member will be populated with the Avp value during construction. If an Avp code is unknown, the value will be silently discarded.

Parameters:
avps - a list of Avps that can appear in the Grouped [Talk-Burst-Exchange] Avp.
Throws:
AvpTransformationException - if the Avp value is in an unexpected format.
Method Detail

getNumberOfParticipants

public java.lang.Integer getNumberOfParticipants()
Gets the value corresponding to the payload of the [Number-Of-Participants] Avp.

Returns:
the value corresponding to the payload of the [Number-Of-Participantsp] Avp.

setNumberOfParticipants

public void setNumberOfParticipants(java.lang.Integer numberOfParticipants)
Sets the value corresponding to the payload of the [Number-Of-Participants] Avp.

Parameters:
numberOfParticipants - the value corresponding to the payload of the [Number-Of-Participants] Avp.

getPocChangeCondition

public java.lang.Integer getPocChangeCondition()
Gets the value corresponding to the payload of the [PoC-Change-Condition] Avp.

Returns:
the value corresponding to the payload of the [PoC-Change-Condition] Avp.

setPocChangeCondition

public void setPocChangeCondition(java.lang.Integer pocChangeCondition)
Sets the value corresponding to the payload of the [PoC-Change-Condition] Avp.

Parameters:
pocChangeCondition - the value corresponding to the payload of the [PoC-Change-Condition] Avp.

getPocChangeTime

public java.lang.Long getPocChangeTime()
Gets the value corresponding to the payload of the {PoC-Change-Time} Avp.

Returns:
the value corresponding to the payload of the {PoC-Change-Time} Avp.

setPocChangeTime

public void setPocChangeTime(java.lang.Long pocChangeTime)
Sets the value corresponding to the payload of the {PoC-Change-Time} Avp.

Parameters:
pocChangeTime - the value corresponding to the payload of the {PoC-Change-Time} Avp.

validate

public void validate()
              throws ChargingValidationException
Validates the members of the TalkBurstExchange object. The charging Web Services call this method before transforming the object into a Grouped Avp. This ensures that improperly formed Avps are not sent to the Diameter peer.

Throws:
ChargingValidationException - if a member of TalkBurstExchange is in an unexpected format.

toAvp

public Avp toAvp()
          throws AvpTransformationException
Transforms a TalkBurstExchange object into a Grouped [Talk-Burst-Exchange] Avp.

All non-null members of TalkBurstExchange will be transformed into Avps nested inside of the [Talk-Burst-Exchange] Avp.

Returns:
the [Talk-Burst-Exchange] Avp.
Throws:
AvpTransformationException - if a member of TalkBurstExchange is in an unexpected format.


Copyright © 2006 IBM Corp. All Rights Reserved.