Commit d2558d71 authored by Björn Richerzhagen's avatar Björn Richerzhagen
Browse files

Configuration options for 5G-Databases (still WiP)

parent 105ab085
......@@ -26,6 +26,10 @@ import de.tudarmstadt.maki.simonstrator.api.Time;
public class AccessPointSegmentDatabase
extends AbstractGridBasedTopologyDatabase {
private long bandwidthUpload = 10 * Rate.Mbit_s;
private long bandwidthDownload = 10 * Rate.Mbit_s;
public AccessPointSegmentDatabase() {
super(100, true);
}
......@@ -33,7 +37,15 @@ public class AccessPointSegmentDatabase
@Override
protected Entry createEntryFor(int segmentID, boolean isCloudlet) {
return new StaticEntry(segmentID, 0, 0, 50 * Time.MILLISECOND,
50 * Time.MILLISECOND, 10 * Rate.Mbit_s, 10 * Rate.Mbit_s);
50 * Time.MILLISECOND, bandwidthUpload, bandwidthDownload);
}
public void setBandwidthUp(long bandwidthUp) {
this.bandwidthUpload = bandwidthUp;
}
public void setBandwidthDown(long bandwidthDown) {
this.bandwidthDownload = bandwidthDown;
}
}
......@@ -95,5 +95,21 @@ public class StaticSegmentDatabase extends AbstractGridBasedTopologyDatabase {
public void setCloudletLatencyVariance(long cloudletLatencyVariance) {
this.cloudletLatencyVariance = cloudletLatencyVariance;
}
public void setBandwidthUp(long bandwidthUp) {
this.bandwidthUpload = bandwidthUp;
}
public void setBandwidthDown(long bandwidthDown) {
this.bandwidthDownload = bandwidthDown;
}
public void setCloudletBandwidthUp(long bandwidthUp) {
this.bandwidthUpload = bandwidthUp;
}
public void setCloudletBandwidthDown(long bandwidthDown) {
this.bandwidthDownload = bandwidthDown;
}
}
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