Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol.event
Class ConferenceMembersSoundLevelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.service.protocol.event.ConferenceMembersSoundLevelEvent
All Implemented Interfaces:
Serializable

public class ConferenceMembersSoundLevelEvent
extends EventObject

Notifies interested parties in ConferenceMembers sound level changes. When a CallPeer is participating in the conference also as a ConferenceMember its sound level would be included in the map of received levels.

Author:
Yana Stamcheva
See Also:
Serialized Form

Field Summary
static int MAX_LEVEL
          The maximum level that can be reported for a participant in a conference.
static int MIN_LEVEL
          The maximum (zero) level that can be reported for a participant in a conference.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ConferenceMembersSoundLevelEvent(CallPeer callPeer, Map<ConferenceMember,Integer> levels)
          Creates an instance of ConferenceMembersSoundLevelEvent for the given callPeer by indicating the mapping of ConferenceMembers and sound levels.
 
Method Summary
 Map<ConferenceMember,Integer> getLevels()
          Returns the mapping of ConferenceMembers to sound levels.
 CallPeer getSourcePeer()
          Returns the source CallPeer for which the event occurred.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_LEVEL

public static final int MAX_LEVEL
The maximum level that can be reported for a participant in a conference. Level values should be distributed among MAX_LEVEL and MIN_LEVEL in a way that would appear uniform to users.

See Also:
Constant Field Values

MIN_LEVEL

public static final int MIN_LEVEL
The maximum (zero) level that can be reported for a participant in a conference. Level values should be distributed among MAX_LEVEL and MIN_LEVEL in a way that would appear uniform to users.

See Also:
Constant Field Values
Constructor Detail

ConferenceMembersSoundLevelEvent

public ConferenceMembersSoundLevelEvent(CallPeer callPeer,
                                        Map<ConferenceMember,Integer> levels)
Creates an instance of ConferenceMembersSoundLevelEvent for the given callPeer by indicating the mapping of ConferenceMembers and sound levels.

Parameters:
callPeer - the CallPeer for which this event occurred
levels - the mapping of ConferenceMembers to sound levels
Method Detail

getSourcePeer

public CallPeer getSourcePeer()
Returns the source CallPeer for which the event occurred.

Returns:
the source CallPeer for which the event occurred

getLevels

public Map<ConferenceMember,Integer> getLevels()
Returns the mapping of ConferenceMembers to sound levels. It is presumed that all ConferenceMembers not contained in the map has a 0 sound level.

Returns:
the mapping of ConferenceMembers to sound levels

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.