DRCL J-Sim API

drcl.intserv.scheduler
Class SpecR_DCTS

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.intserv.SpecR
          extended bydrcl.intserv.scheduler.SpecR_DCTS
All Implemented Interfaces:
java.lang.Cloneable, ObjectCloneable, ObjectDuplicable, java.io.Serializable, SpecR_Direct, SpecR_SP

public class SpecR_DCTS
extends SpecR
implements SpecR_SP, SpecR_Direct

See Also:
Serialized Form

Field Summary
 int C
           
 double CC
           
 double D
           
 
Fields inherited from class drcl.intserv.SpecR
activated, EQUAL, handle, LOOSE, TIGHT, UNCOMPARABLE, WRONGCLASS
 
Constructor Summary
SpecR_DCTS()
           
SpecR_DCTS(int c_, double d_)
           
 
Method Summary
 int compareWith(SpecR rspec_)
          Returns 1 if this > rspec; 0 if this == rspec and -1 if this < rspec.
 void duplicate(java.lang.Object source_)
          opies the content of the source_ object to this object.
 int getBuffer()
          Returns the buffer requirement for this Rspec.
 int getBW()
          Returns the bandwidth requirement for this Rspec.
 int getC()
           
 double getD()
           
 double getPriority()
           
 SpecR merge(SpecR rspec_)
           
 void perHopAdjust()
          Adjust the rspecs when backing off one hop.
 void setBuffer(int buffer_)
           
 void setBW(int bw_)
           
 void setC(int c_)
           
 void setD(double d_)
           
 java.lang.String toString()
           
 
Methods inherited from class drcl.intserv.SpecR
getActivated, getHandle, setActivated, setHandle
 
Methods inherited from class drcl.DrclObj
clone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

C

public int C

D

public double D

CC

public double CC
Constructor Detail

SpecR_DCTS

public SpecR_DCTS()

SpecR_DCTS

public SpecR_DCTS(int c_,
                  double d_)
Method Detail

setC

public void setC(int c_)

getC

public int getC()

setD

public void setD(double d_)

getD

public double getD()

getPriority

public double getPriority()
Specified by:
getPriority in interface SpecR_SP

getBuffer

public int getBuffer()
Description copied from class: SpecR
Returns the buffer requirement for this Rspec.

Specified by:
getBuffer in interface SpecR_Direct
Specified by:
getBuffer in class SpecR

getBW

public int getBW()
Description copied from class: SpecR
Returns the bandwidth requirement for this Rspec.

Specified by:
getBW in interface SpecR_Direct
Specified by:
getBW in class SpecR

setBW

public void setBW(int bw_)
Specified by:
setBW in interface SpecR_Direct

setBuffer

public void setBuffer(int buffer_)
Specified by:
setBuffer in interface SpecR_Direct

merge

public SpecR merge(SpecR rspec_)
Specified by:
merge in class SpecR

compareWith

public int compareWith(SpecR rspec_)
Description copied from class: SpecR
Returns 1 if this > rspec; 0 if this == rspec and -1 if this < rspec.

Specified by:
compareWith in class SpecR

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
Overrides:
duplicate in class DrclObj

perHopAdjust

public void perHopAdjust()
Description copied from class: SpecR
Adjust the rspecs when backing off one hop.

Specified by:
perHopAdjust in class SpecR

toString

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

DRCL J-Sim API

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