jtc
Class QDisc

java.lang.Object
  |
  +--jtc.QDisc
Direct Known Subclasses:
BFifoQDisc, jtc.QDiscWithClass, REDQDisc

public abstract class QDisc
extends java.lang.Object

Abstract class that represents a queueing discipline.


Field Summary
protected  java.lang.String device
          The device the qdisc is attached to.
protected  int estInterval
          estimator interval (TBD: What's it for?)
protected  int estTimer
          time-constant (TBD: What's it?)
protected  boolean ingress
          are we attached to the ingress queue?
protected  short majorHandle
          A handle has the following format: MAJOR:MINOR.
protected static short minorHandle
          A handle has the following format: MAJOR:MINOR.
protected  TCClass parent
          parent class the qdisc is attached to
 
Constructor Summary
QDisc()
           
 
Method Summary
 java.lang.String getDevice()
          Get the name of the device to which the qdisc is attached to.
protected  java.lang.String getTC()
          Get a string representation which we can use in the toString() methods in the derived classes
 short newFilterMinor()
          Get a new minor number for filters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minorHandle

protected static final short minorHandle
A handle has the following format: MAJOR:MINOR. Usually, qdiscs do not have a minor handle so it defaults to 0.

majorHandle

protected short majorHandle
A handle has the following format: MAJOR:MINOR. Usually, qdiscs do not have a minor handle so it defaults to 0.

device

protected java.lang.String device
The device the qdisc is attached to. (i.e. eth0)

estInterval

protected int estInterval
estimator interval (TBD: What's it for?)

estTimer

protected int estTimer
time-constant (TBD: What's it?)

ingress

protected boolean ingress
are we attached to the ingress queue?

parent

protected TCClass parent
parent class the qdisc is attached to
Constructor Detail

QDisc

public QDisc()
Method Detail

getDevice

public java.lang.String getDevice()
Get the name of the device to which the qdisc is attached to. It may be attached to it directly or via any parents.
Returns:
the device to which this qdisc is attached to

getTC

protected java.lang.String getTC()
Get a string representation which we can use in the toString() methods in the derived classes
Returns:
code for tcd

newFilterMinor

public short newFilterMinor()
Get a new minor number for filters.
Returns:
unused minor number which can be used by a new filter