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

Peer graph configuration used when creating

See also
Ntp.Analyzer.Graph.PeerGraph

. More...

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

Public Member Functions

override string GetAltName (GraphSetConfiguration owner, string postfix)
 
override Uri GetLink (GraphSetConfiguration owner, string postfix)
 
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

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

Properties

double Balance [get]
 Gets the balance multiplication factor. More...
 
override WebLinkCollection ConfigLinks [get]
 
double Delay [get]
 Gets the delay multiplication factor. More...
 
override DestinationCollection Destinations [get]
 
double FilterFactor [get]
 Gets the filter factor. Used to filter away extreme values. More...
 
double Jitter [get]
 Gets the jitter multiplication factor. More...
 
double Offset [get]
 Gets the offset 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.IPeerGraphConfiguration
double Balance [get]
 
double Delay [get]
 
int HostId [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

Peer graph configuration used when creating

See also
Ntp.Analyzer.Graph.PeerGraph

.

Definition at line 37 of file PeerGraphConfiguration.cs.

Constructor & Destructor Documentation

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

Definition at line 39 of file PeerGraphConfiguration.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  Balance = balance;
69  Delay = delay;
70  Title = title;
71  Destinations = destinations;
72  ConfigLinks = links;
73  }
double Jitter
Gets the jitter multiplication factor.
double Balance
Gets the balance multiplication factor.
double FilterFactor
Gets the filter factor. Used to filter away extreme values.
override string Title
Gets the title of this graph.
double Offset
Gets the offset multiplication factor.
double Delay
Gets the delay multiplication factor.

Member Function Documentation

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

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

Definition at line 195 of file PeerGraphConfiguration.cs.

196  {
197  string peerName = postfix;
198  return GraphName + "-" + peerName.Replace('.', '-') + ".png";
199  }
override Uri Ntp.Analyzer.Config.Node.Graph.PeerGraphConfiguration.GetLink ( GraphSetConfiguration  owner,
string  postfix 
)
inlinevirtual

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

Definition at line 201 of file PeerGraphConfiguration.cs.

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

202  {
203  return WebPath.
204  Append(Links.Destinations[owner.LinkIndex - 1].Link).
205  AppendExtension(postfix.Replace('.', '-')).
206  AppendExtension(".png");
207  }
Uri WebPath
Gets the web path in the HostSubConfiguration.
override string Ntp.Analyzer.Config.Node.Graph.PeerGraphConfiguration.GetTitle ( NamedObject  namedObject)
inlinevirtual

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

Definition at line 190 of file PeerGraphConfiguration.cs.

References Ntp.Analyzer.Objects.NamedObject.DisplayName.

191  {
192  return string.Concat(namedObject.DisplayName, " ", Title);
193  }
override string Title
Gets the title of this graph.

Member Data Documentation

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

Definition at line 75 of file PeerGraphConfiguration.cs.

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

Definition at line 101 of file PeerGraphConfiguration.cs.

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

Gets the format to use for destinations.

The format.

Definition at line 148 of file PeerGraphConfiguration.cs.

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

Definition at line 76 of file PeerGraphConfiguration.cs.

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

Definition at line 93 of file PeerGraphConfiguration.cs.

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

Definition at line 77 of file PeerGraphConfiguration.cs.

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

Gets the timezone to use for timeline.

The graph timezone.

Definition at line 109 of file PeerGraphConfiguration.cs.

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

Definition at line 78 of file PeerGraphConfiguration.cs.

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

Gets the height in pixels of generated graph.

The height.

Definition at line 141 of file PeerGraphConfiguration.cs.

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

Definition at line 79 of file PeerGraphConfiguration.cs.

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

Definition at line 97 of file PeerGraphConfiguration.cs.

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

Definition at line 80 of file PeerGraphConfiguration.cs.

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

Gets the timespan for this graph.

The timespan.

Definition at line 125 of file PeerGraphConfiguration.cs.

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

Definition at line 81 of file PeerGraphConfiguration.cs.

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

Gets the width in pixels of generated graph.

The width.

Definition at line 133 of file PeerGraphConfiguration.cs.

Property Documentation

double Ntp.Analyzer.Config.Node.Graph.PeerGraphConfiguration.Balance
get

Gets the balance multiplication factor.

The balance.

Definition at line 180 of file PeerGraphConfiguration.cs.

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

Definition at line 89 of file PeerGraphConfiguration.cs.

double Ntp.Analyzer.Config.Node.Graph.PeerGraphConfiguration.Delay
get

Gets the delay multiplication factor.

The delay.

Definition at line 188 of file PeerGraphConfiguration.cs.

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

Definition at line 85 of file PeerGraphConfiguration.cs.

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

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

The filter factor.

Definition at line 156 of file PeerGraphConfiguration.cs.

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

Gets the jitter multiplication factor.

The factor.

Definition at line 164 of file PeerGraphConfiguration.cs.

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

Gets the offset multiplication factor.

The factor.

Definition at line 172 of file PeerGraphConfiguration.cs.

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

Gets the title of this graph.

The title.

Definition at line 117 of file PeerGraphConfiguration.cs.


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