/protocols/jain-megaco/megaco-api/src/main/java/javax/megaco/pkg/RTPPkg/RTPPrStats.java
Java | 82 lines | 30 code | 10 blank | 42 comment | 0 complexity | f80485c1476c1b507156eb0039bac642 MD5 | raw file
1package javax.megaco.pkg.RTPPkg; 2 3import javax.megaco.pkg.MegacoPkg; 4import javax.megaco.pkg.PkgConsts; 5import javax.megaco.pkg.PkgStatsItem; 6 7/** 8 * 9 * The MEGACO Packet Received statistics class extends the PkgStatsItem class. 10 * This is a final class. This class defines Packet Received statistics of 11 * MEGACO RTP package. The methods shall define that this statistics item 12 * belongs to the RTP package. 13 */ 14public final class RTPPrStats extends PkgStatsItem { 15 16 /** 17 * Identifies Packet received statistics of the MEGACO RTP Package. Its 18 * value shall be set equal to 0x0005. 19 */ 20 public static final int RTP_PR_STATS = 0x0005; 21 22 /** 23 * Constructs a Jain MEGACO Object representing statistics item of the 24 * MEGACO Package for statistics Packet Received and Package as RTP. 25 */ 26 public RTPPrStats() { 27 super(); 28 super.statisticsId = RTP_PR_STATS; 29 super.itemId = RTP_PR_STATS; 30 super.packageId = new RTPPkg(); 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 * Packets received statistics of RTP Package. 37 * 38 * @return It shall return {@link RTP_PR_STATS}. 39 */ 40 public int getItemId() { 41 return super.itemId; 42 } 43 44 /** 45 * This method gets the package id to which the item belongs. Since the 46 * Packet Received statistics is defined in the RTP Package of MEGACO 47 * protocol, this method returns the value {@link PkgConsts.RTP_PACKAGE} 48 * constant. This constant is defined in the PkgConsts class. 49 * 50 * 51 * 52 * @return The package id RTP_PACKAGE. 53 */ 54 public MegacoPkg getItemsPkgId() { 55 return super.packageId; 56 } 57 58 /** 59 * This method is used to get the statistics identifier from an Statistics 60 * Item object. The implementations of this method in this class returns the 61 * id of the Packets received statistics of RTP Package. 62 * 63 * @return It shall return {@link RTP_PR_STATS}. 64 */ 65 public int getStatisticsId() { 66 return super.statisticsId; 67 } 68 69 // FIXME; ?? 70 @Override 71 public int getItemValueType() { 72 // TODO Auto-generated method stub 73 return 0; 74 } 75 76 @Override 77 public int[] getItemsDescriptorIds() { 78 // TODO Auto-generated method stub 79 return null; 80 } 81 82}