NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration Class Reference

Host graph configuration used when creating

See also
Analyzer.Graph.HostGraph

. More...

Inheritance diagram for Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration:
Collaboration diagram for Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration:

Public Member Functions

override string GetAltName (GraphSetConfiguration owner, string postfix)
 Gets the alternative name when referred to from web pages. More...
 
override Uri GetLink (GraphSetConfiguration owner, string postfix)
 Gets the link to use when referred to from web pages. More...
 
override string GetTitle (NamedObject namedObject)
 
- Public Member Functions inherited from Ntp.Analyzer.Config.Node.Graph.GraphBaseConfiguration
string GetAltName (GraphSetConfiguration owner)
 
Uri GetLink (GraphSetConfiguration owner)
 

Public Attributes

bool FixedRun => fixedRun ?? true
 
override ImageFormat Format => ImageFormat.Png
 Gets the format to use for destinations. More...
 
int Frequency => frequency ?? 5
 
override DateTimeKind GraphTime => graphTime ?? DateTimeKind.Utc
 Gets the timezone to use for timeline. More...
 
override int Height => height ?? 550
 Gets the height in pixels of generated graph. More...
 
bool InitialRun => initialRun ?? false
 
override int Timespan => timespan ?? 60*12
 Gets the timespan for this graph. More...
 
override int Width => width ?? 1024
 Gets the width in pixels of generated graph. More...
 
- Public Attributes inherited from Ntp.Analyzer.Config.Node.Graph.GraphBaseConfiguration
string GraphName => ConfigName
 Gets the name of this graph. More...
 
IEnumerable< StreamDestinationLocations => Destinations.Destinations
 
- Public Attributes inherited from Ntp.Analyzer.Config.Node.HostSubConfiguration
override string FilePath => Server.FilePath
 Gets the file path in the HostSubConfiguration. More...
 
int HostId => Server.HostId
 Gets the host identifier in the HostSubConfiguration. More...
 
string ServerName => Server.ServerName
 Gets the name of the server in the HostSubConfiguration. More...
 
ServerType ServerType => Server.ServerType
 Gets the type of the server in the HostSubConfiguration. More...
 
Uri WebPath => Server.WebPath
 Gets the web path in the HostSubConfiguration. More...
 
- Public Attributes inherited from Ntp.Analyzer.Config.Node.ConfigurationNode
virtual string FilePath => Parent.FilePath + SubPath
 
virtual string SubPath => string.Empty
 

Package Functions

 HostGraphConfiguration (string name, int?frequency, bool?initialRun, bool?fixedRun, string title, int?width, int?height, int?timespan, DateTimeKind?graphTime, double?filterFactor, double?gfrequency, double?stability, double?jitter, double?offset, DestinationCollection destinations, WebLinkCollection links)
 
- Package Functions inherited from Ntp.Analyzer.Config.Node.ConfigurationNode
virtual void Assemble ()
 

Properties

override WebLinkCollection ConfigLinks [get]
 
override DestinationCollection Destinations [get]
 
double FilterFactor [get]
 Gets the filter factor. Used to filter away extreme values. More...
 
double Gfrequency [get]
 Gets the frequency factor. More...
 
double Jitter [get]
 Gets the jitter multiplication factor. More...
 
double Offset [get]
 Gets the offset multiplication factor. More...
 
double Stability [get]
 Gets the stability multiplication factor. More...
 
override string Title [get]
 Gets the title of this graph. More...
 
- Properties inherited from Ntp.Analyzer.Config.Node.Graph.GraphBaseConfiguration
abstract WebLinkCollection ConfigLinks [get]
 
abstract DestinationCollection Destinations [get]
 
abstract ImageFormat Format [get]
 Gets the format to use for destinations. More...
 
abstract DateTimeKind GraphTime [get]
 
abstract int Height [get]
 Gets the height in pixels of generated graph. More...
 
abstract int Timespan [get]
 Gets the timespan for this graph. More...
 
abstract string Title [get]
 Gets the title of this graph. More...
 
abstract int Width [get]
 Gets the width in pixels of generated graph. More...
 
