J-Sim v1.2.1-p7 API

drcl.intserv.scheduler
Class SpecR_PTSP

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

public class SpecR_PTSP
extends SpecR
implements SpecR_SP, SpecR_Direct

Periodic-task static-priority Rspec.

See Also:
Serialized Form

Field Summary
 int C
           
 double CC
           
 double D
           
 double P
           
 double priority
           
 
Fields inherited from class drcl.intserv.SpecR
activated, EQUAL, handle, LOOSE, TIGHT, UNCOMPARABLE, WRONGCLASS
 
Constructor Summary
SpecR_PTSP()
           
SpecR_PTSP(int c_, double p_, 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 getMaxAllowableDelay()
           
 double getPeriod()
           
 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 setMaxAllowableDelay(double d_)
           
 void setPeriod(double p_)
           
 void setPriority(double p_)
           
 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

C

public int C

P

public double P

D

public double D

priority

public double priority

CC

public double CC
Constructor Detail

SpecR_PTSP

public SpecR_PTSP()

SpecR_PTSP

public SpecR_PTSP(int c_,
                  double p_,
                  double d_)
Method Detail

setPeriod

public void setPeriod(double p_)

getPeriod

public double getPeriod()

setC

public void setC(int c_)

getC

public int getC()

setMaxAllowableDelay

public void setMaxAllowableDelay(double d_)

getMaxAllowableDelay

public double getMaxAllowableDelay()

setPriority

public void setPriority(double p_)

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

setBuffer

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

setBW

public void setBW(int bw_)
Specified by:
setBW 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

J-Sim v1.2.1-p7 API

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