|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.totem.domain.diffserv.MAM
public class MAM
Implementation of the MAM diffserv model. See RFC4125.
Creation date: 10/11/2006
| Method Summary | |
|---|---|
float[] |
addReservation(Domain domain,
int priority,
float bw,
float[] bc,
float[] rbwArray,
float mrbw)
Adds a reservation at a given priority to the rbw array. |
boolean |
checkModelConstraints(Domain domain,
int priority,
float bw,
float[] bc,
float[] rbw,
float mrbw)
Check that when new bandwidth will be asked for priority, constraints induced by BCM will still be satisfied. |
static MAM |
getInstance()
|
float |
getReservableBandwidth(Domain domain,
int priority,
float[] bc,
float[] rbw,
float mrbw)
Returns the reservable bandwidth at given priority level. |
float |
getReservedBandwidth(Domain domain,
int priority,
float[] bc,
float[] rbw)
Returns the reserved bandwidth at given priority level in the class type to which priority belongs. |
float |
getTotalReservedBandwidth(Domain domain,
int preemptionLevel,
float[] bc,
float[] rbw)
Returns the total reserved bandwidth among all class types at a given preemption level. |
float[] |
removeReservation(Domain domain,
int priority,
float bw,
float[] bc,
float[] rbwArray,
float mrbw)
Removes a reservation at a given priority to the rbw array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MAM getInstance()
public float getReservableBandwidth(Domain domain,
int priority,
float[] bc,
float[] rbw,
float mrbw)
getReservableBandwidth in interface DiffServModeldomain - priority - bc - rbw - mrbw -
public float getReservedBandwidth(Domain domain,
int priority,
float[] bc,
float[] rbw)
DiffServModel
getReservedBandwidth in interface DiffServModel
public float getTotalReservedBandwidth(Domain domain,
int preemptionLevel,
float[] bc,
float[] rbw)
getTotalReservedBandwidth in interface DiffServModeldomain - preemptionLevel - bc - rbw -
public boolean checkModelConstraints(Domain domain,
int priority,
float bw,
float[] bc,
float[] rbw,
float mrbw)
checkModelConstraints in interface DiffServModeldomain - priority - bw - bc - rbw - mrbw -
public float[] addReservation(Domain domain,
int priority,
float bw,
float[] bc,
float[] rbwArray,
float mrbw)
throws LinkCapacityExceededException
addReservation in interface DiffServModeldomain - priority - bw - bc - rbwArray - mrbw -
LinkCapacityExceededException - if the constraints cannot be satisfied.
public float[] removeReservation(Domain domain,
int priority,
float bw,
float[] bc,
float[] rbwArray,
float mrbw)
throws LinkCapacityExceededException
removeReservation in interface DiffServModeldomain - priority - bw - bc - rbwArray - mrbw -
LinkCapacityExceededException - if the constraints are no longer satisfied.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||