DRCL J-Sim API

drcl.intserv
Class SpecR

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.intserv.SpecR
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable
Direct Known Subclasses:
SpecR_DCTS, SpecR_GR, SpecR_PTSP

public abstract class SpecR
extends DrclObj

See Also:
Serialized Form

Field Summary
 boolean activated
           
static int EQUAL
           
 int handle
           
static int LOOSE
           
static int TIGHT
           
static int UNCOMPARABLE
           
static int WRONGCLASS
           
 
Constructor Summary
SpecR()
           
 
Method Summary
abstract  int compareWith(SpecR rspec)
          Returns 1 if this > rspec; 0 if this == rspec and -1 if this < rspec.
 boolean getActivated()
           
abstract  int getBuffer()
          Returns the buffer requirement for this Rspec.
abstract  int getBW()
          Returns the bandwidth requirement for this Rspec.
 int getHandle()
           
abstract  SpecR merge(SpecR rspec_)
           
abstract  void perHopAdjust()
          Adjust the rspecs when backing off one hop.
 void setActivated(boolean v)
          A flow must be activated before its packets can be scheduled by the scheduler as QoS packets.
 void setHandle(int h)
           
 java.lang.String toString()
           
 
Methods inherited from class drcl.DrclObj
clone, duplicate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TIGHT

public static final int TIGHT
See Also:
Constant Field Values

EQUAL

public static final int EQUAL
See Also:
Constant Field Values

LOOSE

public static final int LOOSE
See Also:
Constant Field Values

UNCOMPARABLE

public static final int UNCOMPARABLE
See Also:
Constant Field Values

WRONGCLASS

public static final int WRONGCLASS
See Also:
Constant Field Values

handle

public transient int handle

activated

public transient boolean activated
Constructor Detail

SpecR

public SpecR()
Method Detail

setHandle

public void setHandle(int h)

getHandle

public int getHandle()

setActivated

public void setActivated(boolean v)
A flow must be activated before its packets can be scheduled by the scheduler as QoS packets.


getActivated

public boolean getActivated()

getBW

public abstract int getBW()
Returns the bandwidth requirement for this Rspec.


getBuffer

public abstract int getBuffer()
Returns the buffer requirement for this Rspec.


merge

public abstract SpecR merge(SpecR rspec_)

compareWith

public abstract int compareWith(SpecR rspec)
Returns 1 if this > rspec; 0 if this == rspec and -1 if this < rspec.


perHopAdjust

public abstract void perHopAdjust()
Adjust the rspecs when backing off one hop.


toString

public java.lang.String toString()
Overrides:
toString in class DrclObj

DRCL J-Sim API

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