
es.tid.vntm.topology.elements.Bandwidth Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of network-emulator Show documentation
Show all versions of network-emulator Show documentation
Emulator of GMPLS-controlled transport Network
The newest version!
package es.tid.vntm.topology.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