Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
d2558d71
Commit
d2558d71
authored
Nov 26, 2015
by
Björn Richerzhagen
Browse files
Configuration options for 5G-Databases (still WiP)
parent
105ab085
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/views/fiveg/AccessPointSegmentDatabase.java
View file @
d2558d71
...
...
@@ -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
;
}
}
src/de/tud/kom/p2psim/impl/topology/views/fiveg/StaticSegmentDatabase.java
View file @
d2558d71
...
...
@@ -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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment