PageRenderTime 24ms CodeModel.GetById 15ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 1ms

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

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