| 1 | package cz.vutbr.feec.session.rtprtcp.internal; |
| 2 | |
| 3 | import java.text.DecimalFormat; |
| 4 | |
| 5 | /** |
| 6 | * The Class ConfigDebug. |
| 7 | */ |
| 8 | public class ConfigDebug { |
| 9 | |
| 10 | /** The Constant RTCP_GENERATOR_LENGTH. */ |
| 11 | public static final boolean RTCP_GENERATOR_LENGTH = false; |
| 12 | |
| 13 | // pocitani intervalu |
| 14 | /** The Constant RTCP_GENERATOR_INTERVAL. */ |
| 15 | public static final boolean RTCP_GENERATOR_INTERVAL = false; |
| 16 | // casovani generovani packetu (hodnoty) |
| 17 | /** The Constant RTCP_GENERATOR_TIMER1. */ |
| 18 | public static final boolean RTCP_GENERATOR_TIMER1 = false; |
| 19 | // podrobnosti o vyprseni casovace |
| 20 | /** The Constant RTCP_GENERATOR_TIMER2. */ |
| 21 | public static final boolean RTCP_GENERATOR_TIMER2 = false; |
| 22 | |
| 23 | // podrobnosti o generovani packetu |
| 24 | /** The Constant RTCP_GENERATOR_PACKETS. */ |
| 25 | public static final boolean RTCP_GENERATOR_PACKETS = false; |
| 26 | |
| 27 | // podrobnosti o generovani packetu |
| 28 | /** The Constant RTCP_GENERATOR_SR. */ |
| 29 | public static final boolean RTCP_GENERATOR_SR = false; |
| 30 | // podrobnosti o generovani packetu |
| 31 | /** The Constant RTCP_RECEIVER_SR. */ |
| 32 | public static final boolean RTCP_RECEIVER_SR = false; |
| 33 | |
| 34 | // podrobnosti o generovani packetu |
| 35 | /** The Constant RTCP_GENERATOR_RR. */ |
| 36 | public static final boolean RTCP_GENERATOR_RR = false; |
| 37 | // podrobnosti o generovani packetu |
| 38 | /** The Constant RTCP_RECEIVER_RR. */ |
| 39 | public static final boolean RTCP_RECEIVER_RR = false; |
| 40 | |
| 41 | // podrobnosti o generovani packetu |
| 42 | /** The Constant RTCP_GENERATOR_SDES. */ |
| 43 | public static final boolean RTCP_GENERATOR_SDES = false; |
| 44 | // podrobnosti o generovani packetu |
| 45 | /** The Constant RTCP_RECEIVER_SDES. */ |
| 46 | public static final boolean RTCP_RECEIVER_SDES = false; |
| 47 | |
| 48 | |
| 49 | // public static boolean RTCP_RECEIVER = true; |
| 50 | // public static boolean RTCP_GENERATOR = true; |
| 51 | // |
| 52 | // public static boolean RTP_RECEIVER = true; |
| 53 | // public static boolean RTP_SENDER = true; |
| 54 | |
| 55 | /** The Constant MEMBERS_TABLE_ACTIONS. */ |
| 56 | public static final boolean MEMBERS_TABLE_ACTIONS = false; |
| 57 | |
| 58 | /** The Constant ZEROES. */ |
| 59 | static final String ZEROES = "000000000000"; |
| 60 | |
| 61 | /** The Constant BLANKS. */ |
| 62 | static final String BLANKS = " "; |
| 63 | |
| 64 | /** The df1. */ |
| 65 | static DecimalFormat df1 = new DecimalFormat(); |
| 66 | |
| 67 | /** |
| 68 | * To string. |
| 69 | * |
| 70 | * @param val the val |
| 71 | * |
| 72 | * @return the string |
| 73 | */ |
| 74 | static String toString( double val) |
| 75 | { |
| 76 | |
| 77 | df1.applyPattern("#####0.###"); |
| 78 | // return df1.format(1.23456); |
| 79 | return df1.format((long)val); |
| 80 | // return new Double(val).toString(); |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Print. |
| 85 | * |
| 86 | * @param level the level |
| 87 | * @param msg the msg |
| 88 | */ |
| 89 | static void print(boolean level, String msg){ |
| 90 | if(level) { |
| 91 | System.out.println(msg); |
| 92 | } |
| 93 | } |
| 94 | } |