DRCL JavaSim API

drcl.intserv.scheduler
Class admission_PTSP

java.lang.Object
  |
  +--drcl.DrclObj
        |
        +--drcl.intserv.Admission
              |
              +--drcl.intserv.scheduler.admission_PTSP
All Implemented Interfaces:
java.lang.Cloneable, ObjectDuplicable, java.io.Serializable

public class admission_PTSP
extends Admission

Works with TrafficModel that implements TrafficPeriodic, SpecR_PTSP and traffic shaper for traffic_Periodic. The admission test is conducted by calculating the minimum worst-case traversal time (non-preemptive version).

See Also:
SpecR_PTSP, TrafficModel, TrafficPeriodic, traffic_Periodic, Serialized Form

Fields inherited from class drcl.intserv.Admission
scheduler
 
Constructor Summary
admission_PTSP()
           
 
Method Summary
 SpecAd advertisement(SpecAd adspec_)
          Returns a new Adspec that summarizes the QoS of the path from the sender up to the current hop.
 double MWTT(int handle_, SpecR_PTSP rspec_)
           
 SpecFlow removeFlowspec(int handle_)
          Removes an installed flowspec by its handle.
 void reset()
          Resets to the initial state.
 SpecFlow setFlowspec(int handle_, long[] tos_, long[] tosmask_, SpecFlow fspec_)
          Installs a new flowspec or changes an existing flowspec with the specified handle.
 
Methods inherited from class drcl.intserv.Admission
addFlowspec, addFlowspec, addFlowspec, duplicate, getScheduler, info, removeAllFlowspecs
 
Methods inherited from class drcl.DrclObj
clone, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

admission_PTSP

public admission_PTSP()
Method Detail

reset

public void reset()
Description copied from class: Admission
Resets to the initial state.
Overrides:
reset in class Admission

setFlowspec

public SpecFlow setFlowspec(int handle_,
                            long[] tos_,
                            long[] tosmask_,
                            SpecFlow fspec_)
Description copied from class: Admission
Installs a new flowspec or changes an existing flowspec with the specified handle. This method checks if the available resources (buffer and bandwidth) are sufficient for the flow. It returns null if the flow passes; returns a suggested flowspec if failed. Also, the "handle" field in fspec_ is set to either a valid value (success) or a negative value (failure). A subclass may need to override this method to create its own data structure for the successfully installed flow.
Overrides:
setFlowspec in class Admission
Following copied from class: drcl.intserv.Admission
Parameters:
handle_ - the handle assigned to this flow, -1 if installing a new flow.
tos_ - ID's of flows that share the flowspec.
tosmask_ - masks of flow ID's.
fspec_ - the flowspec.
Returns:
null if the installation succeeds or a suggested flowspec if failed.

removeFlowspec

public SpecFlow removeFlowspec(int handle_)
Description copied from class: Admission
Removes an installed flowspec by its handle. This method releases the resources (buffer and bandwidth) reserved for the flow. A subclass may need to override this method to further release any data structure allocated for the flow.
Overrides:
removeFlowspec in class Admission
Following copied from class: drcl.intserv.Admission
Returns:
the removed flowspec.

advertisement

public SpecAd advertisement(SpecAd adspec_)
Description copied from class: Admission
Returns a new Adspec that summarizes the QoS of the path from the sender up to the current hop. Specifically, this method updates hop, packet loss rate, MTU, propagation delay and bandwidth. Subclasses should override this method to update end-to-end delay and jitter.
Overrides:
advertisement in class Admission

MWTT

public double MWTT(int handle_,
                   SpecR_PTSP rspec_)

DRCL JavaSim API

Copyright © 2001 - DRCL, OSU     ~ Back to JavaSim Home ~