drcl.diffserv
Class TSW_meter
java.lang.Object
|
+--drcl.DrclObj
|
+--drcl.diffserv.Meter
|
+--drcl.diffserv.TSW_meter
- All Implemented Interfaces:
- java.lang.Cloneable, DFConstants, ObjectDuplicable, java.io.Serializable
- public class TSW_meter
- extends Meter
- implements DFConstants
Time Sliding Window Meter.
Refer to "Explicit Allocation of Best Effort Packet Delivery Service"
by D. Clark and Wenjia Fang
at http://diffserv.lcs.mit.edu/Papers/exp-alloc-ddc-wf.pdf
Properities:
- Version:
- 1.0 10/26/00
- 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 |
|
Constructor Summary |
TSW_meter()
|
TSW_meter(double win_len_,
double tgrate_,
boolean wait_,
long seed_)
|
|
Method Summary |
void |
config(double tgrate_,
double win_,
boolean wait_,
long seed_)
|
void |
duplicate(java.lang.Object source_)
opies the content of the source_ object to this object. |
double |
getTargetRate()
|
boolean |
getWait()
|
double |
getWinLength()
|
java.lang.String |
info(java.lang.String prefix_)
Prints out the content of this meter. |
protected int |
measure(Packet p_,
double now_)
Returns the label for the packet based on the measurement and
the agreement of the connection the packet belongs to. |
void |
reset()
Resets this meter to be used anew. |
void |
setTargetRate(double v_)
|
void |
setWait(boolean wait_)
|
void |
setWinLength(double v_)
|
| Methods inherited from class drcl.diffserv.Meter |
info |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TSW_meter
public TSW_meter()
TSW_meter
public TSW_meter(double win_len_,
double tgrate_,
boolean wait_,
long seed_)
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 Meter
reset
public void reset()
- Description copied from class:
Meter
- Resets this meter to be used anew.
- Overrides:
reset in class Meter
setTargetRate
public void setTargetRate(double v_)
getTargetRate
public double getTargetRate()
setWinLength
public void setWinLength(double v_)
getWinLength
public double getWinLength()
setWait
public void setWait(boolean wait_)
getWait
public boolean getWait()
measure
protected int measure(Packet p_,
double now_)
- Description copied from class:
Meter
- Returns the label for the packet based on the measurement and
the agreement of the connection the packet belongs to.
- Overrides:
measure in class Meter
config
public void config(double tgrate_,
double win_,
boolean wait_,
long seed_)
info
public java.lang.String info(java.lang.String prefix_)
- Description copied from class:
Meter
- Prints out the content of this meter.
- Overrides:
info in class Meter
- Following copied from class:
drcl.diffserv.Meter
- Parameters:
prefix_ - prefix that should be prepended to each line of the result.
Copyright © 2001 - DRCL, OSU ~ Back to JavaSim Home ~