J-Sim v1.2.1-p7 API

drcl.diffserv
Class TSW_meter

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.diffserv.Meter
          extended bydrcl.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:

See Also:
Serialized Form

Field Summary
 
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 drcl.DrclObj
clone, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TSW_meter

public TSW_meter()

TSW_meter

public TSW_meter(double win_len_,
                 double tgrate_,
                 boolean wait_,
                 long seed_)
Method Detail

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().

Specified by:
duplicate in interface ObjectDuplicable
Specified by:
duplicate in class Meter

reset

public void reset()
Description copied from class: Meter
Resets this meter to be used anew.

Specified by:
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.

Specified by:
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.

Specified by:
info in class Meter
Parameters:
prefix_ - prefix that should be prepended to each line of the result.

J-Sim v1.2.1-p7 API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~