
es.tid.tedb.elements.Bandwidth Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of topology Show documentation
Show all versions of topology Show documentation
Traffic Engineering Database, BGP-LS peer, Topology Module
The newest version!
package es.tid.tedb.elements;
public class Bandwidth {
double maxBandwidth;
double unreservedBw;
public Bandwidth (double initBandwidth){
maxBandwidth = initBandwidth;
unreservedBw = initBandwidth;
}
public Bandwidth (double max, double unresv){
maxBandwidth = max;
unreservedBw = unresv;
}
public String toString(){
return "Unreserved Bw = " + unreservedBw + ", Max Bandwidth = " + maxBandwidth;
}
/**
* @return the maxBandwidth
*/
public double getMaxBandwidth() {
return maxBandwidth;
}
/**
* @param maxBandwidth the maxBandwidth to set
*/
public void setMaxBandwidth(double maxBandwidth) {
this.maxBandwidth = maxBandwidth;
}
/**
* @return the unreservedBw
*/
public double getUnreservedBw() {
return unreservedBw;
}
/**
* @param unreservedBw the unreservedBw to set
*/
public void setUnreservedBw(double unreservedBw) {
this.unreservedBw = unreservedBw;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy