History

GSF.PhasorProtocols: Simplified namespace references and standardized property formatting

J. Ritchie Carroll committed 4 years ago

Commit aabcb671 parent b56cf0249 files · +138 −422Browse files

Unified · Split

49 files
  1. Source/Libraries/GSF.PhasorProtocols/AnalogDefinitionBase.cs +1 −1
  2. Source/Libraries/GSF.PhasorProtocols/BPAPDCstream/DataCell.cs +1 −1
  3. Source/Libraries/GSF.PhasorProtocols/BPAPDCstream/FrameParser.cs +1 −1
  4. Source/Libraries/GSF.PhasorProtocols/BPAPDCstream/PhasorValue.cs +2 −2
  5. Source/Libraries/GSF.PhasorProtocols/ChannelDefinitionBase.cs +2 −5
  6. Source/Libraries/GSF.PhasorProtocols/ChannelValueBase.cs +1 −1
  7. Source/Libraries/GSF.PhasorProtocols/DataCellBase.cs +6 −26
  8. Source/Libraries/GSF.PhasorProtocols/DataFrameBase.cs +1 −5
  9. Source/Libraries/GSF.PhasorProtocols/DigitalDefinitionBase.cs +2 −2
  10. Source/Libraries/GSF.PhasorProtocols/FNET/DataCell.cs +1 −1
  11. Source/Libraries/GSF.PhasorProtocols/FNET/FrameParser.cs +2 −2
  12. Source/Libraries/GSF.PhasorProtocols/FNET/PhasorValue.cs +1 −1
  13. Source/Libraries/GSF.PhasorProtocols/FrameParserBase.cs +2 −2
  14. Source/Libraries/GSF.PhasorProtocols/FrequencyDefinitionBase.cs +1 −1
  15. Source/Libraries/GSF.PhasorProtocols/IAnalogDefintion.cs +1 −5
  16. Source/Libraries/GSF.PhasorProtocols/IChannelCell.cs +3 −15
  17. Source/Libraries/GSF.PhasorProtocols/IChannelDefinition.cs +2 −2
  18. Source/Libraries/GSF.PhasorProtocols/IChannelFrame.cs +6 −26
  19. Source/Libraries/GSF.PhasorProtocols/IChannelFrameParsingState.cs +4 −19
  20. Source/Libraries/GSF.PhasorProtocols/IChannelValue.cs +1 −1
  21. Source/Libraries/GSF.PhasorProtocols/IConfigurationCell.cs +20 −92
  22. Source/Libraries/GSF.PhasorProtocols/IDataCell.cs +17 −75
  23. Source/Libraries/GSF.PhasorProtocols/IDataFrame.cs +4 −19
  24. Source/Libraries/GSF.PhasorProtocols/IEC61850_90_5/DataCell.cs +1 −1
  25. Source/Libraries/GSF.PhasorProtocols/IEC61850_90_5/FrameParser.cs +1 −1
  26. Source/Libraries/GSF.PhasorProtocols/IEC61850_90_5/PhasorValue.cs +1 −1
  27. Source/Libraries/GSF.PhasorProtocols/IEEE1344/DataCell.cs +1 −1
  28. Source/Libraries/GSF.PhasorProtocols/IEEE1344/FrameParser.cs +1 −1
  29. Source/Libraries/GSF.PhasorProtocols/IEEE1344/PhasorValue.cs +1 −1
  30. Source/Libraries/GSF.PhasorProtocols/IEEEC37_118/DataCell.cs +1 −1
  31. Source/Libraries/GSF.PhasorProtocols/IEEEC37_118/DigitalDefinition3.cs +2 −2
  32. Source/Libraries/GSF.PhasorProtocols/IEEEC37_118/FrameParser.cs +1 −1
  33. Source/Libraries/GSF.PhasorProtocols/IEEEC37_118/PhasorValue.cs +1 −1
  34. Source/Libraries/GSF.PhasorProtocols/IFrameParser.cs +1 −1
  35. Source/Libraries/GSF.PhasorProtocols/IFrequencyDefinition.cs +3 −14
  36. Source/Libraries/GSF.PhasorProtocols/IPhasorDefinition.cs +6 −20
  37. Source/Libraries/GSF.PhasorProtocols/IPhasorValue.cs +14 −50
  38. Source/Libraries/GSF.PhasorProtocols/Macrodyne/CommandFrame.cs +1 −1
  39. Source/Libraries/GSF.PhasorProtocols/Macrodyne/Common.cs +2 −2
  40. Source/Libraries/GSF.PhasorProtocols/Macrodyne/DataCell.cs +1 −1
  41. Source/Libraries/GSF.PhasorProtocols/Macrodyne/FrameParser.cs +1 −1
  42. Source/Libraries/GSF.PhasorProtocols/Macrodyne/PhasorValue.cs +1 −1
  43. Source/Libraries/GSF.PhasorProtocols/MultiProtocolFrameParser.cs +2 −2
  44. Source/Libraries/GSF.PhasorProtocols/PhasorDefinitionBase.cs +3 −3
  45. Source/Libraries/GSF.PhasorProtocols/PhasorValueBase.cs +5 −5
  46. Source/Libraries/GSF.PhasorProtocols/SelFastMessage/CommandFrame.cs +1 −1
  47. Source/Libraries/GSF.PhasorProtocols/SelFastMessage/DataCell.cs +1 −1
  48. Source/Libraries/GSF.PhasorProtocols/SelFastMessage/FrameParser.cs +2 −2
  49. Source/Libraries/GSF.PhasorProtocols/SelFastMessage/PhasorValue.cs +1 −1
