All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class calypso.core.atmswitch.TrafficDescr

java.lang.Object
   |
   +----calypso.core.atmswitch.TrafficDescr

public class TrafficDescr
extends Object
Traffic descriptor holding information on duplex connection QOS.

Author:
Olli-Pekka Auvinen / TCM laboratory / HUT

Variable Index

 o ATM_ANYCLASS
This constant is interpreted as any class of traffic to this direction.
 o ATM_CBR
This constant is interpreted as constant bit rate traffic class.
 o ATM_NONE
This constant is interpreted as no traffic to this direction.
 o ATM_UBR
This constant is interpreted as best effort traffic class.
 o RECEIVE
This constact refers to the receiving direction.
 o TRANSFER
This constant refers to the sending direction.

Constructor Index

 o TrafficDescr()
The TrafficDescr default constructor.

Method Index

 o getMaxCDV(int)
Access method for getting the maximum CDV to a desired direction.
 o getMaxPCR(int)
Access method for getting the maximum PCR to a desired direction.
 o getMaxSDU(int)
Access method for getting the maximum SDU to a desired direction.
 o getMinPCR(int)
Access method for getting the minimum PCR to a desired direction.
 o getTrafficClass(int)
Access method for getting the traffic class to a desired direction.
 o setMaxCDV(int, int)
Method for setting the maximum CDV of connection.
 o setMaxPCR(int, int)
Method for setting the maximum PCR of connection.
 o setMaxSDU(int, int)
Method for setting the maximum SDU of connection.
 o setMinPCR(int, int)
Method for setting the minimum PCR of connection.
 o setTrafficClass(int, int)
Method for setting the traffic class of connection.
 o setTrafficParameters(int, int, int)
Method for setting the traffic parameters to a given direction.
 o setTrafficParameters(int, int, int, int, int, int)
Method for setting the traffic parameters to a given direction.

Variables

 o TRANSFER
 public static final int TRANSFER
This constant refers to the sending direction.

 o RECEIVE
 public static final int RECEIVE
This constact refers to the receiving direction.

 o ATM_NONE
 public static final int ATM_NONE
This constant is interpreted as no traffic to this direction.

 o ATM_ANYCLASS
 public static final int ATM_ANYCLASS
This constant is interpreted as any class of traffic to this direction.

 o ATM_CBR
 public static final int ATM_CBR
This constant is interpreted as constant bit rate traffic class.

 o ATM_UBR
 public static final int ATM_UBR
This constant is interpreted as best effort traffic class.

Constructors

 o TrafficDescr
 public TrafficDescr()
The TrafficDescr default constructor.

Methods

 o setTrafficParameters
 public void setTrafficParameters(int direction_,
                                  int trafficClass_,
                                  int maxSDU_) throws SwitchException
Method for setting the traffic parameters to a given direction. This version of setTrafficParameters assumes that only two parameters are to be set.

Parameters:
direction_ - The direction of which the parameters are to be set.
trafficClass_ - Traffic class to be set.
maxSDU_ - Maximum service data unit size to be set.
Throws: SwitchException
If specified invalid direction.
 o setTrafficParameters
 public void setTrafficParameters(int direction_,
                                  int trafficClass_,
                                  int maxPCR_,
                                  int minPCR_,
                                  int maxCDV_,
                                  int maxSDU_) throws SwitchException
Method for setting the traffic parameters to a given direction. This version of setTrafficParameters assumes that all the five parameters are to be set, eventhough currently only use of two of them is supported.

Parameters:
direction_ - The direction of which the parameters are to be set.
trafficClass_ - Traffic class to be set.
maxSDU_ - Maximum service data unit size to be set.
Throws: SwitchException
If specified invalid direction.
 o getTrafficClass
 public int getTrafficClass(int direction_) throws SwitchException
Access method for getting the traffic class to a desired direction.

Parameters:
direction_ - The direction of which the traffic class is queried.
Returns:
The queried traffic class.
Throws: SwitchException
If specified invalid direction.
 o getMaxPCR
 public int getMaxPCR(int direction_) throws SwitchException
Access method for getting the maximum PCR to a desired direction.

Parameters:
direction_ - The direction of which the query is made.
Returns:
The queried maximum PCR.
Throws: SwitchException
If specified invalid direction.
 o getMinPCR
 public int getMinPCR(int direction_) throws SwitchException
Access method for getting the minimum PCR to a desired direction.

Parameters:
direction_ - The direction of which the query is made.
Returns:
The queried minimum PCR.
Throws: SwitchException
If specified invalid direction.
 o getMaxCDV
 public int getMaxCDV(int direction_) throws SwitchException
Access method for getting the maximum CDV to a desired direction.

Parameters:
direction_ - The direction of which the query is made.
Returns:
The queried maximum CDV.
Throws: SwitchException
If specified invalid direction.
 o getMaxSDU
 public int getMaxSDU(int direction_) throws SwitchException
Access method for getting the maximum SDU to a desired direction.

Parameters:
direction_ - The direction of which the query is made.
Returns:
The queried maximum SDU.
Throws: SwitchException
If specified invalid direction.
 o setTrafficClass
 public void setTrafficClass(int direction_,
                             int trafficClass_) throws SwitchException
Method for setting the traffic class of connection.

Parameters:
trafficClass_ - The traffic class to be set.
Throws: SwitchException
If specified invalid direction.
 o setMaxPCR
 public void setMaxPCR(int direction_,
                       int maxPCR_) throws SwitchException
Method for setting the maximum PCR of connection.

Parameters:
maxPCR_ - The maximum PCR to be set.
Throws: SwitchException
If specified invalid direction.
 o setMinPCR
 public void setMinPCR(int direction_,
                       int minPCR_) throws SwitchException
Method for setting the minimum PCR of connection.

Parameters:
minPCR_ - The minimum PCR to be set.
Throws: SwitchException
If specified invalid direction.
 o setMaxCDV
 public void setMaxCDV(int direction_,
                       int maxCDV_) throws SwitchException
Method for setting the maximum CDV of connection.

Parameters:
maxCDV_ - The maximum CDV to be set.
Throws: SwitchException
If specified invalid direction.
 o setMaxSDU
 public void setMaxSDU(int direction_,
                       int maxSDU_) throws SwitchException
Method for setting the maximum SDU of connection.

Parameters:
maxSDU_ - The maximum SDU to be set.
Throws: SwitchException
If specified invalid direction.

All Packages  Class Hierarchy  This Package  Previous  Next  Index