drcl.intserv.scheduler
Class admission_DCTS
java.lang.Object
|
+--drcl.DrclObj
|
+--drcl.intserv.Admission
|
+--drcl.intserv.scheduler.admission_DCTS
- All Implemented Interfaces:
- java.lang.Cloneable, ObjectDuplicable, java.io.Serializable
- public class admission_DCTS
- extends Admission
Works with TrafficModel that implements TrafficPeriodic,
SpecR_DCTS and traffic shaper for traffic_CDSmooth.
The admission test is the non-preemptive version.
- See Also:
SpecR_DCTS,
TrafficModel,
TrafficPeriodic,
traffic_CDSmooth, Serialized Form
|
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. |
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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
admission_DCTS
public admission_DCTS()
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
Copyright © 2001 - DRCL, OSU ~ Back to JavaSim Home ~