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
-
ATM_ANYCLASS
- This constant is interpreted as any class of traffic to this direction.
-
ATM_CBR
- This constant is interpreted as constant bit rate traffic class.
-
ATM_NONE
- This constant is interpreted as no traffic to this direction.
-
ATM_UBR
- This constant is interpreted as best effort traffic class.
-
RECEIVE
- This constact refers to the receiving direction.
-
TRANSFER
- This constant refers to the sending direction.
-
TrafficDescr()
- The TrafficDescr default constructor.
-
getMaxCDV(int)
- Access method for getting the maximum CDV to a desired direction.
-
getMaxPCR(int)
- Access method for getting the maximum PCR to a desired direction.
-
getMaxSDU(int)
- Access method for getting the maximum SDU to a desired direction.
-
getMinPCR(int)
- Access method for getting the minimum PCR to a desired direction.
-
getTrafficClass(int)
- Access method for getting the traffic class to a desired direction.
-
setMaxCDV(int, int)
- Method for setting the maximum CDV of connection.
-
setMaxPCR(int, int)
- Method for setting the maximum PCR of connection.
-
setMaxSDU(int, int)
- Method for setting the maximum SDU of connection.
-
setMinPCR(int, int)
- Method for setting the minimum PCR of connection.
-
setTrafficClass(int, int)
- Method for setting the traffic class of connection.
-
setTrafficParameters(int, int, int)
- Method for setting the traffic parameters to a given direction.
-
setTrafficParameters(int, int, int, int, int, int)
- Method for setting the traffic parameters to a given direction.
TRANSFER
public static final int TRANSFER
- This constant refers to the sending direction.
RECEIVE
public static final int RECEIVE
- This constact refers to the receiving direction.
ATM_NONE
public static final int ATM_NONE
- This constant is interpreted as no traffic to this direction.
ATM_ANYCLASS
public static final int ATM_ANYCLASS
- This constant is interpreted as any class of traffic to this direction.
ATM_CBR
public static final int ATM_CBR
- This constant is interpreted as constant bit rate traffic class.
ATM_UBR
public static final int ATM_UBR
- This constant is interpreted as best effort traffic class.
TrafficDescr
public TrafficDescr()
- The TrafficDescr default constructor.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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