be.ac.ulg.montefiore.run.totem.domain.diffserv
Interface DiffServModel

All Known Implementing Classes:
MAMModel, RDMModel

public interface DiffServModel

Generic diffserv model interface

Author:
Olivier Delcourt (delcourt@run.montefiore.ulg.ac.be), Gael Monfort (monfort@run.montefiore.ulg.ac.be)

Method Summary
 boolean checkConstraints(Domain domain, float[] bc, float mrbw)
          Check that the given constraints are set correctly for the given domain (right number of constraints, ...)
 float[] getReservableBandwidth(Domain domain, float[] bc, float[] reservedBwArray, float mrbw)
          Returns an array representing the reservable bandwidth at each of the priority level.
 float getReservableBandwidth(Domain domain, int priority, float[] bc, float[] reservedBwArray, float mrbw)
          Returns the reservable bandwidth at a given priority level given the constraints and the reserved bandwidth.
 

Method Detail

checkConstraints

boolean checkConstraints(Domain domain,
                         float[] bc,
                         float mrbw)
Check that the given constraints are set correctly for the given domain (right number of constraints, ...)

Parameters:
domain -
bc - Array of bandwidth constraints, indexed by the constraint number
mrbw - Maximum reservable bandwidth
Returns:
true if the constraints are satisfied, false otherwise

getReservableBandwidth

float[] getReservableBandwidth(Domain domain,
                               float[] bc,
                               float[] reservedBwArray,
                               float mrbw)
Returns an array representing the reservable bandwidth at each of the priority level. (The array to be distributed by the IGP protocol)

Parameters:
domain -
bc - Array of bandwidth constraints, indexed by the constraint number
reservedBwArray - Array representing the reserved bandwidth at each of the priority level
mrbw - Maximum reservable bandwidth
Returns:

getReservableBandwidth

float getReservableBandwidth(Domain domain,
                             int priority,
                             float[] bc,
                             float[] reservedBwArray,
                             float mrbw)
Returns the reservable bandwidth at a given priority level given the constraints and the reserved bandwidth.

Parameters:
domain -
priority -
bc - Array of bandwidth constraints, indexed by the constraint number
reservedBwArray - Array representing the reserved bandwidth at each of the priority level
mrbw - Maximum reservable bandwidth
Returns:


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.