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