NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Graph.DispersionGraph Class Reference

A dispersion graph contains an series of offsets and jitter values together with a time coordinate. More...

Inheritance diagram for Ntp.Analyzer.Graph.DispersionGraph:
Collaboration diagram for Ntp.Analyzer.Graph.DispersionGraph:

Protected Member Functions

 DispersionGraph (IDispersionGraphConfiguration configuration)
 
override void AddPlots ()
 
- Protected Member Functions inherited from Ntp.Analyzer.Graph.GraphBase
 GraphBase (IGraphBaseConfiguration baseConfig)
 
abstract void LoadData ()
 
virtual void PreRender ()
 
LinePlot SetupPlot (string name, Color color, IList time, IList data)
 

Protected Attributes

readonly List< double > Jitter
 
readonly List< double > Offset
 
readonly List< DateTime > Time
 
- Protected Attributes inherited from Ntp.Analyzer.Graph.GraphBase
TimeSpan GraphTimeSpan => new TimeSpan(baseConfig.Timespan, 0, 0, 0)
 

Private Attributes

readonly IDispersionGraphConfiguration config
 

Additional Inherited Members

- Public Member Functions inherited from Ntp.Analyzer.Graph.GraphBase
Stream Generate ()
 
Stream Render ()
 
- Public Attributes inherited from Ntp.Analyzer.Graph.GraphBase
IEnumerable< StreamDestinationDestinations => destinations
 
string ImageFileExtension => "png"
 
- Properties inherited from Ntp.Analyzer.Graph.GraphBase
PlotSurface2D Surface [get, private set]
 
abstract string YLabel [get]
 
- Properties inherited from Ntp.Analyzer.Export.IStreamGenerator
IEnumerable< StreamDestinationDestinations [get]
 

Detailed Description

A dispersion graph contains an series of offsets and jitter values together with a time coordinate.

Definition at line 33 of file DispersionGraph.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Graph.DispersionGraph.DispersionGraph ( IDispersionGraphConfiguration  configuration)
inlineprotected

Definition at line 35 of file DispersionGraph.cs.

36  : base(configuration)
37  {
38  config = configuration;
39  Time = new List<DateTime>();
40  Offset = new List<double>();
41  Jitter = new List<double>();
42  }
readonly List< double > Jitter
readonly IDispersionGraphConfiguration config
readonly List< DateTime > Time
readonly List< double > Offset

Member Function Documentation

override void Ntp.Analyzer.Graph.DispersionGraph.AddPlots ( )
inlineprotectedvirtual

Implements Ntp.Analyzer.Graph.GraphBase.

Reimplemented in Ntp.Analyzer.Graph.PeerGraph, and Ntp.Analyzer.Graph.HostGraph.

Definition at line 50 of file DispersionGraph.cs.

51  {
52  var offsetPlot = SetupPlot("Offset", Color.Red, Time, Offset);
53  var jitterPlot = SetupPlot("Jitter", Color.Blue, Time, Jitter);
54 
55  if (config.Jitter.HasValue)
56  Surface.Add(jitterPlot, PlotSurface2D.XAxisPosition.Bottom, PlotSurface2D.YAxisPosition.Left);
57 
58  if (config.Offset.HasValue)
59  Surface.Add(offsetPlot, PlotSurface2D.XAxisPosition.Bottom, PlotSurface2D.YAxisPosition.Left);
60  }
readonly List< double > Jitter
readonly IDispersionGraphConfiguration config
readonly List< DateTime > Time
readonly List< double > Offset
LinePlot SetupPlot(string name, Color color, IList time, IList data)
Definition: GraphBase.cs:158

Member Data Documentation

readonly IDispersionGraphConfiguration Ntp.Analyzer.Graph.DispersionGraph.config
private

Definition at line 44 of file DispersionGraph.cs.

readonly List<double> Ntp.Analyzer.Graph.DispersionGraph.Jitter
protected

Definition at line 46 of file DispersionGraph.cs.

readonly List<double> Ntp.Analyzer.Graph.DispersionGraph.Offset
protected

Definition at line 47 of file DispersionGraph.cs.

readonly List<DateTime> Ntp.Analyzer.Graph.DispersionGraph.Time
protected

Definition at line 48 of file DispersionGraph.cs.


The documentation for this class was generated from the following file: