package javax.megaco.pkg.ContinuityPkg;
import javax.megaco.pkg.MegacoPkg;
import javax.megaco.pkg.PkgSignalItem;
/**
* The MEGACO Respond signal class extends the PkgSignalItem class. This is a
* final class. This class defines Respond signal of MEGACO Continuity package.
* The methods shall define that this signal item belongs to the Continuity
* package.
*/
public final class ContRspSignal extends PkgSignalItem {
/**
* Identifies Continuity Test Respond signal of the MEGACO Continuity
* Package. Its value shall be set equal to 0x0004.
*/
public static final int CONT_RSP_SIGNAL = 0x0004;
protected int signalId = CONT_RSP_SIGNAL;
/**
* Constructs a Jain MEGACO Object representing signal item of the MEGACO
* Package for signal Respond and Package as Continuity.
*/
public ContRspSignal() {
super();
super.itemId = CONT_RSP_SIGNAL;
super.packageId = new ContinuityPkg();
}
/**
* 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
* Respond signal of Continuity Package.
*/
public int getItemId() {
return CONT_RSP_SIGNAL;
}
/**
* 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 Respond signal of Continuity Package.
*
* @return It shall return {@link CONT_RSP_SIGNAL}.
*/
public int getSignalId() {
return signalId;
}
/**
* This method gets the package id to which the item belongs. Since the
* Respond signal is defined in the Continuity Package of MEGACO protocol,
* this method returns the value ContinuityPkg class object.
*
* @return The package is {@link ContinuityPkg}
*/
public MegacoPkg getItemsPkgId() {
return super.packageId;
}
}