test_class.declarator: HEART_BEAT = 20
test_class.modifier: private static final
test_class.original_string: private static final int HEART_BEAT = 20;
test_class.type: int
test_class.var_name: HEART_BEAT
test_class.declarator: PCMA = new AudioFormat(AudioFormat.ALAW, 8000, 8, 1)
test_class.modifier: private static final
test_class.original_string: private static final AudioFormat PCMA = new AudioFormat(AudioFormat.ALAW, 8000, 8, 1);
test_class.type: AudioFormat
test_class.var_name: PCMA
test_class.declarator: PCMU = new AudioFormat(AudioFormat.ULAW, 8000, 8, 1)
test_class.modifier: private static final
test_class.original_string: private static final AudioFormat PCMU = new AudioFormat(AudioFormat.ULAW, 8000, 8, 1);
test_class.type: AudioFormat
test_class.var_name: PCMU
test_class.declarator: formatMap = new HashMap<Integer, Format>()
test_class.modifier: private static
test_class.original_string: private static Map<Integer, Format> formatMap = new HashMap<Integer, Format>();
test_class.type: Map<Integer, Format>
test_class.var_name: formatMap
test_class.declarator: factory = null
test_class.modifier: private
test_class.original_string: private RtpFactory factory = null;
test_class.type: RtpFactory
test_class.var_name: factory
test_class.file: servers/media/core/server-impl/src/test/java/org/mobicents/media/server/impl/rtp/RtpFactoryTest.java
test_class.identifier: RtpFactoryTest
test_case.body: @Test
      public void getRTPSocketTest() throws Exception {
          RtpSocket rtpSocket = factory.getRTPSocket();
          int port = rtpSocket.getLocalPort();
          assertEquals(9201, port);
          assertEquals(80, rtpSocket.getJitter());
  
          HashMap<Integer, Format> format = rtpSocket.getRtpMap();
  
          assertEquals(2, format.size());
  
          format.remove(0);
  
          rtpSocket.setRtpMap(format);
  
          assertEquals(1, rtpSocket.getRtpMap().size());
  
          rtpSocket.release();
  
          RtpSocket rtpSocket2 = factory.getRTPSocket();
          assertEquals(2, rtpSocket2.getRtpMap().size());
  
      }
