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
fa45ce0a
Commit
fa45ce0a
authored
Jan 12, 2017
by
Marc Schiller
Browse files
Added SegmentID to Visualization.
parent
dac434ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/views/visualization/world/ModelFiveGVisualization.java
View file @
fa45ce0a
...
@@ -125,10 +125,6 @@ public class ModelFiveGVisualization extends JComponent implements Visualization
...
@@ -125,10 +125,6 @@ public class ModelFiveGVisualization extends JComponent implements Visualization
continue
;
continue
;
}
}
System
.
out
.
println
(
entry
.
getLatency
(
isUpload
));
System
.
out
.
println
(
entry
.
getDropProbability
(
isUpload
));
System
.
out
.
println
(
entry
.
getBandwidth
(
isUpload
));
// TODO add checkbox for upload/download toggle?
// TODO add checkbox for upload/download toggle?
// Latency
// Latency
...
@@ -152,9 +148,10 @@ public class ModelFiveGVisualization extends JComponent implements Visualization
...
@@ -152,9 +148,10 @@ public class ModelFiveGVisualization extends JComponent implements Visualization
"D: "
+
(
int
)
(
entry
.
getDropProbability
(
isUpload
)
*
100
)
"D: "
+
(
int
)
(
entry
.
getDropProbability
(
isUpload
)
*
100
)
+
" %"
,
+
" %"
,
x
+
10
,
y
+
25
);
x
+
10
,
y
+
25
);
g2
.
drawString
(
"B
W
: "
g2
.
drawString
(
"B: "
+
(
int
)
(
entry
.
getBandwidth
(
isUpload
)
/
Rate
.
kbit_s
)
+
(
int
)
(
entry
.
getBandwidth
(
isUpload
)
/
Rate
.
kbit_s
)
+
" kBit/s"
,
x
+
10
,
y
+
35
);
+
" kBit/s"
,
x
+
10
,
y
+
35
);
g2
.
drawString
(
"S: "
+
entry
.
getSegmentID
(),
x
+
10
,
y
+
45
);
if
(!
entry
.
isAvailable
())
{
if
(!
entry
.
isAvailable
())
{
g2
.
drawString
(
"!DEAD!"
,
x
+
30
,
y
+
70
);
g2
.
drawString
(
"!DEAD!"
,
x
+
30
,
y
+
70
);
}
}
...
...
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