- Properties inherited from Ntp.Analyzer.Config.Node.ConfigurationNode
string ConfigName [get]
 
ConfigurationNode Parent [get, set]
 
- Properties inherited from Ntp.Analyzer.Interface.IConfigurationNode
string ConfigName [get]
 
- Properties inherited from Ntp.Analyzer.Interface.IGraphBaseConfiguration
ImageFormat Format [get]
 
DateTimeKind GraphTime [get]
 
int Height [get]
 
IEnumerable< StreamDestinationLocations [get]
 
int Timespan [get]
 
string Title [get]
 
int Width [get]
 
- Properties inherited from Ntp.Analyzer.Interface.IHostGraphConfiguration
double Gfrequency [get]
 
int HostId [get]
 
double Stability [get]
 
- Properties inherited from Ntp.Analyzer.Interface.IDispersionGraphConfiguration
double FilterFactor [get]
 
double Jitter [get]
 
double Offset [get]
 
- Properties inherited from Ntp.Common.Process.IJobConfiguration
string ConfigName [get]
 
bool FixedRun [get]
 
int Frequency [get]
 
bool InitialRun [get]
 

Private Attributes

readonly bool fixedRun
 
readonly int frequency
 
readonly DateTimeKind graphTime
 
readonly int height
 
readonly bool initialRun
 
readonly int timespan
 
readonly int width
 

Additional Inherited Members

- Protected Member Functions inherited from Ntp.Analyzer.Config.Node.Graph.GraphBaseConfiguration
 GraphBaseConfiguration (string name)
 
- Protected Member Functions inherited from Ntp.Analyzer.Config.Node.HostSubConfiguration
 HostSubConfiguration (string name)
 
- Protected Member Functions inherited from Ntp.Analyzer.Config.Node.ConfigurationNode
 ConfigurationNode (string name)
 
- Protected Attributes inherited from Ntp.Analyzer.Config.Node.Graph.GraphBaseConfiguration
WebLinkCollection Links => new WebLinkCollection(null, new List<WebLink> {new WebLink(Destinations.First().Link)})
 
- Protected Attributes inherited from Ntp.Analyzer.Config.Node.HostSubConfiguration
HostConfiguration Server => Parent as HostConfiguration
 

Detailed Description

Host graph configuration used when creating

See also
Analyzer.Graph.HostGraph

.

Definition at line 37 of file HostGraphConfiguration.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.HostGraphConfiguration ( string  name,
int?  frequency,
bool?  initialRun,
bool?  fixedRun,
string  title,
int?  width,
int?  height,
int?  timespan,
DateTimeKind?  graphTime,
double?  filterFactor,
double?  gfrequency,
double?  stability,
double?  jitter,
double?  offset,
DestinationCollection  destinations,
WebLinkCollection  links 
)
inlinepackage

Definition at line 39 of file HostGraphConfiguration.cs.

56  : base(name)
57  {
58  this.frequency = frequency;
59  this.initialRun = initialRun;
60  this.fixedRun = fixedRun;
61  this.timespan = timespan;
62  this.height = height;
63  this.width = width;
64  this.graphTime = graphTime;
65  FilterFactor = filterFactor;
66  Jitter = jitter;
67  Offset = offset;
68  Gfrequency = gfrequency;
69  Stability = stability;
70  Title = title;
71  Destinations = destinations;
72  ConfigLinks = links;
73  }
double FilterFactor
Gets the filter factor. Used to filter away extreme values.
double Offset
Gets the offset multiplication factor.
override string Title
Gets the title of this graph.
double Jitter
Gets the jitter multiplication factor.
double Stability
Gets the stability multiplication factor.

Member Function Documentation

override string Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.GetAltName ( GraphSetConfiguration  owner,
string  postfix 
)
inlinevirtual

Gets the alternative name when referred to from web pages.

Returns
The alternate name.
Parameters
ownerOwner.
postfixText to prepend

Implements Ntp.Analyzer.Config.Node.Graph.GraphBaseConfiguration.

Definition at line 199 of file HostGraphConfiguration.cs.

References Ntp.Analyzer.Config.Node.Destination.GraphSetConfiguration.LinkIndex.

