NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration Class Reference
Inheritance diagram for Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration:
Collaboration diagram for Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration:

Public Member Functions

string GetFileName (Host host, string name, GraphSetConfiguration graphSet, GraphBaseConfiguration graph)
 
Uri GetLink (Host host, string name, GraphSetConfiguration graphSet, GraphBaseConfiguration graph)
 

Public Attributes

bool FixedRun => fixedRun ?? false
 
int Frequency => frequency ?? 0
 
override IEnumerable< GraphSetConfigurationGraphSets => PageConfiguration.Graphs
 
bool InitialRun => initialRun ?? true
 
override int LinkIndex => linkIndex ?? 1
 
override PageTheme Theme => PageTheme.Default
 
override string Title => string.Empty
 
- Public Attributes inherited from Ntp.Analyzer.Config.Node.Page.PageConfigurationNode
Uri Link => link ?? WebPath.Append(Destinations.First().Location.Replace(FilePath, string.Empty))
 Gets the link to this page. More...
 
string Name => ConfigName
 Gets the name of this Navigation.ILinkable. More...
 
- 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

 PeerGraphPageConfiguration (string configName, int?frequency, bool?initialRun, bool?fixedRun, int?linkIndex, PeerPageConfiguration page, DestinationCollection destinations, Uri link)
 
override void Assemble ()
 

Properties

Uri ConfigLink [get]
 
PeerPageConfiguration PageConfiguration [get]
 
- Properties inherited from Ntp.Analyzer.Config.Node.Page.GraphPageConfiguration
abstract IEnumerable< GraphSetConfigurationGraphSets [get]
 
abstract int LinkIndex [get]
 
- Properties inherited from Ntp.Analyzer.Config.Node.Page.PageConfigurationNode
DestinationCollection Destinations [get]
 Gets the destinations for output generated by this configuration. More...
 
abstract PageTheme Theme [get]
 Gets the theme/template to use for this page. More...
 
abstract string Title [get]
 Gets the title of this page. 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.Config.Node.Navigation.ILinkable
Uri Link [get]
 
string Name [get]
 
- Properties inherited from Ntp.Common.Process.IJobConfiguration
string ConfigName [get]
 
bool FixedRun [get]
 
int Frequency [get]
 
bool InitialRun [get]
 

Private Member Functions

string GetGraphFileName (Host host, string name, GraphSetConfiguration graphSet, GraphBaseConfiguration graph)
 

Private Attributes

readonly bool fixedRun
 
readonly int frequency
 
readonly bool initialRun
 
readonly int linkIndex
 

Additional Inherited Members

- Protected Member Functions inherited from Ntp.Analyzer.Config.Node.Page.GraphPageConfiguration
 GraphPageConfiguration (string configName, DestinationCollection destinations, Uri link)
 
- Protected Member Functions inherited from Ntp.Analyzer.Config.Node.Page.PageConfigurationNode
 PageConfigurationNode (string name, DestinationCollection destinations, Uri link)
 
- 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.HostSubConfiguration
HostConfiguration Server => Parent as HostConfiguration
 

Detailed Description

Definition at line 34 of file PeerGraphPageConfiguration.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.PeerGraphPageConfiguration ( string  configName,
int?  frequency,
bool?  initialRun,
bool?  fixedRun,
int?  linkIndex,
PeerPageConfiguration  page,
DestinationCollection  destinations,
Uri  link 
)
inlinepackage

Member Function Documentation

override void Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.Assemble ( )
inlinepackagevirtual

Reimplemented from Ntp.Analyzer.Config.Node.ConfigurationNode.

Definition at line 100 of file PeerGraphPageConfiguration.cs.

101  {
102  base.Assemble();
104  }
void AttachGraphPage(PeerGraphPageConfiguration graphPage)
string Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.GetFileName ( Host  host,
string  name,
GraphSetConfiguration  graphSet,
GraphBaseConfiguration  graph 
)
inline

Definition at line 90 of file PeerGraphPageConfiguration.cs.

91  {
92  return GetGraphFileName(host, name, graphSet, graph);
93  }
string GetGraphFileName(Host host, string name, GraphSetConfiguration graphSet, GraphBaseConfiguration graph)
string Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.GetGraphFileName ( Host  host,
string  name,
GraphSetConfiguration  graphSet,
GraphBaseConfiguration  graph 
)
inlineprivate

Definition at line 106 of file PeerGraphPageConfiguration.cs.

References Ntp.Analyzer.Config.Node.Graph.GraphBaseConfiguration.GetAltName(), and Ntp.Analyzer.Objects.NamedObject.Name.

108  {
109  return
110  host.Name.Replace('.', '-') + "_" +
111  graph.GetAltName(graphSet, name).
112  Replace(".png", string.Empty).
113  Replace('.', '-')
114  + ".html";
115  }
abstract string GetAltName(GraphSetConfiguration owner, string postfix)

Here is the call graph for this function:

Uri Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.GetLink ( Host  host,
string  name,
GraphSetConfiguration  graphSet,
GraphBaseConfiguration  graph 
)
inline

Definition at line 95 of file PeerGraphPageConfiguration.cs.

96  {
97  return WebPath.Append(Link, GetGraphFileName(host, name, graphSet, graph));
98  }
string GetGraphFileName(Host host, string name, GraphSetConfiguration graphSet, GraphBaseConfiguration graph)
Uri WebPath
Gets the web path in the HostSubConfiguration.

Member Data Documentation

readonly bool Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.fixedRun
private

Definition at line 55 of file PeerGraphPageConfiguration.cs.

bool Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.FixedRun => fixedRun ?? false

Definition at line 88 of file PeerGraphPageConfiguration.cs.

readonly int Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.frequency
private

Definition at line 56 of file PeerGraphPageConfiguration.cs.

int Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.Frequency => frequency ?? 0

Definition at line 80 of file PeerGraphPageConfiguration.cs.

override IEnumerable<GraphSetConfiguration> Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.GraphSets => PageConfiguration.Graphs

Definition at line 76 of file PeerGraphPageConfiguration.cs.

readonly bool Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.initialRun
private

Definition at line 57 of file PeerGraphPageConfiguration.cs.

bool Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.InitialRun => initialRun ?? true

Definition at line 84 of file PeerGraphPageConfiguration.cs.

readonly int Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.linkIndex
private

Definition at line 58 of file PeerGraphPageConfiguration.cs.

override int Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.LinkIndex => linkIndex ?? 1

Definition at line 70 of file PeerGraphPageConfiguration.cs.

override PageTheme Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.Theme => PageTheme.Default

Definition at line 60 of file PeerGraphPageConfiguration.cs.

override string Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.Title => string.Empty

Definition at line 62 of file PeerGraphPageConfiguration.cs.

Property Documentation

Uri Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.ConfigLink
get

Definition at line 74 of file PeerGraphPageConfiguration.cs.

PeerPageConfiguration Ntp.Analyzer.Config.Node.Page.PeerGraphPageConfiguration.PageConfiguration
get

Definition at line 66 of file PeerGraphPageConfiguration.cs.


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