JAINTM MGCP API (DRAFT FOR PUBLIC REVIEW) - Version 0.9 - 16 NOVEMBER 2000

jain.protocol.ip.mgcp.message.parms
Class ResourceReservation

java.lang.Object
  |
  +--jain.protocol.ip.mgcp.message.parms.LocalOptionValue
        |
        +--jain.protocol.ip.mgcp.message.parms.ResourceReservation
All Implemented Interfaces:
java.io.Serializable

public final class ResourceReservation
extends LocalOptionValue
implements java.io.Serializable

Specifies the type of resource reservation: guaranteed; controlled load; or best effort.

See Also:
Serialized Form

Field Summary
static int BEST_EFFORT
          Signifies best-effort resource reservation.
static ResourceReservation BestEffort
          Encapsulates the best-effort resource reservation.
static int CONTROLLED_LOAD
          Signifies controlled load resource reservation.
static ResourceReservation ControlledLoad
          Encapsulates the controlled load resource reservation.
static ResourceReservation Guaranteed
          Encapsulates the guaranteed resource reservation.
static int GUARANTEED
          Signifies guaranteed resource reservation.
 
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
 
Method Summary
 int getResourceReservation()
          Gets the value of this ResourceReservation object as an integer constant.
 java.lang.String toString()
          Returns a String of the form "r:<resourceReservation>" where resourceReservation is one of: "g" for guaranteed; "cl" for controlled load; or "be" for best-effort.
 
Methods inherited from class jain.protocol.ip.mgcp.message.parms.LocalOptionValue
getBandwidthLowerBound, getBandwidthUpperBound, getCompressionAlgorithmNames, getEchoCancellation, getEncryptionMethod, getGainControl, getLocalOptionExtensionName, getLocalOptionValueType, getPacketizationPeriodLowerBound, getPacketizationPeriodUpperBound, getSilenceSuppression, getTypeOfNetwork, getTypeOfService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BEST_EFFORT

public static final int BEST_EFFORT
Signifies best-effort resource reservation.

BestEffort

public static final ResourceReservation BestEffort
Encapsulates the best-effort resource reservation.

CONTROLLED_LOAD

public static final int CONTROLLED_LOAD
Signifies controlled load resource reservation.

ControlledLoad

public static final ResourceReservation ControlledLoad
Encapsulates the controlled load resource reservation.

Guaranteed

public static final ResourceReservation Guaranteed
Encapsulates the guaranteed resource reservation.

GUARANTEED

public static final int GUARANTEED
Signifies guaranteed resource reservation.
Method Detail

getResourceReservation

public int getResourceReservation()
Gets the value of this ResourceReservation object as an integer constant.
Overrides:
getResourceReservation in class LocalOptionValue
Following copied from class: jain.protocol.ip.mgcp.message.parms.LocalOptionValue
Returns:
The resource reservation type (as an integer value: GUARANTEED, CONTROLLED_LOAD, BEST_EFFORT).
Throws:
JainIPMgcpException - Thrown if this object does not represent resource reservation.

toString

public java.lang.String toString()
Returns a String of the form "r:<resourceReservation>" where resourceReservation is one of: "g" for guaranteed; "cl" for controlled load; or "be" for best-effort.
Overrides:
toString in class java.lang.Object

JAINTM MGCP API (DRAFT FOR PUBLIC REVIEW) - Version 0.9 - 16 NOVEMBER 2000

Copyright © 2000 Sun Microsystems, Inc.