Commit 26793a85 authored by Simon Luser's avatar Simon Luser
Browse files

fixed comments

parent 5562c3fe
......@@ -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
......
......@@ -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 = {
......
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