Commit 0900a883 authored by Julian Zobel's avatar Julian Zobel
Browse files

Allow to change the bandwidth of a PHY by config

parent 0b56ab7f
......@@ -112,6 +112,12 @@ public class RangedTopologyView extends AbstractTopologyView<RangedLink> {
public RangedTopologyView(String phy, double range) {
this(PhyType.valueOf(phy), range);
}
@XMLConfigurableConstructor({ "phy", "range", "rawBandwidth"})
public RangedTopologyView(String phy, double range, long rawBandwidth) {
this(PhyType.valueOf(phy), range);
this.getPhyType().setBandwdith(rawBandwidth);
}
@Override
protected void addedMac(MacLayer mac) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment