/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/CPToneGenPkg/CPToneGenBtSignal.java
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
- package javax.megaco.pkg.CPToneGenPkg;
-
- import javax.megaco.pkg.MegacoPkg;
- import javax.megaco.pkg.PkgSignalItem;
- import javax.megaco.pkg.DTMFGenPkg.DTMFGenPkg;
-
-
-
- /**
- * The MEGACO Busy Tone signal class extends the PkgSignalItem class. This is a
- * final class. This class defines Busy Tone signal of MEGACO Call Progress Tone
- * Generator package. The methods shall define that this signal item belongs to
- * the Call Progress Tone Generator package.
- */
- public final class CPToneGenBtSignal extends PkgSignalItem {
-
-
- /**
- * Identifies Call busy tone signal of the MEGACO Call Progress Tone
- * Generator Package. Its value shall be set equal to 0x0032.
- */
- public static final int CPTONE_GEN_RT_SIGNAL = 0x0032;
-
- private CPToneGenPkg itemsPkgId = new CPToneGenPkg();
-
- /**
- * Constructs a Jain MEGACO Object representing signal Item of the MEGACO
- * Package for signal Busy Tone and Package as Call Progress Tone Generator.
- */
- public CPToneGenBtSignal() {
- super();
- super.signalId = CPTONE_GEN_RT_SIGNAL;
- super.itemId = CPTONE_GEN_RT_SIGNAL;
- }
-
- /**
- * This method is used to get the item identifier from an Item object. The
- * implementations of this method in this class returns the id of the Busy
- * Tone signal of Call Progress Tone Generator Package.
- *
- * @return It shall return {@link CPTONE_GEN_RT_SIGNAL}.
- */
- public int getItemId() {
-
- return super.itemId;
- }
-
- /**
- * This method is used to get the signal identifier from an Signal Item
- * object. The implementations of this method in this class returns the id
- * of the Busy Tone signal of Call Progress Tone Generator Package.
- *
- * @return It shall return {@link CPTONE_GEN_RT_SIGNAL}.
- */
- public int getSignalId() {
- return super.signalId;
- }
-
- /**
- * This method gets the package to which the item belongs. Since the Busy
- * Tone signal is defined in the Call Progress Tone Generator Package of
- * MEGACO protocol, this method returns the CPToneGenPkg class object.
- *
- * @return The package is CPToneGenPkg
- */
- public MegacoPkg getItemsPkgId() {
-
- return itemsPkgId;
- }
-
- }