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
461c056b
Commit
461c056b
authored
Nov 24, 2015
by
Nils Richerzhagen
Browse files
Merge branch 'master' into 'nr/master-debug'
Merge Master into nr/master-debug See merge request !23
parents
9b550db0
88fe42d9
Changes
25
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/views/DefaultLink.java
View file @
461c056b
...
...
@@ -22,6 +22,7 @@ package de.tud.kom.p2psim.impl.topology.views;
import
de.tud.kom.p2psim.api.linklayer.mac.Link
;
import
de.tud.kom.p2psim.api.linklayer.mac.MacAddress
;
import
de.tudarmstadt.maki.simonstrator.api.Rate
;
/**
* A very basic Link-Implementation. The idea behind a link is that the Link
...
...
@@ -60,7 +61,7 @@ public class DefaultLink implements Link {
* @param isConnected
* @param dropProbability
* @param bandwidth
* in b
yte/s
* in b
it/s, see {@link Rate}
* @param latency
* @param mtu
*/
...
...
src/de/tud/kom/p2psim/impl/topology/views/FiveGTopologyView.java
View file @
461c056b
...
...
@@ -119,6 +119,7 @@ public class FiveGTopologyView extends AbstractTopologyView<CellLink> {
*/
public
FiveGTopologyView
(
PhyType
phy
)
{
super
(
phy
,
true
);
setHasRealLinkLayer
(
false
);
}
@XMLConfigurableConstructor
({
"phy"
})
...
...
@@ -194,13 +195,6 @@ public class FiveGTopologyView extends AbstractTopologyView<CellLink> {
link
.
setLinkData
(
database
.
getEntryFor
(
segId
,
link
.
isCloudlet
()),
null
);
}
if
(
link
.
getSegmentId
()
!=
segId
||
(
link
.
supportsAccessPoints
()
&&
link
.
getApSegmentId
()
!=
apSegId
))
{
// Update
link
.
setLinkData
(
database
.
getEntryFor
(
segId
,
link
.
isCloudlet
()),
database
.
getEntryFor
(
apSegId
,
link
.
isCloudlet
()));
}
}
@Override
...
...
src/de/tud/kom/p2psim/impl/topology/views/RangedTopologyView.java
View file @
461c056b
...
...
@@ -100,7 +100,7 @@ public class RangedTopologyView extends AbstractTopologyView<RangedLink> {
public
RangedTopologyView
(
PhyType
phy
,
double
range
)
{
super
(
phy
,
true
);
this
.
range
=
range
;
setHasRealLinkLayer
(
true
);
LiveMonitoring
.
addProgressValueIfNotThere
(
new
DijkstraMonitor
());
}
...
...
src/de/tud/kom/p2psim/impl/topology/views/VisualizationTopologyView.java
View file @
461c056b
...
...
@@ -680,4 +680,9 @@ public class VisualizationTopologyView extends JFrame implements TopologyView,
throw
new
NotSupportedException
();
}
@Override
public
boolean
hasRealLinkLayer
()
{
throw
new
NotSupportedException
();
}
}
src/de/tud/kom/p2psim/impl/topology/views/fiveg/StaticSegmentDatabase.java
View file @
461c056b
...
...
@@ -23,6 +23,7 @@ package de.tud.kom.p2psim.impl.topology.views.fiveg;
import
java.util.Random
;
import
de.tudarmstadt.maki.simonstrator.api.Randoms
;
import
de.tudarmstadt.maki.simonstrator.api.Rate
;
import
de.tudarmstadt.maki.simonstrator.api.Time
;
/**
...
...
@@ -39,6 +40,14 @@ public class StaticSegmentDatabase extends AbstractGridBasedTopologyDatabase {
private
long
latencyVariance
=
50
*
Time
.
MILLISECOND
;
private
long
bandwidthUpload
=
1
*
Rate
.
Mbit_s
;
private
long
bandwidthDownload
=
16
*
Rate
.
Mbit_s
;
private
long
cloudletBandwidthUpload
=
4
*
Rate
.
Mbit_s
;
private
long
cloudletBandwidthDownload
=
16
*
Rate
.
Mbit_s
;
private
long
cloudletLatency
=
50
*
Time
.
MILLISECOND
;
private
long
cloudletLatencyVariance
=
10
*
Time
.
MILLISECOND
;
...
...
@@ -56,13 +65,14 @@ public class StaticSegmentDatabase extends AbstractGridBasedTopologyDatabase {
*
(
long
)
(
rnd
.
nextDouble
()
*
cloudletLatencyVariance
);
assert
latency
>
0
;
return
new
StaticEntry
(
segmentID
,
dropProbability
,
dropProbability
,
latency
,
latency
,
1000000
,
1000000
);
latency
,
latency
,
cloudletBandwidthUpload
,
cloudletBandwidthDownload
);
}
else
{
long
latency
=
this
.
latency
+
(
rnd
.
nextBoolean
()
?
+
1
:
-
1
)
*
(
long
)
(
rnd
.
nextDouble
()
*
latencyVariance
);
assert
latency
>
0
;
return
new
StaticEntry
(
segmentID
,
dropProbability
,
dropProbability
,
latency
,
latency
,
1000000
,
1000000
);
latency
,
latency
,
bandwidthUpload
,
bandwidthDownload
);
}
}
...
...
Prev
1
2
Next
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