/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/NetworkPkg/NetworkQualertEvt.java

http://mobicents.googlecode.com/ · Java · 64 lines · 21 code · 8 blank · 35 comment · 0 complexity · 5df06ea1c54bbb1bea3ad2ec8eb22099 MD5 · raw file

  1. package javax.megaco.pkg.NetworkPkg;
  2. import javax.megaco.pkg.MegacoPkg;
  3. import javax.megaco.pkg.PkgEventItem;
  4. /**
  5. * The MEGACO Quality Alert event class extends the PkgEventItem class. This is
  6. * a final class. This class defines Quality Alert event of MEGACO Network
  7. * package. The methods shall define that this event item belongs to the Network
  8. * package.
  9. */
  10. public final class NetworkQualertEvt extends PkgEventItem {
  11. /**
  12. * Identifies Quality Alert event of the MEGACO Network Package. Its value
  13. * shall be set equal to 0x0006.
  14. */
  15. public static final int NETWORK_QLTY_ALERT_EVENT = 0x0006;
  16. /**
  17. * Constructs a Jain MEGACO Object representing event Item of the MEGACO
  18. * Package for event Quality alert and package as Network.
  19. */
  20. public NetworkQualertEvt() {
  21. super();
  22. super.eventId = NETWORK_QLTY_ALERT_EVENT;
  23. super.itemId = NETWORK_QLTY_ALERT_EVENT;
  24. super.packageId = new NetworkPkg();
  25. }
  26. /**
  27. * This method is used to get the event identifier from an Event Item
  28. * object. The implementations of this method in this class returns the id
  29. * of the Quality Alert event of Network Package.
  30. *
  31. * @return It shall return {@link NETWORK_QLTY_ALERT_EVENT}.
  32. */
  33. public int getEventId() {
  34. return super.eventId;
  35. }
  36. /**
  37. * This method is used to get the item identifier from an Item object. The
  38. * implementations of this method in this class returns the id of the
  39. * Quality Alert event of Network Package.
  40. *
  41. * @return It shall return {@link NETWORK_QLTY_ALERT_EVENT}.
  42. */
  43. public int getItemId() {
  44. return super.itemId;
  45. }
  46. /**
  47. * This method gets the package id to which the item belongs. Since the
  48. * Quality Alert event is defined in the Network Package of MEGACO protocol,
  49. * this method returns the NetworkPkg class object.
  50. *
  51. * @return The package is NetworkPkg.
  52. */
  53. public MegacoPkg getItemsPkgId() {
  54. return super.packageId;
  55. }
  56. }