test_case.class_method_signature: RtpFactoryTest.getRTPSocketTest()
test_case.full_signature: @Test public void getRTPSocketTest()
test_case.identifier: getRTPSocketTest
test_case.invocations: getRTPSocket getLocalPort assertEquals assertEquals getJitter getRtpMap assertEquals size remove setRtpMap assertEquals size getRtpMap release getRTPSocket assertEquals size getRtpMap
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getRTPSocketTest()
focal_class.declarator: transceiver
focal_class.modifier: private
focal_class.original_string: private Transceiver transceiver;
focal_class.type: Transceiver
focal_class.var_name: transceiver
focal_class.declarator: jitter = 60
focal_class.modifier: private
focal_class.original_string: private Integer jitter = 60;
focal_class.type: Integer
focal_class.var_name: jitter
focal_class.declarator: bindAddress
focal_class.modifier: private
focal_class.original_string: private InetAddress bindAddress;
focal_class.type: InetAddress
focal_class.var_name: bindAddress
focal_class.declarator: localPort
focal_class.modifier: private
focal_class.original_string: private int localPort;
focal_class.type: int
focal_class.var_name: localPort
focal_class.declarator: publicAddress
focal_class.modifier: protected
focal_class.original_string: protected InetSocketAddress publicAddress;
focal_class.type: InetSocketAddress
focal_class.var_name: publicAddress
focal_class.declarator: stunHost
focal_class.modifier: private
focal_class.original_string: private String stunHost;
focal_class.type: String
focal_class.var_name: stunHost
focal_class.declarator: stunPort = 3478
focal_class.modifier: private
focal_class.original_string: private int stunPort = 3478;
focal_class.type: int
focal_class.var_name: stunPort
focal_class.declarator: timer
focal_class.modifier: private
focal_class.original_string: private Timer timer;
focal_class.type: Timer
focal_class.var_name: timer
focal_class.declarator: formatMap
focal_class.modifier: private
focal_class.original_string: private Map<Integer, Format> formatMap;
focal_class.type: Map<Integer, Format>
focal_class.var_name: formatMap
focal_class.declarator: rtpSockets = new HashMap()
focal_class.modifier: protected volatile
focal_class.original_string: protected volatile HashMap<SocketAddress, RtpSocket> rtpSockets = new HashMap();
focal_class.type: HashMap<SocketAddress, RtpSocket>
focal_class.var_name: rtpSockets
focal_class.declarator: logger = Logger.getLogger(RtpFactory.class)
focal_class.modifier: private transient
focal_class.original_string: private transient Logger logger = Logger.getLogger(RtpFactory.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: servers/media/core/server-impl/src/main/java/org/mobicents/media/server/impl/rtp/RtpFactory.java
focal_class.identifier: RtpFactory
focal_class.class_method_signature: RtpFactory.RtpFactory()
focal_class.full_signature: public  RtpFactory()
focal_class.identifier: RtpFactory
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  RtpFactory()
focal_class.class_method_signature: RtpFactory.getLocalPort()
focal_class.full_signature: public int getLocalPort()
focal_class.identifier: getLocalPort
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getLocalPort()
focal_class.class_method_signature: RtpFactory.setLocalPort(int localPort)
focal_class.full_signature: public void setLocalPort(int localPort)
focal_class.identifier: setLocalPort
focal_class.modifiers: public
focal_class.parameters: (int localPort)
focal_class.return: void
focal_class.signature: void setLocalPort(int localPort)
focal_class.class_method_signature: RtpFactory.getStunAddress()
focal_class.full_signature: public String getStunAddress()
focal_class.identifier: getStunAddress
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getStunAddress()
focal_class.class_method_signature: RtpFactory.setStunAddress(String address)
focal_class.full_signature: public void setStunAddress(String address)
focal_class.identifier: setStunAddress
focal_class.modifiers: public
focal_class.parameters: (String address)
focal_class.return: void
focal_class.signature: void setStunAddress(String address)
focal_class.class_method_signature: RtpFactory.start()
focal_class.full_signature: public void start()
focal_class.identifier: start
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void start()
focal_class.class_method_signature: RtpFactory.stop()
focal_class.full_signature: public void stop()
focal_class.identifier: stop
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void stop()
focal_class.class_method_signature: RtpFactory.getTimer()
focal_class.full_signature: public Timer getTimer()
focal_class.identifier: getTimer
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Timer
focal_class.signature: Timer getTimer()
focal_class.class_method_signature: RtpFactory.setTimer(Timer timer)
focal_class.full_signature: public void setTimer(Timer timer)
focal_class.identifier: setTimer
focal_class.modifiers: public
focal_class.parameters: (Timer timer)
focal_class.return: void
focal_class.signature: void setTimer(Timer timer)
focal_class.class_method_signature: RtpFactory.getBindAddress()
focal_class.full_signature: public String getBindAddress()
focal_class.identifier: getBindAddress
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getBindAddress()
focal_class.class_method_signature: RtpFactory.setBindAddress(String bindAddress)
focal_class.full_signature: public void setBindAddress(String bindAddress)
focal_class.identifier: setBindAddress
focal_class.modifiers: public
focal_class.parameters: (String bindAddress)
focal_class.return: void
focal_class.signature: void setBindAddress(String bindAddress)
focal_class.class_method_signature: RtpFactory.getJitter()
focal_class.full_signature: public Integer getJitter()
focal_class.identifier: getJitter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Integer
focal_class.signature: Integer getJitter()
focal_class.class_method_signature: RtpFactory.setJitter(Integer jitter)
focal_class.full_signature: public void setJitter(Integer jitter)
focal_class.identifier: setJitter
focal_class.modifiers: public
focal_class.parameters: (Integer jitter)
focal_class.return: void
focal_class.signature: void setJitter(Integer jitter)
focal_class.class_method_signature: RtpFactory.getRTPSocket()
focal_class.full_signature: public RtpSocket getRTPSocket()
focal_class.identifier: getRTPSocket
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: RtpSocket
focal_class.signature: RtpSocket getRTPSocket()
focal_class.class_method_signature: RtpFactory.releaseRTPSocket(RtpSocket rtpSocket)
focal_class.full_signature: public void releaseRTPSocket(RtpSocket rtpSocket)
focal_class.identifier: releaseRTPSocket
focal_class.modifiers: public
focal_class.parameters: (RtpSocket rtpSocket)
focal_class.return: void
focal_class.signature: void releaseRTPSocket(RtpSocket rtpSocket)
focal_class.class_method_signature: RtpFactory.getFormatMap()
focal_class.full_signature: public Map<Integer, Format> getFormatMap()
focal_class.identifier: getFormatMap
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<Integer, Format>
focal_class.signature: Map<Integer, Format> getFormatMap()
focal_class.class_method_signature: RtpFactory.setFormatMap(Map<Integer, Format> originalFormatMap)
focal_class.full_signature: public void setFormatMap(Map<Integer, Format> originalFormatMap)
focal_class.identifier: setFormatMap
focal_class.modifiers: public
focal_class.parameters: (Map<Integer, Format> originalFormatMap)
focal_class.return: void
focal_class.signature: void setFormatMap(Map<Integer, Format> originalFormatMap)
focal_class.class_method_signature: RtpFactory.convert(Integer payloadType, Format _f)
focal_class.full_signature: private Format convert(Integer payloadType, Format _f)
focal_class.identifier: convert
focal_class.modifiers: private
focal_class.parameters: (Integer payloadType, Format _f)
focal_class.return: Format
focal_class.signature: Format convert(Integer payloadType, Format _f)
focal_class.class_method_signature: RtpFactory.getPublicAddress(InetSocketAddress localAddress)
focal_class.full_signature: private InetSocketAddress getPublicAddress(InetSocketAddress localAddress)
focal_class.identifier: getPublicAddress
focal_class.modifiers: private
focal_class.parameters: (InetSocketAddress localAddress)
focal_class.return: InetSocketAddress
focal_class.signature: InetSocketAddress getPublicAddress(InetSocketAddress localAddress)
focal_method.body: public RtpSocket getRTPSocket() {
          RtpSocket rtpSocket = new RtpSocket(transceiver, timer, formatMap, this);
          return rtpSocket;
      }
focal_method.class_method_signature: RtpFactory.getRTPSocket()
focal_method.full_signature: public RtpSocket getRTPSocket()
focal_method.identifier: getRTPSocket
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: RtpSocket
focal_method.signature: RtpSocket getRTPSocket()