11 private readonly
string spanColor;
22 this.spanColor =
"Blue";
44 this.spanColor = SpanColor;
53 if (Record.
Mean.HasValue)
58 if (Record.
Min.HasValue && Record.
Max.HasValue)
62 this.min =
new Series(
"Min" + this.
Index.ToString());
63 this.max =
new Series(
"Max" + this.
Index.ToString());
66 this.min.
Add(Record.
Min.Value);
67 this.min.
Add(Record.
Min.Value);
69 this.max.
Add(Record.
Max.Value);
70 this.max.
Add(Record.
Max.Value);
73 else if (Record.
Count > 0)
87 if (!(this.min is
null))
109 for (i = 1; i < this.
Index; i++)
112 this.
graph.Append(
'+');
114 this.
graph.Append(
"polygon2d(join(x");
115 this.
graph.Append(i.ToString());
116 this.
graph.Append(
",Reverse(x");
117 this.
graph.Append(i.ToString());
118 this.
graph.Append(
")),join(Min");
119 this.
graph.Append(i.ToString());
120 this.
graph.Append(
",Reverse(Max");
121 this.
graph.Append(i.ToString());
122 this.
graph.Append(
")),alpha(\"");
123 this.
graph.Append(this.spanColor);
124 this.
graph.Append(
"\",16))");
127 for (i = 1; i < this.
Index; i++)
129 this.
graph.Append(
"+plot2dline(x");
130 this.
graph.Append(i.ToString());
131 this.
graph.Append(
",Min");
132 this.
graph.Append(i.ToString());
133 this.
graph.Append(
",alpha(\"");
134 this.
graph.Append(this.spanColor);
135 this.
graph.Append(
"\",32))");
136 this.
graph.Append(
"+plot2dline(x");
137 this.
graph.Append(i.ToString());
138 this.
graph.Append(
",Max");
139 this.
graph.Append(i.ToString());
140 this.
graph.Append(
",alpha(\"");
141 this.
graph.Append(this.spanColor);
142 this.
graph.Append(
"\",32))");
146 this.
graph.Append(
'+');
148 return base.GetPlotScript();
Root node of a simulation model
double GetStopTime(Statistic Record)
Gets the stop time of a statistic.
double GetStartTime(Statistic Record)
Gets the start time of a statistic.
void AddPoint(double X, double Y)
Adds a point to the graph.
int Index
Current section index.
readonly StringBuilder graph
Graph being built.
Plots a line graph with min-max span
override void Break()
Breaks the graph.
PlotLineSpan(Model Model, string Color, string SpanColor)
Plots a line graph with min-max span
override void Add(Statistic Record)
Adds a statistic to the plot.
PlotLineSpan(Model Model, string Color)
Plots a line graph with min-max span
override string GetPlotScript()
Gets the plot script
PlotLineSpan(Model Model)
Plots a line graph with min-max span
Represents a data series.
string EndSeries()
Ends the series.
void Add(double Value)
Adds a value to the series.
Represents collected statistical information from a small portion of time.
double? Min
Smallest value
long Count
Number of events