drcl.intserv
Class SpecR
java.lang.Object
|
+--drcl.DrclObj
|
+--drcl.intserv.SpecR
- All Implemented Interfaces:
- java.lang.Cloneable, ObjectDuplicable, java.io.Serializable
- Direct Known Subclasses:
- SpecR_DCTS, SpecR_GR, SpecR_PTSP
- public abstract class SpecR
- extends DrclObj
- See Also:
- Serialized Form
|
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_DATA packets. |
void |
setHandle(int h)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TIGHT
public static final int TIGHT
EQUAL
public static final int EQUAL
LOOSE
public static final int LOOSE
UNCOMPARABLE
public static final int UNCOMPARABLE
WRONGCLASS
public static final int WRONGCLASS
handle
public transient int handle
activated
public transient boolean activated
SpecR
public SpecR()
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_DATA packets.
A flow is installed by either a
Link.NEW_FLOW or a Link.MODIFY_FLOW
event during the installation, the flowspec may have already been stored
in the link, the additional flow activation is to avoid packets' being
scheduled during installation which may cause the scheduler to fail.
- See Also:
Link#NEW_FLOW,
Link#MODIFY_FLOW
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
Copyright © 2001 - DRCL, OSU ~ Back to JavaSim Home ~