PageRenderTime 32ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/NetworkPkg/NetworkJitPrpt.java

http://mobicents.googlecode.com/
Java | 96 lines | 32 code | 12 blank | 52 comment | 0 complexity | b0e77bca3bf692f036b084474c989147 MD5 | raw file
Possible License(s): LGPL-3.0, GPL-3.0, LGPL-2.1, GPL-2.0, CC-BY-SA-3.0, CC0-1.0, Apache-2.0, BSD-3-Clause
  1. package javax.megaco.pkg.NetworkPkg;
  2. import javax.megaco.message.DescriptorType;
  3. import javax.megaco.pkg.MegacoPkg;
  4. import javax.megaco.pkg.ParamValueType;
  5. import javax.megaco.pkg.PkgPrptyItem;
  6. /**
  7. * The MEGACO Maximum Jitter Buffer property class extends the PkgPrptyItem
  8. * class. This is a final class. This class defines Maximum Jitter Buffer
  9. * property of Network package. The methods shall define that this property item
  10. * belongs to the Network package.
  11. */
  12. public final class NetworkJitPrpt extends PkgPrptyItem {
  13. /**
  14. * Identifies Maximum jitter buffer property of the MEGACO Network Package.
  15. * Its value shall be set equal to 0x0007.
  16. */
  17. public static final int NETWORK_JIT_PRPT = 0x0007;
  18. protected int[] itemsDescriptorIds = null;
  19. /**
  20. * Constructs a Jain MEGACO Object representing property Item of the MEGACO
  21. * Package for property Maximum Jitter Buffer and Package as Network.
  22. */
  23. public NetworkJitPrpt() {
  24. super();
  25. super.itemId = NETWORK_JIT_PRPT;
  26. super.propertyId = NETWORK_JIT_PRPT;
  27. super.packageId = new NetworkPkg();
  28. super.itemValueType = ParamValueType.M_INTEGER;
  29. itemsDescriptorIds = new int[] { DescriptorType.M_LOCAL_CONTROL_DESC };
  30. }
  31. /**
  32. * This method is used to get the item identifier from an Item object. The
  33. * implementations of this method in this class returns the id of the Jitter
  34. * statistics of Network Package.
  35. *
  36. * @return It shall return {@link NetworkJitPrpt.NETWORK_JIT_PRPT}.
  37. */
  38. public int getItemId() {
  39. return super.itemId;
  40. }
  41. /**
  42. * The method can be used to get the type of the value as defined in the
  43. * MEGACO packages. These could be one of string or enumerated value or
  44. * integer or double value or boolean.
  45. *
  46. * @return It returns {@link ParamValueType.M_INTEGER}
  47. * indicating that the parameter is a double.
  48. */
  49. public int getItemValueType() {
  50. return itemValueType;
  51. }
  52. /**
  53. * This method is used to get the statistics identifier from an Statistics
  54. * Item object. The implementations of this method in this class returns the
  55. * id of the Jitter statistics of Network Package.
  56. *
  57. * @return It shall return {@link NetworkJitPrpt.NETWORK_JIT_PRPT}.
  58. */
  59. public int getPropertyId() {
  60. return super.propertyId;
  61. }
  62. /**
  63. * This method gets the package id to which the item belongs. Since the
  64. * Jitter property is defined in the Network Package of MEGACO protocol,
  65. * this method returns the value NETWORK_PACKAGE constant. This constant is
  66. * defined in the PkgConsts class.
  67. *
  68. * @return The package id {@link NetworkPkg.NETWORK_PACKAGE}.
  69. */
  70. public MegacoPkg getItemsPkgId() {
  71. return super.packageId;
  72. }
  73. /**
  74. * The method can be used to get the descriptor ids corresponding to the
  75. * parameters to which the parameter can be set.
  76. *
  77. * @return This parameter can be present in Event descriptor. It shall thus
  78. * return a value {@link DescriptorType.M_LOCAL_CONTROL_DESC} as a
  79. * part of integer vector.
  80. */
  81. public int[] getItemsDescriptorIds() {
  82. return this.itemsDescriptorIds;
  83. }
  84. }