200  {
201  int index = owner.LinkIndex;
202  string name = Links.Destinations[index - 1].Link;
203 
204  // remove any path from name
205  int pos = name.LastIndexOf('/');
206  name = pos != -1 ? name.Remove(0, pos + 1) : name;
207 
208  return name;
209  }
override Uri Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.GetLink ( GraphSetConfiguration  owner,
string  postfix 
)
inlinevirtual

Gets the link to use when referred to from web pages.

Returns
The link.
Parameters
ownerOwner.
postfixText to prepend

Implements Ntp.Analyzer.Config.Node.Graph.GraphBaseConfiguration.

Definition at line 217 of file HostGraphConfiguration.cs.

References Ntp.Analyzer.Config.Node.Destination.GraphSetConfiguration.LinkIndex.

override string Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.GetTitle ( NamedObject  namedObject)
inlinevirtual

Implements Ntp.Analyzer.Config.Node.Graph.GraphBaseConfiguration.

Definition at line 222 of file HostGraphConfiguration.cs.

223  {
224  return Title;
225  }
override string Title
Gets the title of this graph.

Member Data Documentation

readonly bool Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.fixedRun
private

Definition at line 75 of file HostGraphConfiguration.cs.

bool Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.FixedRun => fixedRun ?? true

Definition at line 191 of file HostGraphConfiguration.cs.

override ImageFormat Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.Format => ImageFormat.Png

Gets the format to use for destinations.

The format.

Definition at line 128 of file HostGraphConfiguration.cs.

readonly int Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.frequency
private

Definition at line 76 of file HostGraphConfiguration.cs.

int Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.Frequency => frequency ?? 5

Definition at line 183 of file HostGraphConfiguration.cs.

readonly DateTimeKind Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.graphTime
private

Definition at line 77 of file HostGraphConfiguration.cs.

override DateTimeKind Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.GraphTime => graphTime ?? DateTimeKind.Utc

Gets the timezone to use for timeline.

The graph timezone.

Definition at line 179 of file HostGraphConfiguration.cs.

readonly int Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.height
private

Definition at line 78 of file HostGraphConfiguration.cs.

override int Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.Height => height ?? 550

Gets the height in pixels of generated graph.

The height.

Definition at line 121 of file HostGraphConfiguration.cs.

readonly bool Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.initialRun
private

Definition at line 79 of file HostGraphConfiguration.cs.

bool Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.InitialRun => initialRun ?? false

Definition at line 187 of file HostGraphConfiguration.cs.

readonly int Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.timespan
private

Definition at line 80 of file HostGraphConfiguration.cs.

override int Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.Timespan => timespan ?? 60*12

Gets the timespan for this graph.

The timespan.

Definition at line 105 of file HostGraphConfiguration.cs.

readonly int Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.width
private

Definition at line 81 of file HostGraphConfiguration.cs.

override int Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.Width => width ?? 1024

Gets the width in pixels of generated graph.

The width.

Definition at line 113 of file HostGraphConfiguration.cs.

Property Documentation

override WebLinkCollection Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.ConfigLinks
get

Definition at line 89 of file HostGraphConfiguration.cs.

override DestinationCollection Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.Destinations
get

Definition at line 85 of file HostGraphConfiguration.cs.

double Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.FilterFactor
get

Gets the filter factor. Used to filter away extreme values.

The filter factor.

Definition at line 136 of file HostGraphConfiguration.cs.

double Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.Gfrequency
get

Gets the frequency factor.

Frequency factor is obtained from NTP hosts.

The frequency.

Definition at line 171 of file HostGraphConfiguration.cs.

double Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.Jitter
get

Gets the jitter multiplication factor.

The factor.

Definition at line 144 of file HostGraphConfiguration.cs.

double Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.Offset
get

Gets the offset multiplication factor.

The factor.

Definition at line 152 of file HostGraphConfiguration.cs.

double Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.Stability
get

Gets the stability multiplication factor.

The stability.

Definition at line 160 of file HostGraphConfiguration.cs.

override string Ntp.Analyzer.Config.Node.Graph.HostGraphConfiguration.Title
get

Gets the title of this graph.

The title.

Definition at line 97 of file HostGraphConfiguration.cs.


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