J-Sim v1.2.1-p7 API

drcl.intserv.scheduler
Class admission_GR

java.lang.Object
  extended bydrcl.DrclObj
      extended bydrcl.intserv.Admission
          extended bydrcl.intserv.scheduler.admission_GR
All Implemented Interfaces:
java.lang.Cloneable, ObjectDuplicable, java.io.Serializable

public class admission_GR
extends Admission

General Rate Admission: works with any TrafficModel and any SpecR that implements SpecR_Direct.

For path advertisement, the minimum end-to-end queueing delay is calculated using the following formula:

	buffer required at last hop = burst_ + hop * MTU
end-to-end delay = (buffer required at last hop) / minBW;

The admission installs the bandwidth and buffer specified in the rspec to the scheduler.

See Also:
SpecR, SpecR_Direct, TrafficModel, Serialized Form

Field Summary
 
Fields inherited from class drcl.intserv.Admission
scheduler
 
Constructor Summary
admission_GR()
           
 
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.
 void duplicate(java.lang.Object source_)
          opies the content of the source_ object to this object.
 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, 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_GR

public admission_GR()
Method Detail

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
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
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

reset

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

Overrides:
reset in class Admission

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 Admission

J-Sim v1.2.1-p7 API

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