Interface MdtConfiguration
-
- All Superinterfaces:
Cloneable
,DiameterAvp
,GroupedAvp
public interface MdtConfiguration extends GroupedAvp
Defines an interface representing the MDT-Configuration grouped AVP type. From the Diameter Gx Reference Point Protocol Details (3GPP TS 29.212 V10.1.0) specification:7.3.136 MDT-Configuration The MDT-Configuration AVP is of type Grouped. It shall contain MDT related information as specified in 3GPP TS 32.422 [23]. The AVP format shall conform to: MDT-Configuration ::= <AVP Header: 1622 10415> { Job-Type } [ Area-Scope ] [ List-Of-Measurements ] [ Reporting-Trigger ] [ Report-Interval ] [ Report-Amount ] [ Event-Threshold-RSRP ] [ Event-Threshold-RSRQ ] [ Logging-Interval ] [ Logging-Duration ] *[ AVP ]
-
-
Field Summary
-
Fields inherited from interface org.jainslee.resources.diameter.base.DiameterAvp
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AreaScope
getAreaScope()
Returns the value of the Area-Scope AVP, of type Grouped.long
getEventThresholdRsrp()
Returns the value of the Event-Threshold-RSRP AVP, of type Unsigned32.long
getEventThresholdRsrq()
Returns the value of the Event-Threshold-RSRQ AVP, of type Unsigned32.DiameterAvp[]
getExtensionAvps()
Returns the set of extension AVPs.JobType
getJobType()
Returns the value of the Job-Type AVP, of type Enumerated.long
getListOfMeasurements()
Returns the value of the List-Of-Measurements AVP, of type Unsigned32.LoggingDuration
getLoggingDuration()
Returns the value of the Logging-Duration AVP, of type Enumerated.LoggingInterval
getLoggingInterval()
Returns the value of the Logging-Interval AVP, of type Enumerated.ReportAmount
getReportAmount()
Returns the value of the Report-Amount AVP, of type Enumerated.long
getReportingTrigger()
Returns the value of the Reporting-Trigger AVP, of type Unsigned32.ReportInterval
getReportInterval()
Returns the value of the Report-Interval AVP, of type Enumerated.boolean
hasAreaScope()
Returns true if the Area-Scope AVP is present in the MDT-Configuration AVP.boolean
hasEventThresholdRsrp()
Returns true if the Event-Threshold-RSRP AVP is present in the MDT-Configuration AVP.boolean
hasEventThresholdRsrq()
Returns true if the Event-Threshold-RSRQ AVP is present in the MDT-Configuration AVP.boolean
hasJobType()
Returns true if the Job-Type AVP is present in the MDT-Configuration AVP.boolean
hasListOfMeasurements()
Returns true if the List-Of-Measurements AVP is present in the MDT-Configuration AVP.boolean
hasLoggingDuration()
Returns true if the Logging-Duration AVP is present in the MDT-Configuration AVP.boolean
hasLoggingInterval()
Returns true if the Logging-Interval AVP is present in the MDT-Configuration AVP.boolean
hasReportAmount()
Returns true if the Report-Amount AVP is present in the MDT-Configuration AVP.boolean
hasReportingTrigger()
Returns true if the Reporting-Trigger AVP is present in the MDT-Configuration AVP.boolean
hasReportInterval()
Returns true if the Report-Interval AVP is present in the MDT-Configuration AVP.void
removeAreaScope()
Removes the Area-Scope AVP from the MDT-Configuration AVP.void
removeEventThresholdRsrp()
Removes the Event-Threshold-RSRP AVP from the MDT-Configuration AVP.void
removeEventThresholdRsrq()
Removes the Event-Threshold-RSRQ AVP from the MDT-Configuration AVP.void
removeExtensionAvps()
Removes all extension AVPs from the MDT-Configuration AVP.void
removeJobType()
Removes the Job-Type AVP from the MDT-Configuration AVP.void
removeListOfMeasurements()
Removes the List-Of-Measurements AVP from the MDT-Configuration AVP.void
removeLoggingDuration()
Removes the Logging-Duration AVP from the MDT-Configuration AVP.void
removeLoggingInterval()
Removes the Logging-Interval AVP from the MDT-Configuration AVP.void
removeReportAmount()
Removes the Report-Amount AVP from the MDT-Configuration AVP.void
removeReportingTrigger()
Removes the Reporting-Trigger AVP from the MDT-Configuration AVP.void
removeReportInterval()
Removes the Report-Interval AVP from the MDT-Configuration AVP.void
setAreaScope(AreaScope areaScope)
Sets the value of the Area-Scope AVP, of type Grouped.void
setEventThresholdRsrp(long eventThresholdRsrp)
Sets the value of the Event-Threshold-RSRP AVP, of type Unsigned32.void
setEventThresholdRsrq(long eventThresholdRsrq)
Sets the value of the Event-Threshold-RSRQ AVP, of type Unsigned32.void
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.void
setJobType(JobType jobType)
Sets the value of the Job-Type AVP, of type Enumerated.void
setListOfMeasurements(long listOfMeasurements)
Sets the value of the List-Of-Measurements AVP, of type Unsigned32.void
setLoggingDuration(LoggingDuration loggingDuration)
Sets the value of the Logging-Duration AVP, of type Enumerated.void
setLoggingInterval(LoggingInterval loggingInterval)
Sets the value of the Logging-Interval AVP, of type Enumerated.void
setReportAmount(ReportAmount reportAmount)
Sets the value of the Report-Amount AVP, of type Enumerated.void
setReportingTrigger(long reportingTrigger)
Sets the value of the Reporting-Trigger AVP, of type Unsigned32.void
setReportInterval(ReportInterval reportInterval)
Sets the value of the Report-Interval AVP, of type Enumerated.-
Methods inherited from interface org.jainslee.resources.diameter.base.DiameterAvp
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
-
-
-
-
Method Detail
-
hasJobType
boolean hasJobType()
Returns true if the Job-Type AVP is present in the MDT-Configuration AVP.
-
getJobType
JobType getJobType()
Returns the value of the Job-Type AVP, of type Enumerated.- Returns:
- the value of the Job-Type AVP, or null if it has not been set.
-
setJobType
void setJobType(JobType jobType)
Sets the value of the Job-Type AVP, of type Enumerated.- Throws:
NullPointerException
- ifjobType
isnull
.
-
removeJobType
void removeJobType()
Removes the Job-Type AVP from the MDT-Configuration AVP. If the Job-Type AVP is not present, this method returns silently.
-
hasAreaScope
boolean hasAreaScope()
Returns true if the Area-Scope AVP is present in the MDT-Configuration AVP.
-
getAreaScope
AreaScope getAreaScope()
Returns the value of the Area-Scope AVP, of type Grouped.- Returns:
- the value of the Area-Scope AVP, or null if it has not been set.
-
setAreaScope
void setAreaScope(AreaScope areaScope)
Sets the value of the Area-Scope AVP, of type Grouped.- Throws:
NullPointerException
- ifareaScope
isnull
.
-
removeAreaScope
void removeAreaScope()
Removes the Area-Scope AVP from the MDT-Configuration AVP. If the Area-Scope AVP is not present, this method returns silently.
-
hasListOfMeasurements
boolean hasListOfMeasurements()
Returns true if the List-Of-Measurements AVP is present in the MDT-Configuration AVP.
-
getListOfMeasurements
long getListOfMeasurements()
Returns the value of the List-Of-Measurements AVP, of type Unsigned32. UsehasListOfMeasurements()
to check the existence of this AVP.- Returns:
- the value of the List-Of-Measurements AVP
- Throws:
IllegalStateException
- if the List-Of-Measurements AVP has not been set.
-
setListOfMeasurements
void setListOfMeasurements(long listOfMeasurements)
Sets the value of the List-Of-Measurements AVP, of type Unsigned32.
-
removeListOfMeasurements
void removeListOfMeasurements()
Removes the List-Of-Measurements AVP from the MDT-Configuration AVP. If the List-Of-Measurements AVP is not present, this method returns silently.
-
hasReportingTrigger
boolean hasReportingTrigger()
Returns true if the Reporting-Trigger AVP is present in the MDT-Configuration AVP.
-
getReportingTrigger
long getReportingTrigger()
Returns the value of the Reporting-Trigger AVP, of type Unsigned32. UsehasReportingTrigger()
to check the existence of this AVP.- Returns:
- the value of the Reporting-Trigger AVP
- Throws:
IllegalStateException
- if the Reporting-Trigger AVP has not been set.
-
setReportingTrigger
void setReportingTrigger(long reportingTrigger)
Sets the value of the Reporting-Trigger AVP, of type Unsigned32.
-
removeReportingTrigger
void removeReportingTrigger()
Removes the Reporting-Trigger AVP from the MDT-Configuration AVP. If the Reporting-Trigger AVP is not present, this method returns silently.
-
hasReportInterval
boolean hasReportInterval()
Returns true if the Report-Interval AVP is present in the MDT-Configuration AVP.
-
getReportInterval
ReportInterval getReportInterval()
Returns the value of the Report-Interval AVP, of type Enumerated.- Returns:
- the value of the Report-Interval AVP, or null if it has not been set.
-
setReportInterval
void setReportInterval(ReportInterval reportInterval)
Sets the value of the Report-Interval AVP, of type Enumerated.- Throws:
NullPointerException
- ifreportInterval
isnull
.
-
removeReportInterval
void removeReportInterval()
Removes the Report-Interval AVP from the MDT-Configuration AVP. If the Report-Interval AVP is not present, this method returns silently.
-
hasReportAmount
boolean hasReportAmount()
Returns true if the Report-Amount AVP is present in the MDT-Configuration AVP.
-
getReportAmount
ReportAmount getReportAmount()
Returns the value of the Report-Amount AVP, of type Enumerated.- Returns:
- the value of the Report-Amount AVP, or null if it has not been set.
-
setReportAmount
void setReportAmount(ReportAmount reportAmount)
Sets the value of the Report-Amount AVP, of type Enumerated.- Throws:
NullPointerException
- ifreportAmount
isnull
.
-
removeReportAmount
void removeReportAmount()
Removes the Report-Amount AVP from the MDT-Configuration AVP. If the Report-Amount AVP is not present, this method returns silently.
-
hasEventThresholdRsrp
boolean hasEventThresholdRsrp()
Returns true if the Event-Threshold-RSRP AVP is present in the MDT-Configuration AVP.
-
getEventThresholdRsrp
long getEventThresholdRsrp()
Returns the value of the Event-Threshold-RSRP AVP, of type Unsigned32. UsehasEventThresholdRsrp()
to check the existence of this AVP.- Returns:
- the value of the Event-Threshold-RSRP AVP
- Throws:
IllegalStateException
- if the Event-Threshold-RSRP AVP has not been set.
-
setEventThresholdRsrp
void setEventThresholdRsrp(long eventThresholdRsrp)
Sets the value of the Event-Threshold-RSRP AVP, of type Unsigned32.
-
removeEventThresholdRsrp
void removeEventThresholdRsrp()
Removes the Event-Threshold-RSRP AVP from the MDT-Configuration AVP. If the Event-Threshold-RSRP AVP is not present, this method returns silently.
-
hasEventThresholdRsrq
boolean hasEventThresholdRsrq()
Returns true if the Event-Threshold-RSRQ AVP is present in the MDT-Configuration AVP.
-
getEventThresholdRsrq
long getEventThresholdRsrq()
Returns the value of the Event-Threshold-RSRQ AVP, of type Unsigned32. UsehasEventThresholdRsrq()
to check the existence of this AVP.- Returns:
- the value of the Event-Threshold-RSRQ AVP
- Throws:
IllegalStateException
- if the Event-Threshold-RSRQ AVP has not been set.
-
setEventThresholdRsrq
void setEventThresholdRsrq(long eventThresholdRsrq)
Sets the value of the Event-Threshold-RSRQ AVP, of type Unsigned32.
-
removeEventThresholdRsrq
void removeEventThresholdRsrq()
Removes the Event-Threshold-RSRQ AVP from the MDT-Configuration AVP. If the Event-Threshold-RSRQ AVP is not present, this method returns silently.
-
hasLoggingInterval
boolean hasLoggingInterval()
Returns true if the Logging-Interval AVP is present in the MDT-Configuration AVP.
-
getLoggingInterval
LoggingInterval getLoggingInterval()
Returns the value of the Logging-Interval AVP, of type Enumerated.- Returns:
- the value of the Logging-Interval AVP, or null if it has not been set.
-
setLoggingInterval
void setLoggingInterval(LoggingInterval loggingInterval)
Sets the value of the Logging-Interval AVP, of type Enumerated.- Throws:
NullPointerException
- ifloggingInterval
isnull
.
-
removeLoggingInterval
void removeLoggingInterval()
Removes the Logging-Interval AVP from the MDT-Configuration AVP. If the Logging-Interval AVP is not present, this method returns silently.
-
hasLoggingDuration
boolean hasLoggingDuration()
Returns true if the Logging-Duration AVP is present in the MDT-Configuration AVP.
-
getLoggingDuration
LoggingDuration getLoggingDuration()
Returns the value of the Logging-Duration AVP, of type Enumerated.- Returns:
- the value of the Logging-Duration AVP, or null if it has not been set.
-
setLoggingDuration
void setLoggingDuration(LoggingDuration loggingDuration)
Sets the value of the Logging-Duration AVP, of type Enumerated.- Throws:
NullPointerException
- ifloggingDuration
isnull
.
-
removeLoggingDuration
void removeLoggingDuration()
Removes the Logging-Duration AVP from the MDT-Configuration AVP. If the Logging-Duration AVP is not present, this method returns silently.
-
getExtensionAvps
DiameterAvp[] getExtensionAvps()
Returns the set of extension AVPs. The returned array contains the extension AVPs in the order they appear in the MDT-Configuration AVP. A return value of null implies that no extensions AVPs have been set.
-
setExtensionAvps
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
Sets the set of extension AVPs with all the values in the given array. The AVPs will be added to MDT-Configuration AVP in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getExtensionAvps() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
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)NullPointerException
- ifavps
isnull
.
-
removeExtensionAvps
void removeExtensionAvps()
Removes all extension AVPs from the MDT-Configuration AVP. If no extension AVPs are present, this method returns silently.
-
-