PageRenderTime 33ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/CPToneGenPkg/CPToneGenBtSignal.java

http://mobicents.googlecode.com/
Java | 71 lines | 22 code | 14 blank | 35 comment | 0 complexity | 21ad7f656d0143a0eb0b9ec321fa59af 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.CPToneGenPkg;
  2. import javax.megaco.pkg.MegacoPkg;
  3. import javax.megaco.pkg.PkgSignalItem;
  4. import javax.megaco.pkg.DTMFGenPkg.DTMFGenPkg;
  5. /**
  6. * The MEGACO Busy Tone signal class extends the PkgSignalItem class. This is a
  7. * final class. This class defines Busy Tone signal of MEGACO Call Progress Tone
  8. * Generator package. The methods shall define that this signal item belongs to
  9. * the Call Progress Tone Generator package.
  10. */
  11. public final class CPToneGenBtSignal extends PkgSignalItem {
  12. /**
  13. * Identifies Call busy tone signal of the MEGACO Call Progress Tone
  14. * Generator Package. Its value shall be set equal to 0x0032.
  15. */
  16. public static final int CPTONE_GEN_RT_SIGNAL = 0x0032;
  17. private CPToneGenPkg itemsPkgId = new CPToneGenPkg();
  18. /**
  19. * Constructs a Jain MEGACO Object representing signal Item of the MEGACO
  20. * Package for signal Busy Tone and Package as Call Progress Tone Generator.
  21. */
  22. public CPToneGenBtSignal() {
  23. super();
  24. super.signalId = CPTONE_GEN_RT_SIGNAL;
  25. super.itemId = CPTONE_GEN_RT_SIGNAL;
  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 Busy
  30. * Tone signal of Call Progress Tone Generator Package.
  31. *
  32. * @return It shall return {@link CPTONE_GEN_RT_SIGNAL}.
  33. */
  34. public int getItemId() {
  35. return super.itemId;
  36. }
  37. /**
  38. * This method is used to get the signal identifier from an Signal Item
  39. * object. The implementations of this method in this class returns the id
  40. * of the Busy Tone signal of Call Progress Tone Generator Package.
  41. *
  42. * @return It shall return {@link CPTONE_GEN_RT_SIGNAL}.
  43. */
  44. public int getSignalId() {
  45. return super.signalId;
  46. }
  47. /**
  48. * This method gets the package to which the item belongs. Since the Busy
  49. * Tone signal is defined in the Call Progress Tone Generator Package of
  50. * MEGACO protocol, this method returns the CPToneGenPkg class object.
  51. *
  52. * @return The package is CPToneGenPkg
  53. */
  54. public MegacoPkg getItemsPkgId() {
  55. return itemsPkgId;
  56. }
  57. }