|
||||||||||
| 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.model.impl.DiffServBandwidthManagement
be.ac.ulg.montefiore.run.totem.domain.model.impl.DiffServBandwidthManagementSnapshot
public class DiffServBandwidthManagementSnapshot
This class implements a snapshot of the manages DiffServBandwidthManagement. Adding or removing lsps do not change
change the reserved bandwidth on the links. It also maintain a list of lsp traversing every link of the domain.
This implementation uses preemption. it also uses Diffserv model to update link reservable bandwidth.
Creation date: 14/12/2007
| Field Summary |
|---|
| Fields inherited from class be.ac.ulg.montefiore.run.totem.domain.model.impl.DiffServBandwidthManagement |
|---|
domain |
| Constructor Summary | |
|---|---|
DiffServBandwidthManagementSnapshot(Domain domain)
Create a new DiffServBandwidthManagement object to use with the given domain. |
|
| Method Summary | |
|---|---|
void |
addLsp(Lsp lsp)
Add the reservation of this LSPs to the temporary data maintained by this class. |
protected void |
addReservation(Link link,
float bw,
int prio)
Add the reservation to the data maintained by this class. |
protected java.util.List<Lsp> |
getLspsOnLink(Link link)
Returns the list of LSPs traversing the given link. |
protected float[] |
getRbw(Link link)
Return the rbw array associated with the given link. |
protected float |
getReservedBandwidth(Link link)
returns the total resserved badnwidth among all classtypes. |
void |
removeLsp(Lsp lsp)
Removes the reservation associated with the LSP in the temporary data maintained by this class. |
protected void |
removeReservation(Link link,
float bw,
int prio)
Remove the reservation from the data maintained by this class. |
| Methods inherited from class be.ac.ulg.montefiore.run.totem.domain.model.impl.DiffServBandwidthManagement |
|---|
getPreemptList, getReservableBandwidth, getSnapshot, init, lspCanBeEstablished, recomputeRbw, usePreemption |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiffServBandwidthManagementSnapshot(Domain domain)
domain - | Method Detail |
|---|
protected float[] getRbw(Link link)
getRbw in class DiffServBandwidthManagementlink -
protected java.util.List<Lsp> getLspsOnLink(Link link)
addLsp(be.ac.ulg.montefiore.run.totem.domain.model.Lsp) and
removeLsp(be.ac.ulg.montefiore.run.totem.domain.model.Lsp).
link -
protected float getReservedBandwidth(Link link)
getReservedBandwidth in class DiffServBandwidthManagement
protected void addReservation(Link link,
float bw,
int prio)
throws LinkCapacityExceededException
addReservation in class DiffServBandwidthManagementlink - bw - prio -
LinkCapacityExceededException
protected void removeReservation(Link link,
float bw,
int prio)
throws LinkCapacityExceededException
removeReservation in class DiffServBandwidthManagementlink - bw - prio -
LinkCapacityExceededException
public void addLsp(Lsp lsp)
throws LinkCapacityExceededException
addLsp in interface BandwidthManagementaddLsp in class DiffServBandwidthManagementlsp -
LinkCapacityExceededException
public void removeLsp(Lsp lsp)
throws LinkCapacityExceededException
removeLsp in interface BandwidthManagementremoveLsp in class DiffServBandwidthManagementlsp -
LinkCapacityExceededException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||