Class TariffChangeUsage
- java.lang.Object
-
- org.jainslee.resources.diameter.cca.types.TariffChangeUsage
-
- All Implemented Interfaces:
Serializable
,Enumerated
public class TariffChangeUsage extends Object implements Serializable, Enumerated
Java class to represent the TariffChangeUsage enumerated type. Documentation from the relevant specification: 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.- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
_UNIT_AFTER_TARIFF_CHANGE
static int
_UNIT_BEFORE_TARIFF_CHANGE
static int
_UNIT_INDETERMINATE
static TariffChangeUsage
UNIT_AFTER_TARIFF_CHANGE
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.static TariffChangeUsage
UNIT_BEFORE_TARIFF_CHANGE
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.static TariffChangeUsage
UNIT_INDETERMINATE
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).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TariffChangeUsage
fromInt(int type)
int
getValue()
Return the value of this instance of this enumerated type.String
toString()
-
-
-
Field Detail
-
_UNIT_BEFORE_TARIFF_CHANGE
public static final int _UNIT_BEFORE_TARIFF_CHANGE
- See Also:
- Constant Field Values
-
_UNIT_AFTER_TARIFF_CHANGE
public static final int _UNIT_AFTER_TARIFF_CHANGE
- See Also:
- Constant Field Values
-
_UNIT_INDETERMINATE
public static final int _UNIT_INDETERMINATE
- See Also:
- Constant Field Values
-
UNIT_BEFORE_TARIFF_CHANGE
public static final TariffChangeUsage UNIT_BEFORE_TARIFF_CHANGE
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
public static final TariffChangeUsage UNIT_AFTER_TARIFF_CHANGE
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
public static final TariffChangeUsage UNIT_INDETERMINATE
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.
-
-
Method Detail
-
fromInt
public static TariffChangeUsage fromInt(int type)
-
getValue
public int getValue()
Description copied from interface:Enumerated
Return the value of this instance of this enumerated type.- Specified by:
getValue
in interfaceEnumerated
- Returns:
- value
-
-