drcl.diffserv
Class Marker
java.lang.Object
|
+--drcl.DrclObj
|
+--drcl.diffserv.Marker
- All Implemented Interfaces:
- java.lang.Cloneable, DFConstants, ObjectDuplicable, java.io.Serializable
- public class Marker
- extends DrclObj
- implements DFConstants
This class defines a marker. The exact operation by marker is decided by its
operation mode and each packet's label.
- Version:
- 1.0 10/26/2000
- Author:
- Rong Zheng (zhengr@ee.eng.ohio-state.edu)
- See Also:
- Serialized Form
| Fields inherited from interface drcl.diffserv.DFConstants |
_AF_CLASSES, _SINGLE_RATE, _TWO_RATE, AF11, AF11_TOS, AF12, AF12_TOS, AF13, AF13_TOS, AF1x, AF1x_TOS, AF21, AF21_TOS, AF22, AF22_TOS, AF23, AF23_TOS, AF2x, AF2x_TOS, AF31, AF31_TOS, AF32, AF32_TOS, AF33, AF33_TOS, AF3x, AF3x_TOS, BE, BE_TOS, DFCLASS_MASK, DSCPMask, DSCPShift, EF, EF_TOS, GREEN, IN_PROFILE, MODES, OUT_PROFILE, RED, SINGLE_RATE, TWO_RATE, YELLOW |
|
Method Summary |
void |
duplicate(java.lang.Object source_)
opies the content of the source_ object to this object. |
java.lang.String |
getMode()
Returns the operation mode of this marker. |
java.lang.String |
info()
Prints out the content of this marker. |
java.lang.String |
info(java.lang.String prefix_)
Prints out the content of this marker. |
protected boolean |
markPacket(InetPacket p_,
int label)
Marks in the DSCP part of ToS in the packet header with the specified lable. |
void |
reset()
Resets this marker. |
void |
setMode(java.lang.String mode_)
Sets the operation mode of this marker. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
COLOR_BLIND
public static java.lang.String COLOR_BLIND
COLOR_AWARE
public static java.lang.String COLOR_AWARE
POLICER
public static java.lang.String POLICER
SET_EF
public static java.lang.String SET_EF
SET_AF11
public static java.lang.String SET_AF11
DROPPER
public static java.lang.String DROPPER
BY_PASS
public static java.lang.String BY_PASS
Marker
public Marker()
Marker
public Marker(java.lang.String mode_)
reset
public void reset()
- Resets this marker.
duplicate
public void duplicate(java.lang.Object source_)
- Description copied from class:
DrclObj
- opies the content of the
source_ object to this object.
he subclass must implement this method to realize DrclObj.clone().
- Overrides:
duplicate in class DrclObj
info
public java.lang.String info()
- Prints out the content of this marker.
info
public java.lang.String info(java.lang.String prefix_)
- Prints out the content of this marker.
- Parameters:
prefix_ - prefix that should be prepended to each line of the result.
setMode
public void setMode(java.lang.String mode_)
- Sets the operation mode of this marker.
getMode
public java.lang.String getMode()
- Returns the operation mode of this marker.
markPacket
protected boolean markPacket(InetPacket p_,
int label)
- Marks in the DSCP part of ToS in the packet header with the specified lable.
- Returns:
- false if caller should drop the packet.
Copyright © 2001 - DRCL, OSU ~ Back to JavaSim Home ~