net.java.slee.resource.diameter.cca.events.avp
Enum TariffChangeUsageType
java.lang.Object
java.lang.Enum<TariffChangeUsageType>
net.java.slee.resource.diameter.cca.events.avp.TariffChangeUsageType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<TariffChangeUsageType>, net.java.slee.resource.diameter.base.events.avp.Enumerated
public enum TariffChangeUsageType
- extends java.lang.Enum<TariffChangeUsageType>
- implements net.java.slee.resource.diameter.base.events.avp.Enumerated
8.27. Tariff-Change-Usage AVP
The Tariff-Change-Usage AVP (AVP Code 452) is of type Enumerated and
defines whether units are used before or after a tariff change, or
whether the units straddled a tariff change during the reporting
period. Omission of this AVP means that no tariff change has
occurred.
In addition, when present in answer messages as part of the
Multiple-Services-Credit-Control AVP, this AVP defines whether units
are allocated to be used before or after a tariff change event.
When the Tariff-Time-Change AVP is present, omission of this AVP in
answer messages means that the single quota mechanism applies.
Tariff-Change-Usage can be one of the following:
UNIT_BEFORE_TARIFF_CHANGE 0
When present in the Multiple-Services-Credit-Control AVP, this
value indicates the amount of the units allocated for use before a
tariff change occurs.
When present in the Used-Service-Unit AVP, this value indicates
the amount of resource units used before a tariff change had
occurred.
UNIT_AFTER_TARIFF_CHANGE 1
When present in the Multiple-Services-Credit-Control AVP, this
value indicates the amount of the units allocated for use after a
tariff change occurs.
When present in the Used-Service-Unit AVP, this value indicates
the amount of resource units used after tariff change had
occurred.
UNIT_INDETERMINATE 2
The used unit contains the amount of units that straddle the
tariff change (e.g., the metering process reports to the credit-
control client in blocks of n octets, and one block straddled the
tariff change). This value is to be used only in the Used-
Service-Unit AVP.
- Author:
- Bartosz Baranowski , Alexandre Mendonca
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
UNIT_BEFORE_TARIFF_CHANGE
public static final TariffChangeUsageType UNIT_BEFORE_TARIFF_CHANGE
UNIT_AFTER_TARIFF_CHANGE
public static final TariffChangeUsageType UNIT_AFTER_TARIFF_CHANGE
UNIT_INDETERMINATE
public static final TariffChangeUsageType UNIT_INDETERMINATE
values
public static TariffChangeUsageType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (TariffChangeUsageType c : TariffChangeUsageType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TariffChangeUsageType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
fromInt
public static TariffChangeUsageType fromInt(int presumableValue)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
getValue
public int getValue()
- Specified by:
getValue in interface net.java.slee.resource.diameter.base.events.avp.Enumerated
Copyright © 2012. All Rights Reserved.