jain.protocol.ip.mgcp.message.parms
Class Bandwidth
java.lang.Object
|
+--jain.protocol.ip.mgcp.message.parms.LocalOptionValue
|
+--jain.protocol.ip.mgcp.message.parms.Bandwidth
- All Implemented Interfaces:
- java.io.Serializable
- public final class Bandwidth
- extends LocalOptionValue
- implements java.io.Serializable
Specifies a bandwidth value or range.
- See Also:
- Serialized Form
Fields inherited from class jain.protocol.ip.mgcp.message.parms.LocalOptionValue |
BANDWIDTH, COMPRESSION_ALGORITHM, ECHO_CANCELLATION, ENCRYPTION_METHOD, GAIN_CONTROL, LOCAL_OPTION_EXTENSION, PACKETIZATION_PERIOD, RESOURCE_RESERVATION, SILENCE_SUPPRESSION, TYPE_OF_NETWORK, TYPE_OF_SERVICE |
Constructor Summary |
Bandwidth(int value)
Constructs a new bandwidth range in which the upper and lower bounds are the same value. |
Bandwidth(int lower,
int upper)
Constructs a new bandwidth range in which the upper and lower bounds are distinct values. |
Method Summary |
int |
getBandwidthLowerBound()
Gets the lower bound of the bandwidth range. |
int |
getBandwidthUpperBound()
Gets the upper bound of the bandwidth range. |
java.lang.String |
toString()
Returns the bandwidth range as a String of the form "b:<lower bound>[-<upper bound>]"
where the upper bound is
omitted if the lower and upper bounds are identical. |
Methods inherited from class jain.protocol.ip.mgcp.message.parms.LocalOptionValue |
getCompressionAlgorithmNames, getEchoCancellation, getEncryptionMethod, getGainControl, getLocalOptionExtensionName, getLocalOptionValueType, getPacketizationPeriodLowerBound, getPacketizationPeriodUpperBound, getResourceReservation, getSilenceSuppression, getTypeOfNetwork, getTypeOfService |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Bandwidth
public Bandwidth(int value)
- Constructs a new bandwidth range in which the upper and lower bounds are the same value.
Bandwidth
public Bandwidth(int lower,
int upper)
- Constructs a new bandwidth range in which the upper and lower bounds are distinct values.
getBandwidthLowerBound
public int getBandwidthLowerBound()
- Gets the lower bound of the bandwidth range.
- Overrides:
getBandwidthLowerBound
in class LocalOptionValue
- Returns:
- The lower bound of the bandwidth range.
getBandwidthUpperBound
public int getBandwidthUpperBound()
- Gets the upper bound of the bandwidth range.
- Overrides:
getBandwidthUpperBound
in class LocalOptionValue
- Returns:
- The upper bound of the bandwidth range.
toString
public java.lang.String toString()
- Returns the bandwidth range as a String of the form "b:<lower bound>[-<upper bound>]"
where the upper bound is
omitted if the lower and upper bounds are identical.
- Overrides:
toString
in class java.lang.Object
Copyright © 2000 Sun Microsystems, Inc.