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
26793a85
Commit
26793a85
authored
Aug 25, 2017
by
Simon Luser
Browse files
fixed comments
parent
5562c3fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/analyzer/metric/output/MetricOutputLivePlot.java
View file @
26793a85
...
...
@@ -31,7 +31,6 @@ import de.tud.kom.p2psim.impl.topology.views.visualization.ui.MetricPlotAdapter;
import
de.tud.kom.p2psim.impl.topology.views.visualization.ui.PlottingView
;
import
de.tudarmstadt.maki.simonstrator.api.Event
;
import
de.tudarmstadt.maki.simonstrator.api.EventHandler
;
import
de.tudarmstadt.maki.simonstrator.api.MessageWithDisasterType
;
import
de.tudarmstadt.maki.simonstrator.api.MessageWithDisasterType.MessageDisasterType
;
import
de.tudarmstadt.maki.simonstrator.api.common.metric.Metric
;
import
de.tudarmstadt.maki.simonstrator.api.util.XMLConfigurableConstructor
;
...
...
@@ -44,6 +43,13 @@ import de.tudarmstadt.maki.simonstrator.api.util.XMLConfigurableConstructor;
public
class
MetricOutputLivePlot
extends
AbstractOutput
implements
EventHandler
{
/**
* appended in metric description to separate from normal metrics, these
* metrics have a {@link MessageDisasterType} to plot, which are visualized
* in only one graph.
*/
public
static
final
String
DRAW_ONCE
=
"_DRAW_ONCE_"
;
private
List
<
MetricPlotAdapter
>
charts
=
new
LinkedList
<
MetricPlotAdapter
>();
protected
int
upperPercentile
=
-
1
;
...
...
@@ -77,7 +83,7 @@ public class MetricOutputLivePlot extends AbstractOutput implements
// extended by choosing disaster adapter, if it is a disaster metric
boolean
isMessageDisasterMetric
=
false
;
for
(
MessageDisasterType
type
:
MessageDisasterType
.
values
())
if
(
metric
.
getName
().
contains
(
MessageWithDisasterType
.
DRAW_ONCE
)
if
(
metric
.
getName
().
contains
(
DRAW_ONCE
)
&&
metric
.
getName
().
contains
(
type
.
name
()))
{
isMessageDisasterMetric
=
true
;
break
;
...
...
@@ -88,7 +94,7 @@ public class MetricOutputLivePlot extends AbstractOutput implements
MetricPlotAdapter
mca
;
if
(
metric
.
getName
().
contains
(
MessageWithDisasterType
.
DRAW_ONCE
))
if
(
metric
.
getName
().
contains
(
DRAW_ONCE
))
mca
=
new
DisasterMetricChartAdapter
(
metric
,
pView
,
maxItemCount
);
else
...
...
src/de/tud/kom/p2psim/impl/util/db/metric/MeasurementStatisticMsgType.java
View file @
26793a85
...
...
@@ -35,11 +35,9 @@ import org.apache.commons.math.stat.descriptive.DescriptiveStatistics;
import
de.tudarmstadt.maki.simonstrator.api.MessageWithDisasterType.MessageDisasterType
;
/**
* adapted {@link MeasurementStatistic} with also stores the types
*
* Statistical representation of a series of measurements in the database,
* intended to capture all relevant metrics for boxplots.
*
* @author Bjoern Richerzhagen
* @author Simon Luser
*/
@Entity
@Table
(
name
=
"measurements_statistics_msg"
,
indexes
=
{
...
...
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