Package org.onlab.packet
Enum DscpClass
- java.lang.Object
- 
- java.lang.Enum<DscpClass>
- 
- org.onlab.packet.DscpClass
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<DscpClass>
 
 public enum DscpClass extends Enum<DscpClass> Represents the DiffServ classes defined by the IPv4/IPv6 DSCP value. DSCP occupies the 6 most-significant bits of the IPv4/IPv6 DS field
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DscpClassfromShort(short value)Returns the DSCP class Enum corresponding to the specified short.shortgetDropPrecedence()Returns the corresponding drop precedence.IPPrecedencegetIPPrecedence()Returns the corresponding IP precedence.shortgetValue()Returns the short value of this DSCP class Enum.static DscpClassvalueOf(String name)Returns the enum constant of this type with the specified name.static DscpClass[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
BEpublic static final DscpClass BE 
 - 
AF11public static final DscpClass AF11 
 - 
AF12public static final DscpClass AF12 
 - 
AF13public static final DscpClass AF13 
 - 
AF21public static final DscpClass AF21 
 - 
AF22public static final DscpClass AF22 
 - 
AF23public static final DscpClass AF23 
 - 
AF31public static final DscpClass AF31 
 - 
AF32public static final DscpClass AF32 
 - 
AF33public static final DscpClass AF33 
 - 
AF41public static final DscpClass AF41 
 - 
AF42public static final DscpClass AF42 
 - 
AF43public static final DscpClass AF43 
 - 
CS1public static final DscpClass CS1 
 - 
CS2public static final DscpClass CS2 
 - 
CS3public static final DscpClass CS3 
 - 
CS4public static final DscpClass CS4 
 - 
CS5public static final DscpClass CS5 
 - 
CS6public static final DscpClass CS6 
 - 
CS7public static final DscpClass CS7 
 - 
EFpublic static final DscpClass EF 
 
- 
 - 
Method Detail- 
valuespublic static DscpClass[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DscpClass c : DscpClass.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static DscpClass valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
fromShortpublic static DscpClass fromShort(short value) Returns the DSCP class Enum corresponding to the specified short.- Parameters:
- value- the short value of the DSCP class
- Returns:
- the DSCP class Enum corresponding to the specified short
- Throws:
- IllegalArgumentException- if the short provided does not correspond to an DSCP class Enum value
 
 - 
getValuepublic short getValue() Returns the short value of this DSCP class Enum.- Returns:
- the short value of this DSCP class Enum
 
 - 
getIPPrecedencepublic IPPrecedence getIPPrecedence() Returns the corresponding IP precedence.- Returns:
- the corresponding IP precedence
 
 - 
getDropPrecedencepublic short getDropPrecedence() Returns the corresponding drop precedence.- Returns:
- the corresponding drop precedence
 
 
- 
 
-