Cisco Systems, Inc.

com.pcube.apps.engage.policy
Class CoS

java.lang.Object
  extended by com.pcube.apps.engage.policy.CoS
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class CoS
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

Class of service (CoS) defines the priority the system will grant the flow in regard to other flows. There are 6 classes: BE, AF1, AF2, AF3, AF4 and EF.
All of the CoS are static singleton objects.

See Also:
Serialized Form

Field Summary
static CoS AF1
          "Assured Forwarding 1" Class of Service.
static CoS AF2
          "Assured Forwarding 2" Class of Service.
static CoS AF3
          "Assured Forwarding 2" Class of Service.
static CoS AF4
          "Assured Forwarding 2" Class of Service.
static CoS BE
          "Best Effort" Class of Service.
static java.lang.String[] CoS_List
          A static list of the Classes of Service names.
static CoS EF
          "Expedited Forwarding" Class of Service.
static java.util.List VALUES
          A static list of the Classes of Service.
 
Method Summary
 int compareTo(java.lang.Object o)
          Equating an object with this object.
static CoS getCoS(int index)
          Gets the Classes of Service by its index.
static CoS getCoS(java.lang.String name)
          Gets the Classes of Service by its name.
 int getIntValue()
          Gets the logical value if the CoS , which combines along with the assurance level the QoS value.
 java.lang.String toString()
          Gets the string representation of this CoS
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BE

public static final CoS BE
"Best Effort" Class of Service.


AF1

public static final CoS AF1
"Assured Forwarding 1" Class of Service.


AF2

public static final CoS AF2
"Assured Forwarding 2" Class of Service.


AF3

public static final CoS AF3
"Assured Forwarding 2" Class of Service.


AF4

public static final CoS AF4
"Assured Forwarding 2" Class of Service.


EF

public static final CoS EF
"Expedited Forwarding" Class of Service.


CoS_List

public static final java.lang.String[] CoS_List
A static list of the Classes of Service names.


VALUES

public static final java.util.List VALUES
A static list of the Classes of Service.

Method Detail

toString

public java.lang.String toString()
Gets the string representation of this CoS

Overrides:
toString in class java.lang.Object
Returns:
the string representation of this CoS

compareTo

public int compareTo(java.lang.Object o)
Equating an object with this object. The two objects are considerd equal only if all of their parameters equal in value and in order of apperance, such as is the case in arrays.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - the object which is compared to this object
Returns:
0 if the object and this object are equal, 1 otherwise

getCoS

public static CoS getCoS(java.lang.String name)
                  throws ItemNotFoundException
Gets the Classes of Service by its name.

Parameters:
name - the CoS name
Returns:
the CoS
Throws:
ItemNotFoundException - if there is no such Classes of Service with the desired name

getCoS

public static CoS getCoS(int index)
Gets the Classes of Service by its index.

Parameters:
index - the index of the
Returns:
the CoS

getIntValue

public int getIntValue()
Gets the logical value if the CoS , which combines along with the assurance level the QoS value.

Returns:
the CoS logical value.

Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.