public interface AccumulatedCost extends GroupedAvp
7.2.2 A Accumulated-Cost AVP The Accumulated-Cost AVP (AVP code 2052) is of type Grouped and holds the accumulated cost for the ongoing session. It has the following ABNF grammar: Accumulated-Cost ::= < AVP Header: 2052 > { Value-Digits } [ Exponent ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
int |
getExponent()
Returns the value of the Exponent AVP, of type Integer32.
|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
long |
getValueDigits()
Returns the value of the Value-Digits AVP, of type Integer64.
|
boolean |
hasExponent()
Returns true if the Exponent AVP is present in the Accumulated-Cost AVP.
|
boolean |
hasValueDigits()
Returns true if the Value-Digits AVP is present in the Accumulated-Cost AVP.
|
void |
removeExponent()
Removes the Exponent AVP from the Accumulated-Cost AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Accumulated-Cost AVP.
|
void |
removeValueDigits()
Removes the Value-Digits AVP from the Accumulated-Cost AVP.
|
void |
setExponent(int exponent)
Sets the value of the Exponent AVP, of type Integer32.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setValueDigits(long valueDigits)
Sets the value of the Value-Digits AVP, of type Integer64.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasValueDigits()
long getValueDigits()
hasValueDigits()
to check the existence of this AVP.java.lang.IllegalStateException
- if the Value-Digits AVP has not been set.void setValueDigits(long valueDigits)
void removeValueDigits()
boolean hasExponent()
int getExponent()
hasExponent()
to check the existence of this AVP.java.lang.IllegalStateException
- if the Exponent AVP has not been set.void setExponent(int exponent)
void removeExponent()
DiameterAvp[] getExtensionAvps()
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
AvpNotAllowedException
- if an AVP is encountered of a type already known to this class
(i.e. an AVP for which get/set methods already appear in this class)java.lang.NullPointerException
- if avps
is null
.void removeExtensionAvps()