22 using System.Collections.Generic;
29 namespace Ntp.Analyzer.Config.Syntax
42 var fixedRun = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordFixedRun) as BooleanSettingNode;
44 var width = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordWidth) as IntegerSettingNode;
45 var height = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordHeight) as IntegerSettingNode;
46 var stamp = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordTimeStamp) as
TimeStampNode ??
48 var timespan = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordTimespan) as IntegerSettingNode;
50 var gfrequency = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordGraphFrequency) as NumericSettingNode;
51 var stability = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordGraphStability) as NumericSettingNode;
52 var jitter = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordJitter) as NumericSettingNode;
53 var offset = Nodes.SingleOrDefault(n => n.Symbol ==
Symbol.KeywordOffset) as NumericSettingNode;
79 CheckIsUnique(
new List<Symbol>
90 Symbol.KeywordFilterFactor,
91 Symbol.KeywordGraphFrequency,
92 Symbol.KeywordGraphStability,
95 Symbol.KeywordDestinations,
99 CheckAllIsPresent(
new List<Symbol>
102 Symbol.KeywordDestinations
105 CheckOneIsPresent(
new List<Symbol>
107 Symbol.KeywordGraphFrequency,
108 Symbol.KeywordGraphStability,
113 CheckOnlyOneIsPresent(
new List<Symbol>
122 CheckTypeIs<IntegerSettingNode>(
Symbol.KeywordFrequency);
123 CheckTypeIs<BooleanSettingNode>(
Symbol.KeywordInitialRun);
124 CheckTypeIs<BooleanSettingNode>(
Symbol.KeywordFixedRun);
125 CheckTypeIs<StringSettingNode>(
Symbol.KeywordTitle);
126 CheckTypeIs<IntegerSettingNode>(
Symbol.KeywordWidth);
127 CheckTypeIs<IntegerSettingNode>(
Symbol.KeywordHeight);
128 CheckTypeIs<IntegerSettingNode>(
Symbol.KeywordTimespan);
129 CheckTypeIs<TimeStampNode>(
Symbol.KeywordTimeStamp);
130 CheckTypeIs<TimeStampNode>(
Symbol.KeywordGraphTime);
131 CheckTypeIs<NumericSettingNode>(
Symbol.KeywordFilterFactor);
132 CheckTypeIs<NumericSettingNode>(
Symbol.KeywordGraphFrequency);
133 CheckTypeIs<NumericSettingNode>(
Symbol.KeywordGraphStability);
134 CheckTypeIs<NumericSettingNode>(
Symbol.KeywordJitter);
135 CheckTypeIs<NumericSettingNode>(
Symbol.KeywordOffset);
override void ValidateMandatories()
Override to validates the mandatory types in this syntax node.
HostGraphSyntaxNode(string name, int line)
Host graph configuration used when creating Analyzer.Graph.HostGraph.
override HostGraphConfiguration InternalCompile()
override void ValidateTypes()
Override to validates the types in this syntax node.