PageRenderTime 103ms CodeModel.GetById 99ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/CPToneDetPkg/CPToneDetBtEvt.java

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