|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GrantedServiceUnitAvp
<b>8.17. Granted-Service-Unit AVP</b>
Granted-Service-Unit AVP (AVP Code 431) is of type Grouped and
contains the amount of units that the Diameter credit-control client
can provide to the end user until the service must be released or the
new Credit-Control-Request must be sent. A client is not required to
implement all the unit types, and it must treat unknown or
unsupported unit types in the answer message as an incorrect CCA
answer. In this case, the client MUST terminate the credit-control
session and indicate in the Termination-Cause AVP reason
DIAMETER_BAD_ANSWER.
The Granted-Service-Unit AVP is defined as follows (per the grouped-
avp-def of RFC 3588 [DIAMBASE]):
Granted-Service-Unit ::= < AVP Header: 431 >
[ Tariff-Time-Change ]
[ CC-Time ]
[ CC-Money ]
[ CC-Total-Octets ]
[ CC-Input-Octets ]
[ CC-Output-Octets ]
[ CC-Service-Specific-Units ]
*[ AVP ]
| Field Summary |
|---|
| Fields inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp |
|---|
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT |
| Method Summary | |
|---|---|
long |
getCreditControlInputOctets()
Returns value of the CC-Input-Octets AVP, of type Unsigned64. |
CcMoneyAvp |
getCreditControlMoneyAvp()
Returns value of CC-Money avp of type grouped. |
long |
getCreditControlOutputOctets()
Returns the value of the CC-Output-Octets AVP, of type Unsigned64. |
long |
getCreditControlServiceSpecificUnits()
Returns the value of the CC-Service-Specific-Units AVP, of type Unsigned64. |
long |
getCreditControlTime()
Returns the value of the CC-Time AVP, of type Unsigned32. |
long |
getCreditControlTotalOctets()
Returns value of the CC-Total-Octets AVP, of type Unsigned64. |
java.util.Date |
getTariffTimeChange()
Return value of Tariff-Time-Change avp of type time. |
boolean |
hasCreditControlInputOctets()
Returns true if CC-Input-Octets AVP is present |
boolean |
hasCreditControlMoneyAvp()
Return true if CC-Money avp is present |
boolean |
hasCreditControlOutputOctets()
Returns true if CC-Output-Octets AVP is present |
boolean |
hasCreditControlServiceSpecificUnits()
Returns true if CC-Servce-Specific-Units AVP is present. |
boolean |
hasCreditControlTime()
Returns true if CC-Time AVP is present. |
boolean |
hasCreditControlTotalOctets()
Returns true if CC-Total-Octets avp is present |
boolean |
hasTariffTimeChange()
Return true if avp is present |
void |
setCreditControlInputOctets(long ttc)
Sets the value of the CC-Input-Octets AVP, of type Unsigned64. |
void |
setCreditControlMoneyAvp(CcMoneyAvp ccm)
Set value of CC-Money avp of type Grouped. See: CcMoneyAvp |
void |
setCreditControlOutputOctets(long ccoo)
Returns the value of the CC-Output-Octets AVP, of type Unsigned64. |
void |
setCreditControlServiceSpecificUnits(long ccssu)
Sets the value of the CC-Service-Specific-Units AVP, of type Unsigned64. |
void |
setCreditControlTime(long cct)
Sets the value of the CC-Time AVP, of type Unsigned32. |
void |
setCreditControlTotalOctets(long ccto)
Sets the value of the CC-Total-Octets AVP, of type Unsigned64. |
void |
setTariffTimeChange(java.util.Date ttc)
The Tariff-Time-Change AVP (AVP Code 451) is of type Time. |
| Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.GroupedAvp |
|---|
getExtensionAvps, setExtensionAvps |
| Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp |
|---|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorId, intValue, longValue, octetStringValue, stringValue |
| Method Detail |
|---|
void setTariffTimeChange(java.util.Date ttc)
The Tariff-Time-Change AVP (AVP Code 451) is of type Time. It is sent from the server to the client and includes the time in seconds since January 1, 1900, 00:00 UTC, when the tariff of the service will be changed. The tariff change mechanism is optional for the client and server, and it is not used for time-based services defined in section 5. If a client does not support the tariff time change mechanism, it MUST treat Tariff-Time-Change AVP in the answer message as an incorrect CCA answer. In this case, the client terminates the credit-control session and indicates in the Termination-Cause AVP reason DIAMETER_BAD_ANSWER. Omission of this AVP means that no tariff change is to be reported.
ttc - java.util.Date getTariffTimeChange()
boolean hasTariffTimeChange()
void setCreditControlMoneyAvp(CcMoneyAvp ccm)
CcMoneyAvp
ccm - CcMoneyAvp getCreditControlMoneyAvp()
CcMoneyAvp
boolean hasCreditControlMoneyAvp()
void setCreditControlTotalOctets(long ccto)
ccto - long getCreditControlTotalOctets()
boolean hasCreditControlTotalOctets()
void setCreditControlInputOctets(long ttc)
ttc - long getCreditControlInputOctets()
boolean hasCreditControlInputOctets()
void setCreditControlOutputOctets(long ccoo)
ccoo - long getCreditControlOutputOctets()
boolean hasCreditControlOutputOctets()
void setCreditControlTime(long cct)
cct - long getCreditControlTime()
boolean hasCreditControlTime()
void setCreditControlServiceSpecificUnits(long ccssu)
ccssu - long getCreditControlServiceSpecificUnits()
boolean hasCreditControlServiceSpecificUnits()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||