Source/Libraries/GSF.PhasorProtocols/AnalogDefinitionBase.cs+1−1
@@ -88,7 +88,7 @@ namespace GSF.PhasorProtocols · 87 unmodified lines
8888 #region [ Properties ]
8989
9090 /// <summary>
91− /// Gets the <see cref="GSF.PhasorProtocols.DataFormat"/> for the <see cref="AnalogDefinitionBase"/>.
91+ /// Gets the <see cref="PhasorProtocols.DataFormat"/> for the <see cref="AnalogDefinitionBase"/>.
9292 /// </summary>
9393 public override DataFormat DataFormat => Parent.AnalogDataFormat;
9494
Source/Libraries/GSF.PhasorProtocols/BPAPDCstream/DataCell.cs+1−1
@@ -249,7 +249,7 @@ namespace GSF.PhasorProtocols.BPAPDCstream · 248 unmodified lines
249249 }
250250
251251 /// <summary>
252− /// Gets or sets <see cref="GSF.PhasorProtocols.DataSortingType"/> of this <see cref="DataCell"/>.
252+ /// Gets or sets <see cref="PhasorProtocols.DataSortingType"/> of this <see cref="DataCell"/>.
253253 /// </summary>
254254 public override DataSortingType DataSortingType
255255 {
Source/Libraries/GSF.PhasorProtocols/BPAPDCstream/FrameParser.cs+1−1
@@ -80,7 +80,7 @@ namespace GSF.PhasorProtocols.BPAPDCstream · 79 unmodified lines
8080 /// <summary>
8181 /// Creates a new <see cref="FrameParser"/>.
8282 /// </summary>
83− /// <param name="checkSumValidationFrameTypes">Frame types that should perform check-sum validation; default to <see cref="GSF.PhasorProtocols.CheckSumValidationFrameTypes.AllFrames"/></param>
83+ /// <param name="checkSumValidationFrameTypes">Frame types that should perform check-sum validation; default to <see cref="CheckSumValidationFrameTypes.AllFrames"/></param>
8484 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>
8585 /// <param name="configurationFileName">The required external BPA PDCstream INI based configuration file.</param>
8686 public FrameParser(CheckSumValidationFrameTypes checkSumValidationFrameTypes = CheckSumValidationFrameTypes.AllFrames, bool trustHeaderLength = true, string configurationFileName = null)
Source/Libraries/GSF.PhasorProtocols/BPAPDCstream/PhasorValue.cs+2−2
@@ -66,7 +66,7 @@ namespace GSF.PhasorProtocols.BPAPDCstream · 65 unmodified lines
6666 /// </summary>
6767 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>
6868 /// <param name="phasorDefinition">The <see cref="PhasorDefinition"/> associated with this <see cref="PhasorValue"/>.</param>
69− /// <param name="angle">The <see cref="GSF.Units.Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValue"/>, in radians.</param>
69+ /// <param name="angle">The <see cref="Units.Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValue"/>, in radians.</param>
7070 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>
7171 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)
7272 : base(parent, phasorDefinition, angle, magnitude)
@@ -106,7 +106,7 @@ namespace GSF.PhasorProtocols.BPAPDCstream · 33 unmodified lines
106106 }
107107
108108 /// <summary>
109− /// Gets or sets the <see cref="GSF.Units.Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValue"/>, in radians.
109+ /// Gets or sets the <see cref="Units.Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValue"/>, in radians.
110110 /// </summary>
111111 public override Angle Angle
112112 {
Source/Libraries/GSF.PhasorProtocols/ChannelDefinitionBase.cs+2−5
@@ -107,12 +107,9 @@ namespace GSF.PhasorProtocols · 106 unmodified lines
107107 }
108108
109109 /// <summary>
110− /// Gets the <see cref="GSF.PhasorProtocols.DataFormat"/> of this <see cref="ChannelDefinitionBase"/>.
110+ /// Gets the <see cref="PhasorProtocols.DataFormat"/> of this <see cref="ChannelDefinitionBase"/>.
111111 /// </summary>
112− public abstract DataFormat DataFormat
113− {
114− get;
115− }
112+ public abstract DataFormat DataFormat { get; }
116113
117114 /// <summary>
118115 /// Gets or sets the index of this <see cref="ChannelDefinitionBase"/>.
Source/Libraries/GSF.PhasorProtocols/ChannelValueBase.cs+1−1
@@ -100,7 +100,7 @@ namespace GSF.PhasorProtocols · 99 unmodified lines
100100 }
101101
102102 /// <summary>
103− /// Gets the <see cref="GSF.PhasorProtocols.DataFormat"/> of this <see cref="ChannelValueBase{T}"/>.
103+ /// Gets the <see cref="PhasorProtocols.DataFormat"/> of this <see cref="ChannelValueBase{T}"/>.
104104 /// </summary>
105105 public virtual DataFormat DataFormat => m_definition.DataFormat;
106106
Source/Libraries/GSF.PhasorProtocols/DataCellBase.cs+6−26
@@ -297,11 +297,7 @@ namespace GSF.PhasorProtocols · 296 unmodified lines
297297 /// <remarks>
298298 /// This value is used to abstractly assign the protocol independent set of <see cref="CommonStatusFlags"/>.
299299 /// </remarks>
300− public abstract bool DataIsValid
301− {
302− get;
303− set;
304− }
300+ public abstract bool DataIsValid { get; set; }
305301
306302 /// <summary>
307303 /// Gets or sets flag that determines if timestamp of this <see cref="DataCellBase"/> is valid based on GPS lock.
@@ -309,23 +305,15 @@ namespace GSF.PhasorProtocols · 1 unmodified line
309305 /// <remarks>
310306 /// This value is used to abstractly assign the protocol independent set of <see cref="CommonStatusFlags"/>.
311307 /// </remarks>
312− public abstract bool SynchronizationIsValid
313− {
314− get;
315− set;
316− }
308+ public abstract bool SynchronizationIsValid { get; set; }
317309
318310 /// <summary>
319− /// Gets or sets <see cref="GSF.PhasorProtocols.DataSortingType"/> of this <see cref="DataCellBase"/>.
311+ /// Gets or sets <see cref="PhasorProtocols.DataSortingType"/> of this <see cref="DataCellBase"/>.
320312 /// </summary>
321313 /// <remarks>
322314 /// This value is used to abstractly assign the protocol independent set of <see cref="CommonStatusFlags"/>.
323315 /// </remarks>
324− public abstract DataSortingType DataSortingType
325− {
326− get;
327− set;
328− }
316+ public abstract DataSortingType DataSortingType { get; set; }
329317
330318 /// <summary>
331319 /// Gets or sets flag that determines if source device of this <see cref="DataCellBase"/> is reporting an error.
@@ -333,11 +321,7 @@ namespace GSF.PhasorProtocols · 1 unmodified line
333321 /// <remarks>
334322 /// This value is used to abstractly assign the protocol independent set of <see cref="CommonStatusFlags"/>.
335323 /// </remarks>
336− public abstract bool DeviceError
337− {
338− get;
339− set;
340− }
324+ public abstract bool DeviceError { get; set; }
341325
342326 /// <summary>
343327 /// Gets or sets flag that determines if data is modified by a post-processing
@@ -346,11 +330,7 @@ namespace GSF.PhasorProtocols · 2 unmodified lines
346330 /// <remarks>
347331 /// This value is used to abstractly assign the protocol independent set of <see cref="CommonStatusFlags"/>.
348332 /// </remarks>
349− public virtual bool DataModified
350− {
351− get;
352− set;
353− }
333+ public virtual bool DataModified { get; set; }
354334
355335 /// <summary>
356336 /// Gets the length of the <see cref="BodyImage"/>.
Source/Libraries/GSF.PhasorProtocols/DataFrameBase.cs+1−5
@@ -107,11 +107,7 @@ namespace GSF.PhasorProtocols · 106 unmodified lines
107107 /// <summary>
108108 /// Gets or sets protocol specific quality flags for this <see cref="DataFrameBase"/>.
109109 /// </summary>
110− public virtual uint QualityFlags
111− {
112− get;
113− set;
114− }
110+ public virtual uint QualityFlags { get; set; }
115111
116112 /// <summary>
117113 /// Gets the numeric ID code for this <see cref="DataFrameBase"/>.
Source/Libraries/GSF.PhasorProtocols/DigitalDefinitionBase.cs+2−2
@@ -77,10 +77,10 @@ namespace GSF.PhasorProtocols · 76 unmodified lines
7777 #region [ Properties ]
7878
7979 /// <summary>
80− /// Gets the <see cref="GSF.PhasorProtocols.DataFormat"/> of this <see cref="DigitalDefinitionBase"/>.
80+ /// Gets the <see cref="PhasorProtocols.DataFormat"/> of this <see cref="DigitalDefinitionBase"/>.
8181 /// </summary>
8282 /// <remarks>
83− /// Data format for digital values will always be <see cref="GSF.PhasorProtocols.DataFormat.FixedInteger"/>.
83+ /// Data format for digital values will always be <see cref="DataFormat.FixedInteger"/>.
8484 /// </remarks>
8585 [EditorBrowsable(EditorBrowsableState.Never)]
8686 public sealed override DataFormat DataFormat => DataFormat.FixedInteger;
Source/Libraries/GSF.PhasorProtocols/FNET/DataCell.cs+1−1
@@ -127,7 +127,7 @@ namespace GSF.PhasorProtocols.FNET · 126 unmodified lines
127127 }
128128
129129 /// <summary>
130− /// Gets or sets <see cref="GSF.PhasorProtocols.DataSortingType"/> of this <see cref="DataCell"/>.
130+ /// Gets or sets <see cref="PhasorProtocols.DataSortingType"/> of this <see cref="DataCell"/>.
131131 /// </summary>
132132 public override DataSortingType DataSortingType
133133 {
Source/Libraries/GSF.PhasorProtocols/FNET/FrameParser.cs+2−2
@@ -63,14 +63,14 @@ namespace GSF.PhasorProtocols.FNET · 62 unmodified lines
6363 // Fields
6464 private ConfigurationFrame m_configurationFrame;
6565
66− #endregion
66+ #endregion
6767
6868 #region [ Constructors ]
6969
7070 /// <summary>
7171 /// Creates a new <see cref="FrameParser"/>.
7272 /// </summary>
73− /// <param name="checkSumValidationFrameTypes">Frame types that should perform check-sum validation; default to <see cref="GSF.PhasorProtocols.CheckSumValidationFrameTypes.AllFrames"/></param>
73+ /// <param name="checkSumValidationFrameTypes">Frame types that should perform check-sum validation; default to <see cref="CheckSumValidationFrameTypes.AllFrames"/></param>
7474 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>
7575 /// <param name="frameRate">The defined frame rate of this <see cref="ConfigurationFrame"/>.</param>
7676 /// <param name="nominalFrequency">The nominal <see cref="LineFrequency"/> of this <see cref="ConfigurationFrame"/>.</param>
Source/Libraries/GSF.PhasorProtocols/FNET/PhasorValue.cs+1−1
@@ -66,7 +66,7 @@ namespace GSF.PhasorProtocols.FNET · 65 unmodified lines
6666 /// </summary>
6767 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>
6868 /// <param name="phasorDefinition">The <see cref="PhasorDefinition"/> associated with this <see cref="PhasorValue"/>.</param>
69− /// <param name="angle">The <see cref="GSF.Units.Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValue"/>, in radians.</param>
69+ /// <param name="angle">The <see cref="Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValue"/>, in radians.</param>
7070 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>
7171 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)
7272 : base(parent, phasorDefinition, angle, magnitude)
Source/Libraries/GSF.PhasorProtocols/FrameParserBase.cs+2−2
@@ -150,7 +150,7 @@ namespace GSF.PhasorProtocols · 149 unmodified lines
150150 /// <summary>
151151 /// Creates a new <see cref="FrameParserBase{TypeIndentifier}"/>.
152152 /// </summary>
153− /// <param name="checkSumValidationFrameTypes">Frame types that should perform check-sum validation; default to <see cref="GSF.PhasorProtocols.CheckSumValidationFrameTypes.AllFrames"/></param>
153+ /// <param name="checkSumValidationFrameTypes">Frame types that should perform check-sum validation; default to <see cref="CheckSumValidationFrameTypes.AllFrames"/></param>
154154 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>
155155 protected FrameParserBase(CheckSumValidationFrameTypes checkSumValidationFrameTypes, bool trustHeaderLength)
156156 {
@@ -200,7 +200,7 @@ namespace GSF.PhasorProtocols · 43 unmodified lines
200200 /// Gets or sets flags that determine if check-sums for specified frames should be validated.
201201 /// </summary>
202202 /// <remarks>
203− /// It is expected that this will normally be set to <see cref="GSF.PhasorProtocols.CheckSumValidationFrameTypes.AllFrames"/>.
203+ /// It is expected that this will normally be set to <see cref="CheckSumValidationFrameTypes.AllFrames"/>.
204204 /// </remarks>
205205 public CheckSumValidationFrameTypes CheckSumValidationFrameTypes { get; set; }
206206
Source/Libraries/GSF.PhasorProtocols/FrequencyDefinitionBase.cs+1−1
@@ -93,7 +93,7 @@ namespace GSF.PhasorProtocols · 92 unmodified lines
9393 #region [ Properties ]
9494
9595 /// <summary>
96− /// Gets the <see cref="GSF.PhasorProtocols.DataFormat"/> of this <see cref="FrequencyDefinitionBase"/>.
96+ /// Gets the <see cref="PhasorProtocols.DataFormat"/> of this <see cref="FrequencyDefinitionBase"/>.
9797 /// </summary>
9898 public override DataFormat DataFormat => Parent.FrequencyDataFormat;
9999
Source/Libraries/GSF.PhasorProtocols/IAnalogDefintion.cs+1−5
@@ -63,10 +63,6 @@ namespace GSF.PhasorProtocols · 62 unmodified lines
6363 /// <summary>
6464 /// Gets or sets <see cref="AnalogType"/> of this <see cref="IAnalogDefinition"/>.
6565 /// </summary>
66− AnalogType AnalogType
67− {
68− get;
69− set;
70− }
66+ AnalogType AnalogType { get; set; }
7167 }
7268 }
Source/Libraries/GSF.PhasorProtocols/IChannelCell.cs+3−15
@@ -44,20 +44,12 @@ namespace GSF.PhasorProtocols · 43 unmodified lines
4444 /// <summary>
4545 /// Gets a reference to the parent <see cref="IChannelFrame"/> for this <see cref="IChannelCell"/>.
4646 /// </summary>
47− IChannelFrame Parent
48− {
49− get;
50− set;
51− }
47+ IChannelFrame Parent { get; set; }
5248
5349 /// <summary>
5450 /// Gets or sets the parsing state for the this <see cref="ChannelCellBase"/>.
5551 /// </summary>
56− new IChannelCellParsingState State
57− {
58− get;
59− set;
60− }
52+ new IChannelCellParsingState State { get; set; }
6153
6254 /// <summary>
6355 /// Gets the numeric ID code for this <see cref="IChannelCell"/>.
@@ -66,10 +58,6 @@ namespace GSF.PhasorProtocols · 2 unmodified lines
6658 /// Most phasor measurement devices define some kind of numeric identifier (e.g., a hardware identifier coded into the device ROM); this is the
6759 /// abstract representation of this identifier.
6860 /// </remarks>
69− ushort IDCode
70− {
71− get;
72− set;
73− }
61+ ushort IDCode { get; set; }
7462 }
7563 }
Source/Libraries/GSF.PhasorProtocols/IChannelDefinition.cs+2−2
@@ -67,9 +67,9 @@ namespace GSF.PhasorProtocols · 66 unmodified lines
6767 /// Gets the <see cref="IConfigurationCell"/> parent of this <see cref="IChannelDefinition"/>.
6868 /// </summary>
6969 IConfigurationCell Parent { get; set; }
70−
70+
7171 /// <summary>
72− /// Gets the <see cref="GSF.PhasorProtocols.DataFormat"/> of this <see cref="IChannelDefinition"/>.
72+ /// Gets the <see cref="PhasorProtocols.DataFormat"/> of this <see cref="IChannelDefinition"/>.
7373 /// </summary>
7474 DataFormat DataFormat { get; }
7575
Source/Libraries/GSF.PhasorProtocols/IChannelFrame.cs+6−26
@@ -90,35 +90,22 @@ namespace GSF.PhasorProtocols · 89 unmodified lines
9090 /// <summary>
9191 /// Gets the <see cref="FundamentalFrameType"/> for this <see cref="IChannelFrame"/>.
9292 /// </summary>
93− FundamentalFrameType FrameType
94− {
95− get;
96− }
93+ FundamentalFrameType FrameType { get; }
9794
9895 /// <summary>
9996 /// Gets the simple reference to the collection of cells for this <see cref="IChannelFrame"/>.
10097 /// </summary>
101− object Cells
102− {
103− get;
104− }
98+ object Cells { get; }
10599
106100 /// <summary>
107101 /// Gets or sets the ID code of this <see cref="IChannelFrame"/>.
108102 /// </summary>
109− ushort IDCode
110− {
111− get;
112− set;
113− }
103+ ushort IDCode { get; set; }
114104
115105 /// <summary>
116106 /// Gets UNIX based time representation of the ticks of this <see cref="IChannelFrame"/>.
117107 /// </summary>
118− UnixTimeTag TimeTag
119− {
120− get;
121− }
108+ UnixTimeTag TimeTag { get; }
122109 }
123110
124111 /// <summary>
@@ -135,18 +122,11 @@ namespace GSF.PhasorProtocols · 10 unmodified lines
135122 /// <summary>
136123 /// Gets the strongly-typed reference to the collection of cells for this <see cref="IChannelFrame{T}"/>.
137124 /// </summary>
138− new IChannelCellCollection<T> Cells
139− {
140− get;
141− }
125+ new IChannelCellCollection<T> Cells { get; }
142126
143127 /// <summary>
144128 /// Gets or sets the parsing state for this <see cref="IChannelFrame{T}"/>.
145129 /// </summary>
146− new IChannelFrameParsingState<T> State
147− {
148− get;
149− set;
150− }
130+ new IChannelFrameParsingState<T> State { get; set; }
151131 }
152132 }
Source/Libraries/GSF.PhasorProtocols/IChannelFrameParsingState.cs+4−19
@@ -49,19 +49,12 @@ namespace GSF.PhasorProtocols · 48 unmodified lines
4949 /// <summary>
5050 /// Gets reference to delegate used to create a new <see cref="IChannelCell"/> object.
5151 /// </summary>
52− CreateNewCellFunction<T> CreateNewCell
53− {
54− get;
55− }
52+ CreateNewCellFunction<T> CreateNewCell { get; }
5653
5754 /// <summary>
5855 /// Gets or sets number of cells that are expected in associated <see cref="IChannelFrame"/> being parsed.
5956 /// </summary>
60− int CellCount
61− {
62− get;
63− set;
64− }
57+ int CellCount { get; set; }
6558
6659 /// <summary>
6760 /// Gets or sets flag that determines if header lengths should be trusted over parsed byte count.
@@ -69,11 +62,7 @@ namespace GSF.PhasorProtocols · 1 unmodified line
6962 /// <remarks>
7063 /// It is expected that this will normally be left as <c>true</c>.
7164 /// </remarks>
72− bool TrustHeaderLength
73− {
74− get;
75− set;
76− }
65+ bool TrustHeaderLength { get; set; }
7766
7867 /// <summary>
7968 /// Gets or sets flag that determines if frame's check-sum should be validated.
@@ -81,10 +70,6 @@ namespace GSF.PhasorProtocols · 1 unmodified line
8170 /// <remarks>
8271 /// It is expected that this will normally be left as <c>true</c>.
8372 /// </remarks>
84− bool ValidateCheckSum
85− {
86− get;
87− set;
88− }
73+ bool ValidateCheckSum { get; set; }
8974 }
9075 }
Source/Libraries/GSF.PhasorProtocols/IChannelValue.cs+1−1
@@ -54,7 +54,7 @@ namespace GSF.PhasorProtocols · 53 unmodified lines
5454 T Definition { get; set; }
5555
5656 /// <summary>
57− /// Gets the <see cref="GSF.PhasorProtocols.DataFormat"/> of this <see cref="IChannelValue{T}"/> typically derived from <see cref="IChannelDefinition.DataFormat"/>.
57+ /// Gets the <see cref="PhasorProtocols.DataFormat"/> of this <see cref="IChannelValue{T}"/> typically derived from <see cref="IChannelDefinition.DataFormat"/>.
5858 /// </summary>
5959 DataFormat DataFormat { get; }
6060
Source/Libraries/GSF.PhasorProtocols/IConfigurationCell.cs+20−92
@@ -36,173 +36,101 @@ namespace GSF.PhasorProtocols · 35 unmodified lines
3636 /// <summary>
3737 /// Gets a reference to the parent <see cref="IConfigurationFrame"/> for this <see cref="IConfigurationCell"/>.
3838 /// </summary>
39− new IConfigurationFrame Parent
40− {
41− get;
42− set;
43− }
39+ new IConfigurationFrame Parent { get; set; }
4440
4541 /// <summary>
4642 /// Gets or sets the parsing state for the this <see cref="IConfigurationCell"/>.
4743 /// </summary>
48− new IConfigurationCellParsingState State
49− {
50− get;
51− set;
52− }
44+ new IConfigurationCellParsingState State { get; set; }
5345
5446 /// <summary>
5547 /// Gets or sets the station name of this <see cref="IConfigurationCell"/>.
5648 /// </summary>
57− string StationName
58− {
59− get;
60− set;
61− }
49+ string StationName { get; set; }
6250
6351 /// <summary>
6452 /// Gets the binary image of the <see cref="StationName"/> of this <see cref="IConfigurationCell"/>.
6553 /// </summary>
66− byte[] StationNameImage
67− {
68− get;
69− }
54+ byte[] StationNameImage { get; }
7055
7156 /// <summary>
7257 /// Gets the maximum length of the <see cref="StationName"/> of this <see cref="IConfigurationCell"/>.
7358 /// </summary>
74− int MaximumStationNameLength
75− {
76− get;
77− }
59+ int MaximumStationNameLength { get; }
7860
7961 /// <summary>
8062 /// Gets or sets the ID label of this <see cref="IConfigurationCell"/>.
8163 /// </summary>
82− string IDLabel
83− {
84− get;
85− set;
86− }
64+ string IDLabel { get; set; }
8765
8866 /// <summary>
8967 /// Gets the binary image of the <see cref="IDLabel"/> of this <see cref="IConfigurationCell"/>.
9068 /// </summary>
91− byte[] IDLabelImage
92− {
93− get;
94− }
69+ byte[] IDLabelImage { get; }
9570
9671 /// <summary>
9772 /// Gets the length of the <see cref="IDLabel"/> of this <see cref="IConfigurationCell"/>.
9873 /// </summary>
99− int IDLabelLength
100− {
101− get;
102− }
74+ int IDLabelLength { get; }
10375
10476 /// <summary>
10577 /// Gets a reference to the <see cref="PhasorDefinitionCollection"/> of this <see cref="IConfigurationCell"/>.
10678 /// </summary>
107− PhasorDefinitionCollection PhasorDefinitions
108− {
109− get;
110− }
79+ PhasorDefinitionCollection PhasorDefinitions { get; }
11180
11281 /// <summary>
11382 /// Gets or sets the <see cref="DataFormat"/> for the <see cref="IPhasorDefinition"/> objects in the <see cref="PhasorDefinitions"/> of this <see cref="IConfigurationCell"/>.
11483 /// </summary>
115− DataFormat PhasorDataFormat
116− {
117− get;
118− set;
119− }
84+ DataFormat PhasorDataFormat { get; set; }
12085
12186 /// <summary>
12287 /// Gets or sets the <see cref="CoordinateFormat"/> for the <see cref="IPhasorDefinition"/> objects in the <see cref="PhasorDefinitions"/> of this <see cref="IConfigurationCell"/>.
12388 /// </summary>
124− CoordinateFormat PhasorCoordinateFormat
125− {
126− get;
127− set;
128− }
89+ CoordinateFormat PhasorCoordinateFormat { get; set; }
12990
13091 /// <summary>
13192 /// Gets or sets the <see cref="AngleFormat"/> for the <see cref="IPhasorDefinition"/> objects in the <see cref="PhasorDefinitions"/> of this <see cref="IConfigurationCell"/>.
13293 /// </summary>
133− AngleFormat PhasorAngleFormat
134− {
135− get;
136− set;
137− }
94+ AngleFormat PhasorAngleFormat { get; set; }
13895
13996 /// <summary>
14097 /// Gets or sets the <see cref="IFrequencyDefinition"/> of this <see cref="IConfigurationCell"/>.
14198 /// </summary>
142− IFrequencyDefinition FrequencyDefinition
143− {
144− get;
145− set;
146− }
99+ IFrequencyDefinition FrequencyDefinition { get; set; }
147100
148101 /// <summary>
149102 /// Gets or sets the <see cref="DataFormat"/> of the <see cref="FrequencyDefinition"/> of this <see cref="IConfigurationCell"/>.
150103 /// </summary>
151− DataFormat FrequencyDataFormat
152− {
153− get;
154− set;
155− }
104+ DataFormat FrequencyDataFormat { get; set; }
156105
157106 /// <summary>
158107 /// Gets or sets the nominal <see cref="LineFrequency"/> of the <see cref="FrequencyDefinition"/> of this <see cref="IConfigurationCell"/>.
159108 /// </summary>
160− LineFrequency NominalFrequency
161− {
162− get;
163− set;
164− }
109+ LineFrequency NominalFrequency { get; set; }
165110
166111 /// <summary>
167112 /// Gets a reference to the <see cref="AnalogDefinitionCollection"/> of this <see cref="IConfigurationCell"/>.
168113 /// </summary>
169− AnalogDefinitionCollection AnalogDefinitions
170− {
171− get;
172− }
114+ AnalogDefinitionCollection AnalogDefinitions { get; }
173115
174116 /// <summary>
175117 /// Gets or sets the <see cref="DataFormat"/> for the <see cref="IAnalogDefinition"/> objects in the <see cref="AnalogDefinitions"/> of this <see cref="IConfigurationCell"/>.
176118 /// </summary>
177− DataFormat AnalogDataFormat
178− {
179− get;
180− set;
181− }
119+ DataFormat AnalogDataFormat { get; set; }
182120
183121 /// <summary>
184122 /// Gets a reference to the <see cref="DigitalDefinitionCollection"/> of this <see cref="IConfigurationCell"/>.
185123 /// </summary>
186− DigitalDefinitionCollection DigitalDefinitions
187− {
188− get;
189− }
124+ DigitalDefinitionCollection DigitalDefinitions { get; }
190125
191126 /// <summary>
192127 /// Gets the specified frame rate of this <see cref="IConfigurationCell"/>.
193128 /// </summary>
194− ushort FrameRate
195− {
196− get;
197− }
129+ ushort FrameRate { get; }
198130
199131 /// <summary>
200132 /// Gets or sets the revision count of this <see cref="IConfigurationCell"/>.
201133 /// </summary>
202− ushort RevisionCount
203− {
204− get;
205− set;
206− }
134+ ushort RevisionCount { get; set; }
207135 }
208136 }
Source/Libraries/GSF.PhasorProtocols/IDataCell.cs+17−75
@@ -63,104 +63,62 @@ namespace GSF.PhasorProtocols · 62 unmodified lines
6363 /// <summary>
6464 /// Gets reference to parent <see cref="IDataFrame"/> of this <see cref="IDataCell"/>.
6565 /// </summary>
66− new IDataFrame Parent
67− {
68− get;
69− set;
70− }
66+ new IDataFrame Parent { get; set; }
7167
7268 /// <summary>
7369 /// Gets or sets <see cref="IConfigurationCell"/> associated with this <see cref="IDataCell"/>.
7470 /// </summary>
75− IConfigurationCell ConfigurationCell
76− {
77− get;
78− set;
79− }
71+ IConfigurationCell ConfigurationCell { get; set; }
8072
8173 /// <summary>
8274 /// Gets or sets the parsing state for the this <see cref="IDataCell"/>.
8375 /// </summary>
84− new IDataCellParsingState State
85− {
86− get;
87− set;
88− }
76+ new IDataCellParsingState State { get; set; }
8977
9078 /// <summary>
9179 /// Gets station name of this <see cref="IDataCell"/>.
9280 /// </summary>
93− string StationName
94− {
95− get;
96− }
81+ string StationName { get; }
9782
9883 /// <summary>
9984 /// Gets ID label of this <see cref="IDataCell"/>.
10085 /// </summary>
101− string IDLabel
102− {
103− get;
104− }
86+ string IDLabel { get; }
10587
10688 /// <summary>
10789 /// Gets or sets 16-bit status flags of this <see cref="IDataCell"/>.
10890 /// </summary>
109− ushort StatusFlags
110− {
111− get;
112− set;
113− }
91+ ushort StatusFlags { get; set; }
11492
11593 /// <summary>
11694 /// Gets or sets command status flags of this <see cref="IDataCell"/>.
11795 /// </summary>
118− uint CommonStatusFlags
119− {
120− get;
121− set;
122− }
96+ uint CommonStatusFlags { get; set; }
12397
12498 /// <summary>
12599 /// Gets flag that determines if all values of this <see cref="IDataCell"/> have been assigned.
126100 /// </summary>
127− bool AllValuesAssigned
128− {
129− get;
130− }
101+ bool AllValuesAssigned { get; }
131102
132103 /// <summary>
133104 /// Gets <see cref="PhasorValueCollection"/> of this <see cref="IDataCell"/>.
134105 /// </summary>
135− PhasorValueCollection PhasorValues
136− {
137− get;
138− }
106+ PhasorValueCollection PhasorValues { get; }
139107
140108 /// <summary>
141109 /// Gets <see cref="IFrequencyValue"/> of this <see cref="IDataCell"/>.
142110 /// </summary>
143− IFrequencyValue FrequencyValue
144− {
145− get;
146− set;
147− }
111+ IFrequencyValue FrequencyValue { get; set; }
148112
149113 /// <summary>
150114 /// Gets <see cref="AnalogValueCollection"/>of this <see cref="IDataCell"/>.
151115 /// </summary>
152− AnalogValueCollection AnalogValues
153− {
154− get;
155− }
116+ AnalogValueCollection AnalogValues { get; }
156117
157118 /// <summary>
158119 /// Gets <see cref="DigitalValueCollection"/>of this <see cref="IDataCell"/>.
159120 /// </summary>
160− DigitalValueCollection DigitalValues
161− {
162− get;
163− }
121+ DigitalValueCollection DigitalValues { get; }
164122
165123 // These properties correspond to the CommonStatusFlags enumeration
166124 // allowing all protocols to implement a common set of status flags
@@ -168,38 +126,22 @@ namespace GSF.PhasorProtocols · 1 unmodified line
168126 /// <summary>
169127 /// Gets or sets flag that determines if data of this <see cref="IDataCell"/> is valid.
170128 /// </summary>
171− bool DataIsValid
172− {
173− get;
174− set;
175− }
129+ bool DataIsValid { get; set; }
176130
177131 /// <summary>
178132 /// Gets or sets flag that determines if timestamp of this <see cref="IDataCell"/> is valid based on GPS lock.
179133 /// </summary>
180− bool SynchronizationIsValid
181− {
182− get;
183− set;
184− }
134+ bool SynchronizationIsValid { get; set; }
185135
186136 /// <summary>
187− /// Gets or sets <see cref="GSF.PhasorProtocols.DataSortingType"/> of this <see cref="IDataCell"/>.
137+ /// Gets or sets <see cref="PhasorProtocols.DataSortingType"/> of this <see cref="IDataCell"/>.
188138 /// </summary>
189− DataSortingType DataSortingType
190− {
191− get;
192− set;
193− }
139+ DataSortingType DataSortingType { get; set; }
194140
195141 /// <summary>
196142 /// Gets or sets flag that determines if source device of this <see cref="IDataCell"/> is reporting an error.
197143 /// </summary>
198− bool DeviceError
199− {
200− get;
201− set;
202− }
144+ bool DeviceError { get; set; }
203145
204146 /// <summary>
205147 /// Gets the status flags of the <see cref="IDataCell"/> as a measurement value.
Source/Libraries/GSF.PhasorProtocols/IDataFrame.cs+4−19
@@ -39,37 +39,22 @@ namespace GSF.PhasorProtocols · 38 unmodified lines
3939 /// <summary>
4040 /// Gets or sets <see cref="IConfigurationFrame"/> associated with this <see cref="IDataFrame"/>.
4141 /// </summary>
42− IConfigurationFrame ConfigurationFrame
43− {
44− get;
45− set;
46− }
42+ IConfigurationFrame ConfigurationFrame { get; set; }
4743
4844 /// <summary>
4945 /// Gets reference to the <see cref="DataCellCollection"/> for this <see cref="IDataFrame"/>.
5046 /// </summary>
51− new DataCellCollection Cells
52− {
53− get;
54− }
47+ new DataCellCollection Cells { get; }
5548
5649 /// <summary>
5750 /// Gets or sets the parsing state for this <see cref="IDataFrame"/>.
5851 /// </summary>
59− new IDataFrameParsingState State
60− {
61− get;
62− set;
63− }
52+ new IDataFrameParsingState State { get; set; }
6453
6554 /// <summary>
6655 /// Gets or sets protocol specific quality flags for this <see cref="IDataFrame"/>.
6756 /// </summary>
68− uint QualityFlags
69− {
70− get;
71− set;
72− }
57+ uint QualityFlags { get; set; }
7358
7459 /// <summary>
7560 /// Gets the quality flags of the <see cref="IDataFrame"/> as a measurement value.
Source/Libraries/GSF.PhasorProtocols/IEC61850_90_5/DataCell.cs+1−1
@@ -183,7 +183,7 @@ namespace GSF.PhasorProtocols.IEC61850_90_5 · 182 unmodified lines
183183 }
184184
185185 /// <summary>
186− /// Gets or sets <see cref="GSF.PhasorProtocols.DataSortingType"/> of this <see cref="DataCell"/>.
186+ /// Gets or sets <see cref="PhasorProtocols.DataSortingType"/> of this <see cref="DataCell"/>.
187187 /// </summary>
188188 public override DataSortingType DataSortingType
189189 {
Source/Libraries/GSF.PhasorProtocols/IEC61850_90_5/FrameParser.cs+1−1
@@ -86,7 +86,7 @@ namespace GSF.PhasorProtocols.IEC61850_90_5 · 85 unmodified lines
8686 /// <summary>
8787 /// Creates a new <see cref="FrameParser"/>.
8888 /// </summary>
89− /// <param name="checkSumValidationFrameTypes">Frame types that should perform check-sum validation; default to <see cref="GSF.PhasorProtocols.CheckSumValidationFrameTypes.AllFrames"/></param>
89+ /// <param name="checkSumValidationFrameTypes">Frame types that should perform check-sum validation; default to <see cref="CheckSumValidationFrameTypes.AllFrames"/></param>
9090 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>
9191 public FrameParser(CheckSumValidationFrameTypes checkSumValidationFrameTypes = CheckSumValidationFrameTypes.AllFrames, bool trustHeaderLength = true)
9292 : base(checkSumValidationFrameTypes, trustHeaderLength)
Source/Libraries/GSF.PhasorProtocols/IEC61850_90_5/PhasorValue.cs+1−1
@@ -64,7 +64,7 @@ namespace GSF.PhasorProtocols.IEC61850_90_5 · 63 unmodified lines
6464 /// </summary>
6565 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>
6666 /// <param name="phasorDefinition">The <see cref="PhasorDefinition"/> associated with this <see cref="PhasorValue"/>.</param>
67− /// <param name="angle">The <see cref="GSF.Units.Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValue"/>, in radians.</param>
67+ /// <param name="angle">The <see cref="Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValue"/>, in radians.</param>
6868 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>
6969 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)
7070 : base(parent, phasorDefinition, angle, magnitude)
Source/Libraries/GSF.PhasorProtocols/IEEE1344/DataCell.cs+1−1
@@ -150,7 +150,7 @@ namespace GSF.PhasorProtocols.IEEE1344 · 149 unmodified lines
150150 }
151151
152152 /// <summary>
153− /// Gets or sets <see cref="GSF.PhasorProtocols.DataSortingType"/> of this <see cref="DataCell"/>.
153+ /// Gets or sets <see cref="PhasorProtocols.DataSortingType"/> of this <see cref="DataCell"/>.
154154 /// </summary>
155155 public override DataSortingType DataSortingType
156156 {
Source/Libraries/GSF.PhasorProtocols/IEEE1344/FrameParser.cs+1−1
@@ -92,7 +92,7 @@ namespace GSF.PhasorProtocols.IEEE1344 · 91 unmodified lines
9292 /// <summary>
9393 /// Creates a new <see cref="FrameParser"/>.
9494 /// </summary>
95− /// <param name="checkSumValidationFrameTypes">Frame types that should perform check-sum validation; default to <see cref="GSF.PhasorProtocols.CheckSumValidationFrameTypes.AllFrames"/></param>
95+ /// <param name="checkSumValidationFrameTypes">Frame types that should perform check-sum validation; default to <see cref="CheckSumValidationFrameTypes.AllFrames"/></param>
9696 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>
9797 public FrameParser(CheckSumValidationFrameTypes checkSumValidationFrameTypes = CheckSumValidationFrameTypes.AllFrames, bool trustHeaderLength = true)
9898 : base(checkSumValidationFrameTypes, trustHeaderLength)
Source/Libraries/GSF.PhasorProtocols/IEEE1344/PhasorValue.cs+1−1
@@ -66,7 +66,7 @@ namespace GSF.PhasorProtocols.IEEE1344 · 65 unmodified lines
6666 /// </summary>
6767 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>
6868 /// <param name="phasorDefinition">The <see cref="PhasorDefinition"/> associated with this <see cref="PhasorValue"/>.</param>
69− /// <param name="angle">The <see cref="GSF.Units.Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValue"/>, in radians.</param>
69+ /// <param name="angle">The <see cref="Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValue"/>, in radians.</param>
7070 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>
7171 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)
7272 : base(parent, phasorDefinition, angle, magnitude)
Source/Libraries/GSF.PhasorProtocols/IEEEC37_118/DataCell.cs+1−1
@@ -201,7 +201,7 @@ namespace GSF.PhasorProtocols.IEEEC37_118 · 200 unmodified lines
201201 }
202202
203203 /// <summary>
204− /// Gets or sets <see cref="GSF.PhasorProtocols.DataSortingType"/> of this <see cref="DataCell"/>.
204+ /// Gets or sets <see cref="PhasorProtocols.DataSortingType"/> of this <see cref="DataCell"/>.
205205 /// </summary>
206206 public override DataSortingType DataSortingType
207207 {
Source/Libraries/GSF.PhasorProtocols/IEEEC37_118/DigitalDefinition3.cs+2−2
@@ -187,10 +187,10 @@ namespace GSF.PhasorProtocols.IEEEC37_118 · 186 unmodified lines
187187 public DraftRevision DraftRevision => DraftRevision.Std2011;
188188
189189 /// <summary>
190− /// Gets the <see cref="GSF.PhasorProtocols.DataFormat"/> of this <see cref="DigitalDefinitionBase"/>.
190+ /// Gets the <see cref="PhasorProtocols.DataFormat"/> of this <see cref="DigitalDefinitionBase"/>.
191191 /// </summary>
192192 /// <remarks>
193− /// Data format for digital values will always be <see cref="GSF.PhasorProtocols.DataFormat.FixedInteger"/>.
193+ /// Data format for digital values will always be <see cref="DataFormat.FixedInteger"/>.
194194 /// </remarks>
195195 [EditorBrowsable(EditorBrowsableState.Never)]
196196 public override DataFormat DataFormat => DataFormat.FixedInteger;
Source/Libraries/GSF.PhasorProtocols/IEEEC37_118/FrameParser.cs+1−1
@@ -109,7 +109,7 @@ namespace GSF.PhasorProtocols.IEEEC37_118 · 108 unmodified lines
109109 /// <summary>
110110 /// Creates a new <see cref="FrameParser"/>.
111111 /// </summary>
112− /// <param name="checkSumValidationFrameTypes">Frame types that should perform check-sum validation; default to <see cref="GSF.PhasorProtocols.CheckSumValidationFrameTypes.AllFrames"/></param>
112+ /// <param name="checkSumValidationFrameTypes">Frame types that should perform check-sum validation; default to <see cref="CheckSumValidationFrameTypes.AllFrames"/></param>
113113 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>
114114 /// <param name="draftRevision">The <see cref="IEEEC37_118.DraftRevision"/> of this <see cref="FrameParser"/>.</param>
115115 public FrameParser(CheckSumValidationFrameTypes checkSumValidationFrameTypes = CheckSumValidationFrameTypes.AllFrames, bool trustHeaderLength = true, DraftRevision draftRevision = DraftRevision.Std2005)
Source/Libraries/GSF.PhasorProtocols/IEEEC37_118/PhasorValue.cs+1−1
@@ -66,7 +66,7 @@ namespace GSF.PhasorProtocols.IEEEC37_118 · 65 unmodified lines
6666 /// </summary>
6767 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>
6868 /// <param name="phasorDefinition">The <see cref="PhasorDefinition"/> associated with this <see cref="PhasorValue"/>.</param>
69− /// <param name="angle">The <see cref="GSF.Units.Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValue"/>, in radians.</param>
69+ /// <param name="angle">The <see cref="Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValue"/>, in radians.</param>
7070 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>
7171 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)
7272 : base(parent, phasorDefinition, angle, magnitude)
Source/Libraries/GSF.PhasorProtocols/IFrameParser.cs+1−1
@@ -224,7 +224,7 @@ namespace GSF.PhasorProtocols · 223 unmodified lines
224224 /// Gets or sets flags that determine if check-sums for specified frames should be validated.
225225 /// </summary>
226226 /// <remarks>
227− /// It is expected that this will normally be set to <see cref="GSF.PhasorProtocols.CheckSumValidationFrameTypes.AllFrames"/>.
227+ /// It is expected that this will normally be set to <see cref="CheckSumValidationFrameTypes.AllFrames"/>.
228228 /// </remarks>
229229 CheckSumValidationFrameTypes CheckSumValidationFrameTypes { get; set; }
230230
Source/Libraries/GSF.PhasorProtocols/IFrequencyDefinition.cs+3−14
@@ -37,27 +37,16 @@ namespace GSF.PhasorProtocols · 36 unmodified lines
3737 /// <summary>
3838 /// Gets the nominal <see cref="LineFrequency"/> of this <see cref="IFrequencyDefinition"/>.
3939 /// </summary>
40− LineFrequency NominalFrequency
41− {
42− get;
43− }
40+ LineFrequency NominalFrequency { get; }
4441
4542 /// <summary>
4643 /// Gets or sets the df/dt offset of this <see cref="IFrequencyDefinition"/>.
4744 /// </summary>
48− double DfDtOffset
49− {
50− get;
51− set;
52− }
45+ double DfDtOffset { get; set; }
5346
5447 /// <summary>
5548 /// Gets or sets the df/dt scaling value of this <see cref="IFrequencyDefinition"/>.
5649 /// </summary>
57− uint DfDtScalingValue
58− {
59− get;
60− set;
61− }
50+ uint DfDtScalingValue { get; set; }
6251 }
6352 }
Source/Libraries/GSF.PhasorProtocols/IPhasorDefinition.cs+6−20
@@ -69,29 +69,19 @@ namespace GSF.PhasorProtocols · 68 unmodified lines
6969 public interface IPhasorDefinition : IChannelDefinition
7070 {
7171 /// <summary>
72− /// Gets or sets the <see cref="GSF.PhasorProtocols.CoordinateFormat"/> of this <see cref="IPhasorDefinition"/>.
72+ /// Gets or sets the <see cref="PhasorProtocols.CoordinateFormat"/> of this <see cref="IPhasorDefinition"/>.
7373 /// </summary>
74− CoordinateFormat CoordinateFormat
75− {
76− get;
77− }
74+ CoordinateFormat CoordinateFormat { get; }
7875
7976 /// <summary>
80− /// Gets or sets the <see cref="GSF.PhasorProtocols.AngleFormat"/> of this <see cref="IPhasorDefinition"/>.
77+ /// Gets or sets the <see cref="PhasorProtocols.AngleFormat"/> of this <see cref="IPhasorDefinition"/>.
8178 /// </summary>
82− AngleFormat AngleFormat
83− {
84− get;
85− }
79+ AngleFormat AngleFormat { get; }
8680
8781 /// <summary>
8882 /// Gets or sets the <see cref="PhasorType"/> of this <see cref="IPhasorDefinition"/>.
8983 /// </summary>
90− PhasorType PhasorType
91− {
92− get;
93− set;
94− }
84+ PhasorType PhasorType { get; set; }
9585
9686 /// <summary>
9787 /// Gets or sets the associated <see cref="IPhasorDefinition"/> that represents the voltage reference (if any).
@@ -99,10 +89,6 @@ namespace GSF.PhasorProtocols · 1 unmodified line
9989 /// <remarks>
10090 /// This only applies to current phasors.
10191 /// </remarks>
102− IPhasorDefinition VoltageReference
103− {
104− get;
105− set;
106− }
92+ IPhasorDefinition VoltageReference { get; set; }
10793 }
10894 }
Source/Libraries/GSF.PhasorProtocols/IPhasorValue.cs+14−50
@@ -34,89 +34,53 @@ namespace GSF.PhasorProtocols · 33 unmodified lines
3434 public interface IPhasorValue : IChannelValue<IPhasorDefinition>
3535 {
3636 /// <summary>
37− /// Gets the <see cref="GSF.PhasorProtocols.CoordinateFormat"/> of this <see cref="IPhasorValue"/>.
37+ /// Gets the <see cref="PhasorProtocols.CoordinateFormat"/> of this <see cref="IPhasorValue"/>.
3838 /// </summary>
39− CoordinateFormat CoordinateFormat
40− {
41− get;
42− }
39+ CoordinateFormat CoordinateFormat { get; }
4340
4441 /// <summary>
45− /// Gets the <see cref="GSF.PhasorProtocols.AngleFormat"/> of this <see cref="IPhasorValue"/>.
42+ /// Gets the <see cref="PhasorProtocols.AngleFormat"/> of this <see cref="IPhasorValue"/>.
4643 /// </summary>
47− AngleFormat AngleFormat
48− {
49− get;
50− }
44+ AngleFormat AngleFormat { get; }
5145
5246 /// <summary>
5347 /// Gets the <see cref="PhasorType"/> of this <see cref="IPhasorValue"/>.
5448 /// </summary>
55− PhasorType Type
56− {
57− get;
58− }
49+ PhasorType Type { get; }
5950
6051 /// <summary>
61− /// Gets <see cref="GSF.Units.EE.Phasor"/> value from this <see cref="IPhasorValue"/>.
52+ /// Gets <see cref="Units.EE.Phasor"/> value from this <see cref="IPhasorValue"/>.
6253 /// </summary>
63− Phasor Phasor
64− {
65− get;
66− }
54+ Phasor Phasor { get; }
6755
6856 /// <summary>
69− /// Gets or sets the <see cref="GSF.Units.Angle"/> value (a.k.a., the argument) of this <see cref="IPhasorValue"/>, in radians.
57+ /// Gets or sets the <see cref="Units.Angle"/> value (a.k.a., the argument) of this <see cref="IPhasorValue"/>, in radians.
7058 /// </summary>
71− Angle Angle
72− {
73− get;
74− set;
75− }
59+ Angle Angle { get; set; }
7660
7761 /// <summary>
7862 /// Gets or sets the magnitude value (a.k.a., the absolute value or modulus) of this <see cref="IPhasorValue"/>.
7963 /// </summary>
80− double Magnitude
81− {
82− get;
83− set;
84− }
64+ double Magnitude { get; set; }
8565
8666 /// <summary>
8767 /// Gets or sets the real floating point value of this <see cref="IPhasorValue"/>.
8868 /// </summary>
89− double Real
90− {
91− get;
92− set;
93− }
69+ double Real { get; set; }
9470
9571 /// <summary>
9672 /// Gets or sets the imaginary floating point value of this <see cref="IPhasorValue"/>.
9773 /// </summary>
98− double Imaginary
99− {
100− get;
101− set;
102− }
74+ double Imaginary { get; set; }
10375
10476 /// <summary>
10577 /// Gets or sets the unscaled integer representation of the real value of this <see cref="IPhasorValue"/>.
10678 /// </summary>
107− int UnscaledReal
108− {
109− get;
110− set;
111− }
79+ int UnscaledReal { get; set; }
11280
11381 /// <summary>
11482 /// Gets or sets the unscaled integer representation of the imaginary value of this <see cref="IPhasorValue"/>.
11583 /// </summary>
116− int UnscaledImaginary
117− {
118− get;
119− set;
120− }
84+ int UnscaledImaginary { get; set; }
12185 }
12286 }
Source/Libraries/GSF.PhasorProtocols/Macrodyne/CommandFrame.cs+1−1
@@ -46,7 +46,7 @@ namespace GSF.PhasorProtocols.Macrodyne · 45 unmodified lines
4646 /// <summary>
4747 /// Creates a new <see cref="CommandFrame"/> from specified parameters.
4848 /// </summary>
49− /// <param name="command">The <see cref="GSF.PhasorProtocols.DeviceCommand"/> for this <see cref="CommandFrame"/>.</param>
49+ /// <param name="command">The <see cref="PhasorProtocols.DeviceCommand"/> for this <see cref="CommandFrame"/>.</param>
5050 /// <remarks>
5151 /// This constructor is used by a consumer to generate an Macrodyne command frame.
5252 /// </remarks>
Source/Libraries/GSF.PhasorProtocols/Macrodyne/Common.cs+2−2
@@ -483,12 +483,12 @@ namespace GSF.PhasorProtocols.Macrodyne · 482 unmodified lines
483483 /// <summary>
484484 /// Start sending the reference down port1.
485485 /// </summary>
486− /// <remarks>Disable the reference before enabling reference on the other port using the command <see cref="DeviceCommand.StopSendingReference"/>.</remarks>
486+ /// <remarks>Disable the reference before enabling reference on the other port using the command <see cref="StopSendingReference"/>.</remarks>
487487 StartSendingReferencePort1 = 0xCC3E,
488488 /// <summary>
489489 /// Start sending the reference down port2.
490490 /// </summary>
491− /// <remarks>Disable the reference before enabling reference on the other port using the command <see cref="DeviceCommand.StopSendingReference"/>.</remarks>
491+ /// <remarks>Disable the reference before enabling reference on the other port using the command <see cref="StopSendingReference"/>.</remarks>
492492 StartSendingReferencePort2 = 0xCC40,
493493 /// <summary>
494494 /// Stop sending the reference down either port.
Source/Libraries/GSF.PhasorProtocols/Macrodyne/DataCell.cs+1−1
@@ -211,7 +211,7 @@ namespace GSF.PhasorProtocols.Macrodyne · 210 unmodified lines
211211 }
212212
213213 /// <summary>
214− /// Gets or sets <see cref="GSF.PhasorProtocols.DataSortingType"/> of this <see cref="DataCell"/>.
214+ /// Gets or sets <see cref="PhasorProtocols.DataSortingType"/> of this <see cref="DataCell"/>.
215215 /// </summary>
216216 public override DataSortingType DataSortingType
217217 {
Source/Libraries/GSF.PhasorProtocols/Macrodyne/FrameParser.cs+1−1
@@ -87,7 +87,7 @@ namespace GSF.PhasorProtocols.Macrodyne · 86 unmodified lines
8787 /// <summary>
8888 /// Creates a new <see cref="FrameParser"/> from specified parameters.
8989 /// </summary>
90− /// <param name="checkSumValidationFrameTypes">Frame types that should perform check-sum validation; default to <see cref="GSF.PhasorProtocols.CheckSumValidationFrameTypes.AllFrames"/></param>
90+ /// <param name="checkSumValidationFrameTypes">Frame types that should perform check-sum validation; default to <see cref="CheckSumValidationFrameTypes.AllFrames"/></param>
9191 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>
9292 /// <param name="protocolVersion">The protocol version that the parser should use.</param>
9393 /// <param name="configurationFileName">The optional external Macrodyne configuration in BPA PDCstream INI file based format.</param>
Source/Libraries/GSF.PhasorProtocols/Macrodyne/PhasorValue.cs+1−1
@@ -66,7 +66,7 @@ namespace GSF.PhasorProtocols.Macrodyne · 65 unmodified lines
6666 /// </summary>
6767 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>
6868 /// <param name="phasorDefinition">The <see cref="PhasorDefinition"/> associated with this <see cref="PhasorValue"/>.</param>
69− /// <param name="angle">The <see cref="GSF.Units.Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValue"/>, in radians.</param>
69+ /// <param name="angle">The <see cref="Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValue"/>, in radians.</param>
7070 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>
7171 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)
7272 : base(parent, phasorDefinition, angle, magnitude)
Source/Libraries/GSF.PhasorProtocols/MultiProtocolFrameParser.cs+2−2
@@ -1516,7 +1516,7 @@ namespace GSF.PhasorProtocols · 1515 unmodified lines
15161516 #region [ Properties ]
15171517
15181518 /// <summary>
1519− /// Gets or sets <see cref="GSF.PhasorProtocols.PhasorProtocol"/> to use with this <see cref="MultiProtocolFrameParser"/>.
1519+ /// Gets or sets <see cref="PhasorProtocols.PhasorProtocol"/> to use with this <see cref="MultiProtocolFrameParser"/>.
15201520 /// </summary>
15211521 public PhasorProtocol PhasorProtocol
15221522 {
@@ -1839,7 +1839,7 @@ namespace GSF.PhasorProtocols · 316 unmodified lines
18391839 /// Gets or sets flags that determine if check-sums for specified frames should be validated.
18401840 /// </summary>
18411841 /// <remarks>
1842− /// It is expected that this will normally be set to <see cref="GSF.PhasorProtocols.CheckSumValidationFrameTypes.AllFrames"/>.
1842+ /// It is expected that this will normally be set to <see cref="CheckSumValidationFrameTypes.AllFrames"/>.
18431843 /// </remarks>
18441844 public CheckSumValidationFrameTypes CheckSumValidationFrameTypes
18451845 {
Source/Libraries/GSF.PhasorProtocols/PhasorDefinitionBase.cs+3−3
@@ -93,17 +93,17 @@ namespace GSF.PhasorProtocols · 92 unmodified lines
9393 #region [ Properties ]
9494
9595 /// <summary>
96− /// Gets the <see cref="GSF.PhasorProtocols.DataFormat"/> of this <see cref="PhasorDefinitionBase"/>.
96+ /// Gets the <see cref="PhasorProtocols.DataFormat"/> of this <see cref="PhasorDefinitionBase"/>.
9797 /// </summary>
9898 public override DataFormat DataFormat => Parent.PhasorDataFormat;
9999
100100 /// <summary>
101− /// Gets or sets the <see cref="GSF.PhasorProtocols.CoordinateFormat"/> of this <see cref="PhasorDefinitionBase"/>.
101+ /// Gets or sets the <see cref="PhasorProtocols.CoordinateFormat"/> of this <see cref="PhasorDefinitionBase"/>.
102102 /// </summary>
103103 public virtual CoordinateFormat CoordinateFormat => Parent.PhasorCoordinateFormat;
104104
105105 /// <summary>
106− /// Gets or sets the <see cref="GSF.PhasorProtocols.AngleFormat"/> of this <see cref="PhasorDefinitionBase"/>.
106+ /// Gets or sets the <see cref="PhasorProtocols.AngleFormat"/> of this <see cref="PhasorDefinitionBase"/>.
107107 /// </summary>
108108 public virtual AngleFormat AngleFormat => Parent.PhasorAngleFormat;
109109
Source/Libraries/GSF.PhasorProtocols/PhasorValueBase.cs+5−5
@@ -95,7 +95,7 @@ namespace GSF.PhasorProtocols · 94 unmodified lines
9595 /// </summary>
9696 /// <param name="parent">The <see cref="IDataCell"/> parent of this <see cref="PhasorValueBase"/>.</param>
9797 /// <param name="phasorDefinition">The <see cref="IPhasorDefinition"/> associated with this <see cref="PhasorValueBase"/>.</param>
98− /// <param name="angle">The <see cref="GSF.Units.Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValueBase"/>, in radians.</param>
98+ /// <param name="angle">The <see cref="Units.Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValueBase"/>, in radians.</param>
9999 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValueBase"/>.</param>
100100 protected PhasorValueBase(IDataCell parent, IPhasorDefinition phasorDefinition, Angle angle, double magnitude)
101101 : base(parent, phasorDefinition)
@@ -122,12 +122,12 @@ namespace GSF.PhasorProtocols · 20 unmodified lines
122122 #region [ Properties ]
123123
124124 /// <summary>
125− /// Gets the <see cref="GSF.PhasorProtocols.CoordinateFormat"/> of this <see cref="PhasorValueBase"/>.
125+ /// Gets the <see cref="PhasorProtocols.CoordinateFormat"/> of this <see cref="PhasorValueBase"/>.
126126 /// </summary>
127127 public virtual CoordinateFormat CoordinateFormat => Definition.CoordinateFormat;
128128
129129 /// <summary>
130− /// Gets the <see cref="GSF.PhasorProtocols.AngleFormat"/> of this <see cref="PhasorValueBase"/>.
130+ /// Gets the <see cref="PhasorProtocols.AngleFormat"/> of this <see cref="PhasorValueBase"/>.
131131 /// </summary>
132132 public virtual AngleFormat AngleFormat => Definition.AngleFormat;
133133
@@ -137,12 +137,12 @@ namespace GSF.PhasorProtocols · 3 unmodified lines
137137 public virtual PhasorType Type => Definition.PhasorType;
138138
139139 /// <summary>
140− /// Gets <see cref="GSF.Units.EE.Phasor"/> value from this <see cref="IPhasorValue"/>.
140+ /// Gets <see cref="Units.EE.Phasor"/> value from this <see cref="IPhasorValue"/>.
141141 /// </summary>
142142 public Phasor Phasor => new(Type, m_phasor);
143143
144144 /// <summary>
145− /// Gets or sets the <see cref="GSF.Units.Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValueBase"/>, in radians.
145+ /// Gets or sets the <see cref="Units.Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValueBase"/>, in radians.
146146 /// </summary>
147147 public virtual Angle Angle
148148 {
Source/Libraries/GSF.PhasorProtocols/SelFastMessage/CommandFrame.cs+1−1
@@ -94,7 +94,7 @@ namespace GSF.PhasorProtocols.SelFastMessage · 93 unmodified lines
9494 /// <summary>
9595 /// Creates a new <see cref="CommandFrame"/> from specified parameters.
9696 /// </summary>
97− /// <param name="command">The <see cref="GSF.PhasorProtocols.DeviceCommand"/> for this <see cref="CommandFrame"/>.</param>
97+ /// <param name="command">The <see cref="PhasorProtocols.DeviceCommand"/> for this <see cref="CommandFrame"/>.</param>
9898 /// <param name="messagePeriod">The desired <see cref="SelFastMessage.MessagePeriod"/> for SEL device connection.</param>
9999 /// <remarks>
100100 /// This constructor is used by a consumer to generate an SEL Fast Message command frame.
Source/Libraries/GSF.PhasorProtocols/SelFastMessage/DataCell.cs+1−1
@@ -148,7 +148,7 @@ namespace GSF.PhasorProtocols.SelFastMessage · 147 unmodified lines
148148 }
149149
150150 /// <summary>
151− /// Gets or sets <see cref="GSF.PhasorProtocols.DataSortingType"/> of this <see cref="DataCell"/>.
151+ /// Gets or sets <see cref="PhasorProtocols.DataSortingType"/> of this <see cref="DataCell"/>.
152152 /// </summary>
153153 public override DataSortingType DataSortingType
154154 {
Source/Libraries/GSF.PhasorProtocols/SelFastMessage/FrameParser.cs+2−2
@@ -63,14 +63,14 @@ namespace GSF.PhasorProtocols.SelFastMessage · 62 unmodified lines
6363 // Fields
6464 private ConfigurationFrame m_configurationFrame;
6565
66− #endregion
66+ #endregion
6767
6868 #region [ Constructors ]
6969
7070 /// <summary>
7171 /// Creates a new <see cref="FrameParser"/> from specified parameters.
7272 /// </summary>
73− /// <param name="checkSumValidationFrameTypes">Frame types that should perform check-sum validation; default to <see cref="GSF.PhasorProtocols.CheckSumValidationFrameTypes.AllFrames"/></param>
73+ /// <param name="checkSumValidationFrameTypes">Frame types that should perform check-sum validation; default to <see cref="CheckSumValidationFrameTypes.AllFrames"/></param>
7474 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>
7575 /// <param name="messagePeriod">The desired <see cref="SelFastMessage.MessagePeriod"/> for SEL device connection.</param>
7676 public FrameParser(CheckSumValidationFrameTypes checkSumValidationFrameTypes = CheckSumValidationFrameTypes.AllFrames, bool trustHeaderLength = true, MessagePeriod messagePeriod = MessagePeriod.DefaultRate)
Source/Libraries/GSF.PhasorProtocols/SelFastMessage/PhasorValue.cs+1−1
@@ -66,7 +66,7 @@ namespace GSF.PhasorProtocols.SelFastMessage · 65 unmodified lines
6666 /// </summary>
6767 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>
6868 /// <param name="phasorDefinition">The <see cref="PhasorDefinition"/> associated with this <see cref="PhasorValue"/>.</param>
69− /// <param name="angle">The <see cref="GSF.Units.Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValue"/>, in radians.</param>
69+ /// <param name="angle">The <see cref="Angle"/> value (a.k.a., the argument) of this <see cref="PhasorValue"/>, in radians.</param>
7070 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>
7171 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)
7272 : base(parent, phasorDefinition, angle, magnitude)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t