PageRenderTime 279ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/RTPPkg/RTPJitStats.java

http://mobicents.googlecode.com/
Java | 81 lines | 30 code | 10 blank | 41 comment | 0 complexity | edb4953ee862b76b7cd23bc1cb6f8f66 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.RTPPkg;
  2. import javax.megaco.pkg.MegacoPkg;
  3. import javax.megaco.pkg.PkgConsts;
  4. import javax.megaco.pkg.PkgStatsItem;
  5. /**
  6. *
  7. * The MEGACO Jitter statistics class extends the PkgStatsItem class. This is a
  8. * final class. This class defines Jitter statistics of MEGACO RTP package. The
  9. * methods shall define that this statistics item belongs to the RTP package.
  10. */
  11. public final class RTPJitStats extends PkgStatsItem {
  12. /**
  13. * Identifies Jitter statistics of the MEGACO RTP Package. Its value shall
  14. * be set equal to 0x0007.
  15. */
  16. public static final int RTP_JIT_STATS = 0x0007;
  17. /**
  18. * Constructs a Jain MEGACO Object representing statistics item of the
  19. * MEGACO Package for statistics Jitter and Package as RTP.
  20. */
  21. public RTPJitStats() {
  22. super();
  23. super.statisticsId = RTP_JIT_STATS;
  24. super.itemId = RTP_JIT_STATS;
  25. super.packageId = new RTPPkg();
  26. }
  27. /**
  28. * This method is used to get the item identifier from an Item object. The
  29. * implementations of this method in this class returns the id of the Jitter
  30. * statistics of RTP Package.
  31. *
  32. * @return It shall return {@link RTP_JIT_STATS}.
  33. */
  34. public int getItemId() {
  35. return super.itemId;
  36. }
  37. /**
  38. * This method gets the package id to which the item belongs. Since the
  39. * Jitter statistics is defined in the RTP Package of MEGACO protocol, this
  40. * method returns the value {@link PkgConsts.RTP_PACKAGE} constant. This
  41. * constant is defined in the PkgConsts class.
  42. *
  43. *
  44. *
  45. * @return The package id RTP_PACKAGE.
  46. */
  47. public MegacoPkg getItemsPkgId() {
  48. return super.packageId;
  49. }
  50. /**
  51. * This method is used to get the statistics identifier from an Statistics
  52. * Item object. The implementations of this method in this class returns the
  53. * id of the Jitter statistics of RTP Package.
  54. *
  55. * @return It shall return {@link RTP_JIT_STATS}.
  56. */
  57. public int getStatisticsId() {
  58. return super.statisticsId;
  59. }
  60. // FIXME; ??
  61. @Override
  62. public int getItemValueType() {
  63. // TODO Auto-generated method stub
  64. return 0;
  65. }
  66. @Override
  67. public int[] getItemsDescriptorIds() {
  68. // TODO Auto-generated method stub
  69. return null;
  70. }
  71. }