net.sf.fmj.media.rtp
Class RTPParticipant

java.lang.Object
  extended by net.sf.fmj.media.rtp.RTPParticipant
All Implemented Interfaces:
Participant
Direct Known Subclasses:
RTPLocalParticipant, RTPRemoteParticipant

public class RTPParticipant
extends java.lang.Object
implements Participant

Represents an RTP participant

Version:
1-1-alpha3
Author:
Andrew G D Rowley

Field Summary
protected  java.util.HashMap sourceDescriptions
           
 
Constructor Summary
RTPParticipant(java.lang.String cName)
          Creates a new RTPParticipant
 
Method Summary
 void addReport(Report report)
          Adds an RTCP Report for this participant
protected  void addSourceDescription(SourceDescription sdes)
          Adds a source description item to the participant
protected  void addStream(RTPStream stream)
          Adds a stream to the participant
 java.lang.String getCNAME()
           
 java.util.Vector getReports()
           
 int getSdesSize()
          Returns the number of bytes of sdes that this participant requires
 java.util.Vector getSourceDescription()
           
 java.util.Vector getStreams()
           
 boolean isActive()
          Returns true if the participant is active
protected  void removeStream(RTPStream stream)
           
protected  void setActive(boolean active)
          Sets the participant active or inactive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceDescriptions

protected java.util.HashMap sourceDescriptions
Constructor Detail

RTPParticipant

public RTPParticipant(java.lang.String cName)
Creates a new RTPParticipant

Method Detail

getStreams

public java.util.Vector getStreams()
Specified by:
getStreams in interface Participant

getReports

public java.util.Vector getReports()
Specified by:
getReports in interface Participant

getCNAME

public java.lang.String getCNAME()
Specified by:
getCNAME in interface Participant

getSourceDescription

public java.util.Vector getSourceDescription()
Specified by:
getSourceDescription in interface Participant

isActive

public boolean isActive()
Returns true if the participant is active


setActive

protected void setActive(boolean active)
Sets the participant active or inactive


addStream

protected void addStream(RTPStream stream)
Adds a stream to the participant


removeStream

protected void removeStream(RTPStream stream)

addSourceDescription

protected void addSourceDescription(SourceDescription sdes)
Adds a source description item to the participant

Parameters:
sdes - The SDES item to add

getSdesSize

public int getSdesSize()
Returns the number of bytes of sdes that this participant requires


addReport

public void addReport(Report report)
Adds an RTCP Report for this participant

Parameters:
report - The report to add