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
88 #region [ Properties ]88 #region [ Properties ]
89 89
90 /// <summary>90 /// <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"/>.
92 /// </summary>92 /// </summary>
93 public override DataFormat DataFormat => Parent.AnalogDataFormat;93 public override DataFormat DataFormat => Parent.AnalogDataFormat;
94 94
Source/Libraries/GSF.PhasorProtocols/BPAPDCstream/DataCell.cs+1−1
@@ -249,7 +249,7 @@ namespace GSF.PhasorProtocols.BPAPDCstream · 248 unmodified lines
249 }249 }
250 250
251 /// <summary>251 /// <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"/>.
253 /// </summary>253 /// </summary>
254 public override DataSortingType DataSortingType254 public override DataSortingType DataSortingType
255 {255 {
Source/Libraries/GSF.PhasorProtocols/BPAPDCstream/FrameParser.cs+1−1
@@ -80,7 +80,7 @@ namespace GSF.PhasorProtocols.BPAPDCstream · 79 unmodified lines
80 /// <summary>80 /// <summary>
81 /// Creates a new <see cref="FrameParser"/>.81 /// Creates a new <see cref="FrameParser"/>.
82 /// </summary>82 /// </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>
84 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>84 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>
85 /// <param name="configurationFileName">The required external BPA PDCstream INI based configuration file.</param>85 /// <param name="configurationFileName">The required external BPA PDCstream INI based configuration file.</param>
86 public FrameParser(CheckSumValidationFrameTypes checkSumValidationFrameTypes = CheckSumValidationFrameTypes.AllFrames, bool trustHeaderLength = true, string configurationFileName = null)86 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
66 /// </summary>66 /// </summary>
67 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>67 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>
68 /// <param name="phasorDefinition">The <see cref="PhasorDefinition"/> associated with this <see cref="PhasorValue"/>.</param>68 /// <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>
70 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>70 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>
71 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)71 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)
72 : base(parent, phasorDefinition, angle, magnitude)72 : base(parent, phasorDefinition, angle, magnitude)
@@ -106,7 +106,7 @@ namespace GSF.PhasorProtocols.BPAPDCstream · 33 unmodified lines
106 }106 }
107 107
108 /// <summary>108 /// <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.
110 /// </summary>110 /// </summary>
111 public override Angle Angle111 public override Angle Angle
112 {112 {
Source/Libraries/GSF.PhasorProtocols/ChannelDefinitionBase.cs+2−5
@@ -107,12 +107,9 @@ namespace GSF.PhasorProtocols · 106 unmodified lines
107 }107 }
108 108
109 /// <summary>109 /// <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"/>.
111 /// </summary>111 /// </summary>
112 public abstract DataFormat DataFormat112 public abstract DataFormat DataFormat { get; }
113 {
114 get;
115 }
116 113
117 /// <summary>114 /// <summary>
118 /// Gets or sets the index of this <see cref="ChannelDefinitionBase"/>.115 /// 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
100 }100 }
101 101
102 /// <summary>102 /// <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}"/>.
104 /// </summary>104 /// </summary>
105 public virtual DataFormat DataFormat => m_definition.DataFormat;105 public virtual DataFormat DataFormat => m_definition.DataFormat;
106 106
Source/Libraries/GSF.PhasorProtocols/DataCellBase.cs+6−26
@@ -297,11 +297,7 @@ namespace GSF.PhasorProtocols · 296 unmodified lines
297 /// <remarks>297 /// <remarks>
298 /// This value is used to abstractly assign the protocol independent set of <see cref="CommonStatusFlags"/>.298 /// This value is used to abstractly assign the protocol independent set of <see cref="CommonStatusFlags"/>.
299 /// </remarks>299 /// </remarks>
300 public abstract bool DataIsValid300 public abstract bool DataIsValid { get; set; }
301 {
302 get;
303 set;
304 }
305 301
306 /// <summary>302 /// <summary>
307 /// Gets or sets flag that determines if timestamp of this <see cref="DataCellBase"/> is valid based on GPS lock.303 /// 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
309 /// <remarks>305 /// <remarks>
310 /// This value is used to abstractly assign the protocol independent set of <see cref="CommonStatusFlags"/>.306 /// This value is used to abstractly assign the protocol independent set of <see cref="CommonStatusFlags"/>.
311 /// </remarks>307 /// </remarks>
312 public abstract bool SynchronizationIsValid308 public abstract bool SynchronizationIsValid { get; set; }
313 {
314 get;
315 set;
316 }
317 309
318 /// <summary>310 /// <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"/>.
320 /// </summary>312 /// </summary>
321 /// <remarks>313 /// <remarks>
322 /// This value is used to abstractly assign the protocol independent set of <see cref="CommonStatusFlags"/>.314 /// This value is used to abstractly assign the protocol independent set of <see cref="CommonStatusFlags"/>.
323 /// </remarks>315 /// </remarks>
324 public abstract DataSortingType DataSortingType316 public abstract DataSortingType DataSortingType { get; set; }
325 {
326 get;
327 set;
328 }
329 317
330 /// <summary>318 /// <summary>
331 /// Gets or sets flag that determines if source device of this <see cref="DataCellBase"/> is reporting an error.319 /// 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
333 /// <remarks>321 /// <remarks>
334 /// This value is used to abstractly assign the protocol independent set of <see cref="CommonStatusFlags"/>.322 /// This value is used to abstractly assign the protocol independent set of <see cref="CommonStatusFlags"/>.
335 /// </remarks>323 /// </remarks>
336 public abstract bool DeviceError324 public abstract bool DeviceError { get; set; }
337 {
338 get;
339 set;
340 }
341 325
342 /// <summary>326 /// <summary>
343 /// Gets or sets flag that determines if data is modified by a post-processing327 /// Gets or sets flag that determines if data is modified by a post-processing
@@ -346,11 +330,7 @@ namespace GSF.PhasorProtocols · 2 unmodified lines
346 /// <remarks>330 /// <remarks>
347 /// This value is used to abstractly assign the protocol independent set of <see cref="CommonStatusFlags"/>.331 /// This value is used to abstractly assign the protocol independent set of <see cref="CommonStatusFlags"/>.
348 /// </remarks>332 /// </remarks>
349 public virtual bool DataModified333 public virtual bool DataModified { get; set; }
350 {
351 get;
352 set;
353 }
354 334
355 /// <summary>335 /// <summary>
356 /// Gets the length of the <see cref="BodyImage"/>.336 /// 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
107 /// <summary>107 /// <summary>
108 /// Gets or sets protocol specific quality flags for this <see cref="DataFrameBase"/>.108 /// Gets or sets protocol specific quality flags for this <see cref="DataFrameBase"/>.
109 /// </summary>109 /// </summary>
110 public virtual uint QualityFlags110 public virtual uint QualityFlags { get; set; }
111 {
112 get;
113 set;
114 }
115 111
116 /// <summary>112 /// <summary>
117 /// Gets the numeric ID code for this <see cref="DataFrameBase"/>.113 /// 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
77 #region [ Properties ]77 #region [ Properties ]
78 78
79 /// <summary>79 /// <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"/>.
81 /// </summary>81 /// </summary>
82 /// <remarks>82 /// <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"/>.
84 /// </remarks>84 /// </remarks>
85 [EditorBrowsable(EditorBrowsableState.Never)]85 [EditorBrowsable(EditorBrowsableState.Never)]
86 public sealed override DataFormat DataFormat => DataFormat.FixedInteger;86 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
127 }127 }
128 128
129 /// <summary>129 /// <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"/>.
131 /// </summary>131 /// </summary>
132 public override DataSortingType DataSortingType132 public override DataSortingType DataSortingType
133 {133 {
Source/Libraries/GSF.PhasorProtocols/FNET/FrameParser.cs+2−2
@@ -63,14 +63,14 @@ namespace GSF.PhasorProtocols.FNET · 62 unmodified lines
63 // Fields63 // Fields
64 private ConfigurationFrame m_configurationFrame;64 private ConfigurationFrame m_configurationFrame;
65 65
66 #endregion66 #endregion
67 67
68 #region [ Constructors ]68 #region [ Constructors ]
69 69
70 /// <summary>70 /// <summary>
71 /// Creates a new <see cref="FrameParser"/>.71 /// Creates a new <see cref="FrameParser"/>.
72 /// </summary>72 /// </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>
74 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>74 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>
75 /// <param name="frameRate">The defined frame rate of this <see cref="ConfigurationFrame"/>.</param>75 /// <param name="frameRate">The defined frame rate of this <see cref="ConfigurationFrame"/>.</param>
76 /// <param name="nominalFrequency">The nominal <see cref="LineFrequency"/> of this <see cref="ConfigurationFrame"/>.</param>76 /// <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
66 /// </summary>66 /// </summary>
67 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>67 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>
68 /// <param name="phasorDefinition">The <see cref="PhasorDefinition"/> associated with this <see cref="PhasorValue"/>.</param>68 /// <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>
70 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>70 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>
71 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)71 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)
72 : base(parent, phasorDefinition, angle, magnitude)72 : base(parent, phasorDefinition, angle, magnitude)
Source/Libraries/GSF.PhasorProtocols/FrameParserBase.cs+2−2
@@ -150,7 +150,7 @@ namespace GSF.PhasorProtocols · 149 unmodified lines
150 /// <summary>150 /// <summary>
151 /// Creates a new <see cref="FrameParserBase{TypeIndentifier}"/>.151 /// Creates a new <see cref="FrameParserBase{TypeIndentifier}"/>.
152 /// </summary>152 /// </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>
154 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>154 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>
155 protected FrameParserBase(CheckSumValidationFrameTypes checkSumValidationFrameTypes, bool trustHeaderLength)155 protected FrameParserBase(CheckSumValidationFrameTypes checkSumValidationFrameTypes, bool trustHeaderLength)
156 {156 {
@@ -200,7 +200,7 @@ namespace GSF.PhasorProtocols · 43 unmodified lines
200 /// Gets or sets flags that determine if check-sums for specified frames should be validated.200 /// Gets or sets flags that determine if check-sums for specified frames should be validated.
201 /// </summary>201 /// </summary>
202 /// <remarks>202 /// <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"/>.
204 /// </remarks>204 /// </remarks>
205 public CheckSumValidationFrameTypes CheckSumValidationFrameTypes { get; set; }205 public CheckSumValidationFrameTypes CheckSumValidationFrameTypes { get; set; }
206 206
Source/Libraries/GSF.PhasorProtocols/FrequencyDefinitionBase.cs+1−1
@@ -93,7 +93,7 @@ namespace GSF.PhasorProtocols · 92 unmodified lines
93 #region [ Properties ]93 #region [ Properties ]
94 94
95 /// <summary>95 /// <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"/>.
97 /// </summary>97 /// </summary>
98 public override DataFormat DataFormat => Parent.FrequencyDataFormat;98 public override DataFormat DataFormat => Parent.FrequencyDataFormat;
99 99
Source/Libraries/GSF.PhasorProtocols/IAnalogDefintion.cs+1−5
@@ -63,10 +63,6 @@ namespace GSF.PhasorProtocols · 62 unmodified lines
63 /// <summary>63 /// <summary>
64 /// Gets or sets <see cref="AnalogType"/> of this <see cref="IAnalogDefinition"/>.64 /// Gets or sets <see cref="AnalogType"/> of this <see cref="IAnalogDefinition"/>.
65 /// </summary>65 /// </summary>
66 AnalogType AnalogType66 AnalogType AnalogType { get; set; }
67 {
68 get;
69 set;
70 }
71 }67 }
72}68}
Source/Libraries/GSF.PhasorProtocols/IChannelCell.cs+3−15
@@ -44,20 +44,12 @@ namespace GSF.PhasorProtocols · 43 unmodified lines
44 /// <summary>44 /// <summary>
45 /// Gets a reference to the parent <see cref="IChannelFrame"/> for this <see cref="IChannelCell"/>.45 /// Gets a reference to the parent <see cref="IChannelFrame"/> for this <see cref="IChannelCell"/>.
46 /// </summary>46 /// </summary>
47 IChannelFrame Parent47 IChannelFrame Parent { get; set; }
48 {
49 get;
50 set;
51 }
52 48
53 /// <summary>49 /// <summary>
54 /// Gets or sets the parsing state for the this <see cref="ChannelCellBase"/>.50 /// Gets or sets the parsing state for the this <see cref="ChannelCellBase"/>.
55 /// </summary>51 /// </summary>
56 new IChannelCellParsingState State52 new IChannelCellParsingState State { get; set; }
57 {
58 get;
59 set;
60 }
61 53
62 /// <summary>54 /// <summary>
63 /// Gets the numeric ID code for this <see cref="IChannelCell"/>.55 /// Gets the numeric ID code for this <see cref="IChannelCell"/>.
@@ -66,10 +58,6 @@ namespace GSF.PhasorProtocols · 2 unmodified lines
66 /// Most phasor measurement devices define some kind of numeric identifier (e.g., a hardware identifier coded into the device ROM); this is the58 /// Most phasor measurement devices define some kind of numeric identifier (e.g., a hardware identifier coded into the device ROM); this is the
67 /// abstract representation of this identifier.59 /// abstract representation of this identifier.
68 /// </remarks>60 /// </remarks>
69 ushort IDCode61 ushort IDCode { get; set; }
70 {
71 get;
72 set;
73 }
74 }62 }
75}63}
Source/Libraries/GSF.PhasorProtocols/IChannelDefinition.cs+2−2
@@ -67,9 +67,9 @@ namespace GSF.PhasorProtocols · 66 unmodified lines
67 /// Gets the <see cref="IConfigurationCell"/> parent of this <see cref="IChannelDefinition"/>.67 /// Gets the <see cref="IConfigurationCell"/> parent of this <see cref="IChannelDefinition"/>.
68 /// </summary>68 /// </summary>
69 IConfigurationCell Parent { get; set; }69 IConfigurationCell Parent { get; set; }
70 70
71 /// <summary>71 /// <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"/>.
73 /// </summary>73 /// </summary>
74 DataFormat DataFormat { get; }74 DataFormat DataFormat { get; }
75 75
Source/Libraries/GSF.PhasorProtocols/IChannelFrame.cs+6−26
@@ -90,35 +90,22 @@ namespace GSF.PhasorProtocols · 89 unmodified lines
90 /// <summary>90 /// <summary>
91 /// Gets the <see cref="FundamentalFrameType"/> for this <see cref="IChannelFrame"/>.91 /// Gets the <see cref="FundamentalFrameType"/> for this <see cref="IChannelFrame"/>.
92 /// </summary>92 /// </summary>
93 FundamentalFrameType FrameType93 FundamentalFrameType FrameType { get; }
94 {
95 get;
96 }
97 94
98 /// <summary>95 /// <summary>
99 /// Gets the simple reference to the collection of cells for this <see cref="IChannelFrame"/>.96 /// Gets the simple reference to the collection of cells for this <see cref="IChannelFrame"/>.
100 /// </summary>97 /// </summary>
101 object Cells98 object Cells { get; }
102 {
103 get;
104 }
105 99
106 /// <summary>100 /// <summary>
107 /// Gets or sets the ID code of this <see cref="IChannelFrame"/>.101 /// Gets or sets the ID code of this <see cref="IChannelFrame"/>.
108 /// </summary>102 /// </summary>
109 ushort IDCode103 ushort IDCode { get; set; }
110 {
111 get;
112 set;
113 }
114 104
115 /// <summary>105 /// <summary>
116 /// Gets UNIX based time representation of the ticks of this <see cref="IChannelFrame"/>.106 /// Gets UNIX based time representation of the ticks of this <see cref="IChannelFrame"/>.
117 /// </summary>107 /// </summary>
118 UnixTimeTag TimeTag108 UnixTimeTag TimeTag { get; }
119 {
120 get;
121 }
122 }109 }
123 110
124 /// <summary>111 /// <summary>
@@ -135,18 +122,11 @@ namespace GSF.PhasorProtocols · 10 unmodified lines
135 /// <summary>122 /// <summary>
136 /// Gets the strongly-typed reference to the collection of cells for this <see cref="IChannelFrame{T}"/>.123 /// Gets the strongly-typed reference to the collection of cells for this <see cref="IChannelFrame{T}"/>.
137 /// </summary>124 /// </summary>
138 new IChannelCellCollection<T> Cells125 new IChannelCellCollection<T> Cells { get; }
139 {
140 get;
141 }
142 126
143 /// <summary>127 /// <summary>
144 /// Gets or sets the parsing state for this <see cref="IChannelFrame{T}"/>.128 /// Gets or sets the parsing state for this <see cref="IChannelFrame{T}"/>.
145 /// </summary>129 /// </summary>
146 new IChannelFrameParsingState<T> State130 new IChannelFrameParsingState<T> State { get; set; }
147 {
148 get;
149 set;
150 }
151 }131 }
152}132}
Source/Libraries/GSF.PhasorProtocols/IChannelFrameParsingState.cs+4−19
@@ -49,19 +49,12 @@ namespace GSF.PhasorProtocols · 48 unmodified lines
49 /// <summary>49 /// <summary>
50 /// Gets reference to delegate used to create a new <see cref="IChannelCell"/> object.50 /// Gets reference to delegate used to create a new <see cref="IChannelCell"/> object.
51 /// </summary>51 /// </summary>
52 CreateNewCellFunction<T> CreateNewCell52 CreateNewCellFunction<T> CreateNewCell { get; }
53 {
54 get;
55 }
56 53
57 /// <summary>54 /// <summary>
58 /// Gets or sets number of cells that are expected in associated <see cref="IChannelFrame"/> being parsed.55 /// Gets or sets number of cells that are expected in associated <see cref="IChannelFrame"/> being parsed.
59 /// </summary>56 /// </summary>
60 int CellCount57 int CellCount { get; set; }
61 {
62 get;
63 set;
64 }
65 58
66 /// <summary>59 /// <summary>
67 /// Gets or sets flag that determines if header lengths should be trusted over parsed byte count.60 /// 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
69 /// <remarks>62 /// <remarks>
70 /// It is expected that this will normally be left as <c>true</c>.63 /// It is expected that this will normally be left as <c>true</c>.
71 /// </remarks>64 /// </remarks>
72 bool TrustHeaderLength65 bool TrustHeaderLength { get; set; }
73 {
74 get;
75 set;
76 }
77 66
78 /// <summary>67 /// <summary>
79 /// Gets or sets flag that determines if frame's check-sum should be validated.68 /// Gets or sets flag that determines if frame's check-sum should be validated.
@@ -81,10 +70,6 @@ namespace GSF.PhasorProtocols · 1 unmodified line
81 /// <remarks>70 /// <remarks>
82 /// It is expected that this will normally be left as <c>true</c>.71 /// It is expected that this will normally be left as <c>true</c>.
83 /// </remarks>72 /// </remarks>
84 bool ValidateCheckSum73 bool ValidateCheckSum { get; set; }
85 {
86 get;
87 set;
88 }
89 }74 }
90}75}
Source/Libraries/GSF.PhasorProtocols/IChannelValue.cs+1−1
@@ -54,7 +54,7 @@ namespace GSF.PhasorProtocols · 53 unmodified lines
54 T Definition { get; set; }54 T Definition { get; set; }
55 55
56 /// <summary>56 /// <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"/>.
58 /// </summary>58 /// </summary>
59 DataFormat DataFormat { get; }59 DataFormat DataFormat { get; }
60 60
Source/Libraries/GSF.PhasorProtocols/IConfigurationCell.cs+20−92
@@ -36,173 +36,101 @@ namespace GSF.PhasorProtocols · 35 unmodified lines
36 /// <summary>36 /// <summary>
37 /// Gets a reference to the parent <see cref="IConfigurationFrame"/> for this <see cref="IConfigurationCell"/>.37 /// Gets a reference to the parent <see cref="IConfigurationFrame"/> for this <see cref="IConfigurationCell"/>.
38 /// </summary>38 /// </summary>
39 new IConfigurationFrame Parent39 new IConfigurationFrame Parent { get; set; }
40 {
41 get;
42 set;
43 }
44 40
45 /// <summary>41 /// <summary>
46 /// Gets or sets the parsing state for the this <see cref="IConfigurationCell"/>.42 /// Gets or sets the parsing state for the this <see cref="IConfigurationCell"/>.
47 /// </summary>43 /// </summary>
48 new IConfigurationCellParsingState State44 new IConfigurationCellParsingState State { get; set; }
49 {
50 get;
51 set;
52 }
53 45
54 /// <summary>46 /// <summary>
55 /// Gets or sets the station name of this <see cref="IConfigurationCell"/>.47 /// Gets or sets the station name of this <see cref="IConfigurationCell"/>.
56 /// </summary>48 /// </summary>
57 string StationName49 string StationName { get; set; }
58 {
59 get;
60 set;
61 }
62 50
63 /// <summary>51 /// <summary>
64 /// Gets the binary image of the <see cref="StationName"/> of this <see cref="IConfigurationCell"/>.52 /// Gets the binary image of the <see cref="StationName"/> of this <see cref="IConfigurationCell"/>.
65 /// </summary>53 /// </summary>
66 byte[] StationNameImage54 byte[] StationNameImage { get; }
67 {
68 get;
69 }
70 55
71 /// <summary>56 /// <summary>
72 /// Gets the maximum length of the <see cref="StationName"/> of this <see cref="IConfigurationCell"/>.57 /// Gets the maximum length of the <see cref="StationName"/> of this <see cref="IConfigurationCell"/>.
73 /// </summary>58 /// </summary>
74 int MaximumStationNameLength59 int MaximumStationNameLength { get; }
75 {
76 get;
77 }
78 60
79 /// <summary>61 /// <summary>
80 /// Gets or sets the ID label of this <see cref="IConfigurationCell"/>.62 /// Gets or sets the ID label of this <see cref="IConfigurationCell"/>.
81 /// </summary>63 /// </summary>
82 string IDLabel64 string IDLabel { get; set; }
83 {
84 get;
85 set;
86 }
87 65
88 /// <summary>66 /// <summary>
89 /// Gets the binary image of the <see cref="IDLabel"/> of this <see cref="IConfigurationCell"/>.67 /// Gets the binary image of the <see cref="IDLabel"/> of this <see cref="IConfigurationCell"/>.
90 /// </summary>68 /// </summary>
91 byte[] IDLabelImage69 byte[] IDLabelImage { get; }
92 {
93 get;
94 }
95 70
96 /// <summary>71 /// <summary>
97 /// Gets the length of the <see cref="IDLabel"/> of this <see cref="IConfigurationCell"/>.72 /// Gets the length of the <see cref="IDLabel"/> of this <see cref="IConfigurationCell"/>.
98 /// </summary>73 /// </summary>
99 int IDLabelLength74 int IDLabelLength { get; }
100 {
101 get;
102 }
103 75
104 /// <summary>76 /// <summary>
105 /// Gets a reference to the <see cref="PhasorDefinitionCollection"/> of this <see cref="IConfigurationCell"/>.77 /// Gets a reference to the <see cref="PhasorDefinitionCollection"/> of this <see cref="IConfigurationCell"/>.
106 /// </summary>78 /// </summary>
107 PhasorDefinitionCollection PhasorDefinitions79 PhasorDefinitionCollection PhasorDefinitions { get; }
108 {
109 get;
110 }
111 80
112 /// <summary>81 /// <summary>
113 /// Gets or sets the <see cref="DataFormat"/> for the <see cref="IPhasorDefinition"/> objects in the <see cref="PhasorDefinitions"/> of this <see cref="IConfigurationCell"/>.82 /// Gets or sets the <see cref="DataFormat"/> for the <see cref="IPhasorDefinition"/> objects in the <see cref="PhasorDefinitions"/> of this <see cref="IConfigurationCell"/>.
114 /// </summary>83 /// </summary>
115 DataFormat PhasorDataFormat84 DataFormat PhasorDataFormat { get; set; }
116 {
117 get;
118 set;
119 }
120 85
121 /// <summary>86 /// <summary>
122 /// Gets or sets the <see cref="CoordinateFormat"/> for the <see cref="IPhasorDefinition"/> objects in the <see cref="PhasorDefinitions"/> of this <see cref="IConfigurationCell"/>.87 /// Gets or sets the <see cref="CoordinateFormat"/> for the <see cref="IPhasorDefinition"/> objects in the <see cref="PhasorDefinitions"/> of this <see cref="IConfigurationCell"/>.
123 /// </summary>88 /// </summary>
124 CoordinateFormat PhasorCoordinateFormat89 CoordinateFormat PhasorCoordinateFormat { get; set; }
125 {
126 get;
127 set;
128 }
129 90
130 /// <summary>91 /// <summary>
131 /// Gets or sets the <see cref="AngleFormat"/> for the <see cref="IPhasorDefinition"/> objects in the <see cref="PhasorDefinitions"/> of this <see cref="IConfigurationCell"/>.92 /// Gets or sets the <see cref="AngleFormat"/> for the <see cref="IPhasorDefinition"/> objects in the <see cref="PhasorDefinitions"/> of this <see cref="IConfigurationCell"/>.
132 /// </summary>93 /// </summary>
133 AngleFormat PhasorAngleFormat94 AngleFormat PhasorAngleFormat { get; set; }
134 {
135 get;
136 set;
137 }
138 95
139 /// <summary>96 /// <summary>
140 /// Gets or sets the <see cref="IFrequencyDefinition"/> of this <see cref="IConfigurationCell"/>.97 /// Gets or sets the <see cref="IFrequencyDefinition"/> of this <see cref="IConfigurationCell"/>.
141 /// </summary>98 /// </summary>
142 IFrequencyDefinition FrequencyDefinition99 IFrequencyDefinition FrequencyDefinition { get; set; }
143 {
144 get;
145 set;
146 }
147 100
148 /// <summary>101 /// <summary>
149 /// Gets or sets the <see cref="DataFormat"/> of the <see cref="FrequencyDefinition"/> of this <see cref="IConfigurationCell"/>.102 /// Gets or sets the <see cref="DataFormat"/> of the <see cref="FrequencyDefinition"/> of this <see cref="IConfigurationCell"/>.
150 /// </summary>103 /// </summary>
151 DataFormat FrequencyDataFormat104 DataFormat FrequencyDataFormat { get; set; }
152 {
153 get;
154 set;
155 }
156 105
157 /// <summary>106 /// <summary>
158 /// Gets or sets the nominal <see cref="LineFrequency"/> of the <see cref="FrequencyDefinition"/> of this <see cref="IConfigurationCell"/>.107 /// Gets or sets the nominal <see cref="LineFrequency"/> of the <see cref="FrequencyDefinition"/> of this <see cref="IConfigurationCell"/>.
159 /// </summary>108 /// </summary>
160 LineFrequency NominalFrequency109 LineFrequency NominalFrequency { get; set; }
161 {
162 get;
163 set;
164 }
165 110
166 /// <summary>111 /// <summary>
167 /// Gets a reference to the <see cref="AnalogDefinitionCollection"/> of this <see cref="IConfigurationCell"/>.112 /// Gets a reference to the <see cref="AnalogDefinitionCollection"/> of this <see cref="IConfigurationCell"/>.
168 /// </summary>113 /// </summary>
169 AnalogDefinitionCollection AnalogDefinitions114 AnalogDefinitionCollection AnalogDefinitions { get; }
170 {
171 get;
172 }
173 115
174 /// <summary>116 /// <summary>
175 /// Gets or sets the <see cref="DataFormat"/> for the <see cref="IAnalogDefinition"/> objects in the <see cref="AnalogDefinitions"/> of this <see cref="IConfigurationCell"/>.117 /// Gets or sets the <see cref="DataFormat"/> for the <see cref="IAnalogDefinition"/> objects in the <see cref="AnalogDefinitions"/> of this <see cref="IConfigurationCell"/>.
176 /// </summary>118 /// </summary>
177 DataFormat AnalogDataFormat119 DataFormat AnalogDataFormat { get; set; }
178 {
179 get;
180 set;
181 }
182 120
183 /// <summary>121 /// <summary>
184 /// Gets a reference to the <see cref="DigitalDefinitionCollection"/> of this <see cref="IConfigurationCell"/>.122 /// Gets a reference to the <see cref="DigitalDefinitionCollection"/> of this <see cref="IConfigurationCell"/>.
185 /// </summary>123 /// </summary>
186 DigitalDefinitionCollection DigitalDefinitions124 DigitalDefinitionCollection DigitalDefinitions { get; }
187 {
188 get;
189 }
190 125
191 /// <summary>126 /// <summary>
192 /// Gets the specified frame rate of this <see cref="IConfigurationCell"/>.127 /// Gets the specified frame rate of this <see cref="IConfigurationCell"/>.
193 /// </summary>128 /// </summary>
194 ushort FrameRate129 ushort FrameRate { get; }
195 {
196 get;
197 }
198 130
199 /// <summary>131 /// <summary>
200 /// Gets or sets the revision count of this <see cref="IConfigurationCell"/>.132 /// Gets or sets the revision count of this <see cref="IConfigurationCell"/>.
201 /// </summary>133 /// </summary>
202 ushort RevisionCount134 ushort RevisionCount { get; set; }
203 {
204 get;
205 set;
206 }
207 }135 }
208}136}
Source/Libraries/GSF.PhasorProtocols/IDataCell.cs+17−75
@@ -63,104 +63,62 @@ namespace GSF.PhasorProtocols · 62 unmodified lines
63 /// <summary>63 /// <summary>
64 /// Gets reference to parent <see cref="IDataFrame"/> of this <see cref="IDataCell"/>.64 /// Gets reference to parent <see cref="IDataFrame"/> of this <see cref="IDataCell"/>.
65 /// </summary>65 /// </summary>
66 new IDataFrame Parent66 new IDataFrame Parent { get; set; }
67 {
68 get;
69 set;
70 }
71 67
72 /// <summary>68 /// <summary>
73 /// Gets or sets <see cref="IConfigurationCell"/> associated with this <see cref="IDataCell"/>.69 /// Gets or sets <see cref="IConfigurationCell"/> associated with this <see cref="IDataCell"/>.
74 /// </summary>70 /// </summary>
75 IConfigurationCell ConfigurationCell71 IConfigurationCell ConfigurationCell { get; set; }
76 {
77 get;
78 set;
79 }
80 72
81 /// <summary>73 /// <summary>
82 /// Gets or sets the parsing state for the this <see cref="IDataCell"/>.74 /// Gets or sets the parsing state for the this <see cref="IDataCell"/>.
83 /// </summary>75 /// </summary>
84 new IDataCellParsingState State76 new IDataCellParsingState State { get; set; }
85 {
86 get;
87 set;
88 }
89 77
90 /// <summary>78 /// <summary>
91 /// Gets station name of this <see cref="IDataCell"/>.79 /// Gets station name of this <see cref="IDataCell"/>.
92 /// </summary>80 /// </summary>
93 string StationName81 string StationName { get; }
94 {
95 get;
96 }
97 82
98 /// <summary>83 /// <summary>
99 /// Gets ID label of this <see cref="IDataCell"/>.84 /// Gets ID label of this <see cref="IDataCell"/>.
100 /// </summary>85 /// </summary>
101 string IDLabel86 string IDLabel { get; }
102 {
103 get;
104 }
105 87
106 /// <summary>88 /// <summary>
107 /// Gets or sets 16-bit status flags of this <see cref="IDataCell"/>.89 /// Gets or sets 16-bit status flags of this <see cref="IDataCell"/>.
108 /// </summary>90 /// </summary>
109 ushort StatusFlags91 ushort StatusFlags { get; set; }
110 {
111 get;
112 set;
113 }
114 92
115 /// <summary>93 /// <summary>
116 /// Gets or sets command status flags of this <see cref="IDataCell"/>.94 /// Gets or sets command status flags of this <see cref="IDataCell"/>.
117 /// </summary>95 /// </summary>
118 uint CommonStatusFlags96 uint CommonStatusFlags { get; set; }
119 {
120 get;
121 set;
122 }
123 97
124 /// <summary>98 /// <summary>
125 /// Gets flag that determines if all values of this <see cref="IDataCell"/> have been assigned.99 /// Gets flag that determines if all values of this <see cref="IDataCell"/> have been assigned.
126 /// </summary>100 /// </summary>
127 bool AllValuesAssigned101 bool AllValuesAssigned { get; }
128 {
129 get;
130 }
131 102
132 /// <summary>103 /// <summary>
133 /// Gets <see cref="PhasorValueCollection"/> of this <see cref="IDataCell"/>.104 /// Gets <see cref="PhasorValueCollection"/> of this <see cref="IDataCell"/>.
134 /// </summary>105 /// </summary>
135 PhasorValueCollection PhasorValues106 PhasorValueCollection PhasorValues { get; }
136 {
137 get;
138 }
139 107
140 /// <summary>108 /// <summary>
141 /// Gets <see cref="IFrequencyValue"/> of this <see cref="IDataCell"/>.109 /// Gets <see cref="IFrequencyValue"/> of this <see cref="IDataCell"/>.
142 /// </summary>110 /// </summary>
143 IFrequencyValue FrequencyValue111 IFrequencyValue FrequencyValue { get; set; }
144 {
145 get;
146 set;
147 }
148 112
149 /// <summary>113 /// <summary>
150 /// Gets <see cref="AnalogValueCollection"/>of this <see cref="IDataCell"/>.114 /// Gets <see cref="AnalogValueCollection"/>of this <see cref="IDataCell"/>.
151 /// </summary>115 /// </summary>
152 AnalogValueCollection AnalogValues116 AnalogValueCollection AnalogValues { get; }
153 {
154 get;
155 }
156 117
157 /// <summary>118 /// <summary>
158 /// Gets <see cref="DigitalValueCollection"/>of this <see cref="IDataCell"/>.119 /// Gets <see cref="DigitalValueCollection"/>of this <see cref="IDataCell"/>.
159 /// </summary>120 /// </summary>
160 DigitalValueCollection DigitalValues121 DigitalValueCollection DigitalValues { get; }
161 {
162 get;
163 }
164 122
165 // These properties correspond to the CommonStatusFlags enumeration123 // These properties correspond to the CommonStatusFlags enumeration
166 // allowing all protocols to implement a common set of status flags124 // allowing all protocols to implement a common set of status flags
@@ -168,38 +126,22 @@ namespace GSF.PhasorProtocols · 1 unmodified line
168 /// <summary>126 /// <summary>
169 /// Gets or sets flag that determines if data of this <see cref="IDataCell"/> is valid.127 /// Gets or sets flag that determines if data of this <see cref="IDataCell"/> is valid.
170 /// </summary>128 /// </summary>
171 bool DataIsValid129 bool DataIsValid { get; set; }
172 {
173 get;
174 set;
175 }
176 130
177 /// <summary>131 /// <summary>
178 /// Gets or sets flag that determines if timestamp of this <see cref="IDataCell"/> is valid based on GPS lock.132 /// Gets or sets flag that determines if timestamp of this <see cref="IDataCell"/> is valid based on GPS lock.
179 /// </summary>133 /// </summary>
180 bool SynchronizationIsValid134 bool SynchronizationIsValid { get; set; }
181 {
182 get;
183 set;
184 }
185 135
186 /// <summary>136 /// <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"/>.
188 /// </summary>138 /// </summary>
189 DataSortingType DataSortingType139 DataSortingType DataSortingType { get; set; }
190 {
191 get;
192 set;
193 }
194 140
195 /// <summary>141 /// <summary>
196 /// Gets or sets flag that determines if source device of this <see cref="IDataCell"/> is reporting an error.142 /// Gets or sets flag that determines if source device of this <see cref="IDataCell"/> is reporting an error.
197 /// </summary>143 /// </summary>
198 bool DeviceError144 bool DeviceError { get; set; }
199 {
200 get;
201 set;
202 }
203 145
204 /// <summary>146 /// <summary>
205 /// Gets the status flags of the <see cref="IDataCell"/> as a measurement value.147 /// 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
39 /// <summary>39 /// <summary>
40 /// Gets or sets <see cref="IConfigurationFrame"/> associated with this <see cref="IDataFrame"/>.40 /// Gets or sets <see cref="IConfigurationFrame"/> associated with this <see cref="IDataFrame"/>.
41 /// </summary>41 /// </summary>
42 IConfigurationFrame ConfigurationFrame42 IConfigurationFrame ConfigurationFrame { get; set; }
43 {
44 get;
45 set;
46 }
47 43
48 /// <summary>44 /// <summary>
49 /// Gets reference to the <see cref="DataCellCollection"/> for this <see cref="IDataFrame"/>.45 /// Gets reference to the <see cref="DataCellCollection"/> for this <see cref="IDataFrame"/>.
50 /// </summary>46 /// </summary>
51 new DataCellCollection Cells47 new DataCellCollection Cells { get; }
52 {
53 get;
54 }
55 48
56 /// <summary>49 /// <summary>
57 /// Gets or sets the parsing state for this <see cref="IDataFrame"/>.50 /// Gets or sets the parsing state for this <see cref="IDataFrame"/>.
58 /// </summary>51 /// </summary>
59 new IDataFrameParsingState State52 new IDataFrameParsingState State { get; set; }
60 {
61 get;
62 set;
63 }
64 53
65 /// <summary>54 /// <summary>
66 /// Gets or sets protocol specific quality flags for this <see cref="IDataFrame"/>.55 /// Gets or sets protocol specific quality flags for this <see cref="IDataFrame"/>.
67 /// </summary>56 /// </summary>
68 uint QualityFlags57 uint QualityFlags { get; set; }
69 {
70 get;
71 set;
72 }
73 58
74 /// <summary>59 /// <summary>
75 /// Gets the quality flags of the <see cref="IDataFrame"/> as a measurement value.60 /// 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
183 }183 }
184 184
185 /// <summary>185 /// <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"/>.
187 /// </summary>187 /// </summary>
188 public override DataSortingType DataSortingType188 public override DataSortingType DataSortingType
189 {189 {
Source/Libraries/GSF.PhasorProtocols/IEC61850_90_5/FrameParser.cs+1−1
@@ -86,7 +86,7 @@ namespace GSF.PhasorProtocols.IEC61850_90_5 · 85 unmodified lines
86 /// <summary>86 /// <summary>
87 /// Creates a new <see cref="FrameParser"/>.87 /// Creates a new <see cref="FrameParser"/>.
88 /// </summary>88 /// </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>
90 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>90 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>
91 public FrameParser(CheckSumValidationFrameTypes checkSumValidationFrameTypes = CheckSumValidationFrameTypes.AllFrames, bool trustHeaderLength = true)91 public FrameParser(CheckSumValidationFrameTypes checkSumValidationFrameTypes = CheckSumValidationFrameTypes.AllFrames, bool trustHeaderLength = true)
92 : base(checkSumValidationFrameTypes, trustHeaderLength)92 : 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
64 /// </summary>64 /// </summary>
65 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>65 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>
66 /// <param name="phasorDefinition">The <see cref="PhasorDefinition"/> associated with this <see cref="PhasorValue"/>.</param>66 /// <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>
68 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>68 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>
69 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)69 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)
70 : base(parent, phasorDefinition, angle, magnitude)70 : 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
150 }150 }
151 151
152 /// <summary>152 /// <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"/>.
154 /// </summary>154 /// </summary>
155 public override DataSortingType DataSortingType155 public override DataSortingType DataSortingType
156 {156 {
Source/Libraries/GSF.PhasorProtocols/IEEE1344/FrameParser.cs+1−1
@@ -92,7 +92,7 @@ namespace GSF.PhasorProtocols.IEEE1344 · 91 unmodified lines
92 /// <summary>92 /// <summary>
93 /// Creates a new <see cref="FrameParser"/>.93 /// Creates a new <see cref="FrameParser"/>.
94 /// </summary>94 /// </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>
96 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>96 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>
97 public FrameParser(CheckSumValidationFrameTypes checkSumValidationFrameTypes = CheckSumValidationFrameTypes.AllFrames, bool trustHeaderLength = true)97 public FrameParser(CheckSumValidationFrameTypes checkSumValidationFrameTypes = CheckSumValidationFrameTypes.AllFrames, bool trustHeaderLength = true)
98 : base(checkSumValidationFrameTypes, trustHeaderLength)98 : base(checkSumValidationFrameTypes, trustHeaderLength)
Source/Libraries/GSF.PhasorProtocols/IEEE1344/PhasorValue.cs+1−1
@@ -66,7 +66,7 @@ namespace GSF.PhasorProtocols.IEEE1344 · 65 unmodified lines
66 /// </summary>66 /// </summary>
67 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>67 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>
68 /// <param name="phasorDefinition">The <see cref="PhasorDefinition"/> associated with this <see cref="PhasorValue"/>.</param>68 /// <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>
70 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>70 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>
71 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)71 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)
72 : base(parent, phasorDefinition, angle, magnitude)72 : 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
201 }201 }
202 202
203 /// <summary>203 /// <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"/>.
205 /// </summary>205 /// </summary>
206 public override DataSortingType DataSortingType206 public override DataSortingType DataSortingType
207 {207 {
Source/Libraries/GSF.PhasorProtocols/IEEEC37_118/DigitalDefinition3.cs+2−2
@@ -187,10 +187,10 @@ namespace GSF.PhasorProtocols.IEEEC37_118 · 186 unmodified lines
187 public DraftRevision DraftRevision => DraftRevision.Std2011;187 public DraftRevision DraftRevision => DraftRevision.Std2011;
188 188
189 /// <summary>189 /// <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"/>.
191 /// </summary>191 /// </summary>
192 /// <remarks>192 /// <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"/>.
194 /// </remarks>194 /// </remarks>
195 [EditorBrowsable(EditorBrowsableState.Never)]195 [EditorBrowsable(EditorBrowsableState.Never)]
196 public override DataFormat DataFormat => DataFormat.FixedInteger;196 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
109 /// <summary>109 /// <summary>
110 /// Creates a new <see cref="FrameParser"/>.110 /// Creates a new <see cref="FrameParser"/>.
111 /// </summary>111 /// </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>
113 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>113 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>
114 /// <param name="draftRevision">The <see cref="IEEEC37_118.DraftRevision"/> of this <see cref="FrameParser"/>.</param>114 /// <param name="draftRevision">The <see cref="IEEEC37_118.DraftRevision"/> of this <see cref="FrameParser"/>.</param>
115 public FrameParser(CheckSumValidationFrameTypes checkSumValidationFrameTypes = CheckSumValidationFrameTypes.AllFrames, bool trustHeaderLength = true, DraftRevision draftRevision = DraftRevision.Std2005)115 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
66 /// </summary>66 /// </summary>
67 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>67 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>
68 /// <param name="phasorDefinition">The <see cref="PhasorDefinition"/> associated with this <see cref="PhasorValue"/>.</param>68 /// <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>
70 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>70 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>
71 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)71 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)
72 : base(parent, phasorDefinition, angle, magnitude)72 : base(parent, phasorDefinition, angle, magnitude)
Source/Libraries/GSF.PhasorProtocols/IFrameParser.cs+1−1
@@ -224,7 +224,7 @@ namespace GSF.PhasorProtocols · 223 unmodified lines
224 /// Gets or sets flags that determine if check-sums for specified frames should be validated.224 /// Gets or sets flags that determine if check-sums for specified frames should be validated.
225 /// </summary>225 /// </summary>
226 /// <remarks>226 /// <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"/>.
228 /// </remarks>228 /// </remarks>
229 CheckSumValidationFrameTypes CheckSumValidationFrameTypes { get; set; }229 CheckSumValidationFrameTypes CheckSumValidationFrameTypes { get; set; }
230 230
Source/Libraries/GSF.PhasorProtocols/IFrequencyDefinition.cs+3−14
@@ -37,27 +37,16 @@ namespace GSF.PhasorProtocols · 36 unmodified lines
37 /// <summary>37 /// <summary>
38 /// Gets the nominal <see cref="LineFrequency"/> of this <see cref="IFrequencyDefinition"/>.38 /// Gets the nominal <see cref="LineFrequency"/> of this <see cref="IFrequencyDefinition"/>.
39 /// </summary>39 /// </summary>
40 LineFrequency NominalFrequency40 LineFrequency NominalFrequency { get; }
41 {
42 get;
43 }
44 41
45 /// <summary>42 /// <summary>
46 /// Gets or sets the df/dt offset of this <see cref="IFrequencyDefinition"/>.43 /// Gets or sets the df/dt offset of this <see cref="IFrequencyDefinition"/>.
47 /// </summary>44 /// </summary>
48 double DfDtOffset45 double DfDtOffset { get; set; }
49 {
50 get;
51 set;
52 }
53 46
54 /// <summary>47 /// <summary>
55 /// Gets or sets the df/dt scaling value of this <see cref="IFrequencyDefinition"/>.48 /// Gets or sets the df/dt scaling value of this <see cref="IFrequencyDefinition"/>.
56 /// </summary>49 /// </summary>
57 uint DfDtScalingValue50 uint DfDtScalingValue { get; set; }
58 {
59 get;
60 set;
61 }
62 }51 }
63}52}
Source/Libraries/GSF.PhasorProtocols/IPhasorDefinition.cs+6−20
@@ -69,29 +69,19 @@ namespace GSF.PhasorProtocols · 68 unmodified lines
69 public interface IPhasorDefinition : IChannelDefinition69 public interface IPhasorDefinition : IChannelDefinition
70 {70 {
71 /// <summary>71 /// <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"/>.
73 /// </summary>73 /// </summary>
74 CoordinateFormat CoordinateFormat74 CoordinateFormat CoordinateFormat { get; }
75 {
76 get;
77 }
78 75
79 /// <summary>76 /// <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"/>.
81 /// </summary>78 /// </summary>
82 AngleFormat AngleFormat79 AngleFormat AngleFormat { get; }
83 {
84 get;
85 }
86 80
87 /// <summary>81 /// <summary>
88 /// Gets or sets the <see cref="PhasorType"/> of this <see cref="IPhasorDefinition"/>.82 /// Gets or sets the <see cref="PhasorType"/> of this <see cref="IPhasorDefinition"/>.
89 /// </summary>83 /// </summary>
90 PhasorType PhasorType84 PhasorType PhasorType { get; set; }
91 {
92 get;
93 set;
94 }
95 85
96 /// <summary>86 /// <summary>
97 /// Gets or sets the associated <see cref="IPhasorDefinition"/> that represents the voltage reference (if any).87 /// 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
99 /// <remarks>89 /// <remarks>
100 /// This only applies to current phasors.90 /// This only applies to current phasors.
101 /// </remarks>91 /// </remarks>
102 IPhasorDefinition VoltageReference92 IPhasorDefinition VoltageReference { get; set; }
103 {
104 get;
105 set;
106 }
107 }93 }
108}94}
Source/Libraries/GSF.PhasorProtocols/IPhasorValue.cs+14−50
@@ -34,89 +34,53 @@ namespace GSF.PhasorProtocols · 33 unmodified lines
34 public interface IPhasorValue : IChannelValue<IPhasorDefinition>34 public interface IPhasorValue : IChannelValue<IPhasorDefinition>
35 {35 {
36 /// <summary>36 /// <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"/>.
38 /// </summary>38 /// </summary>
39 CoordinateFormat CoordinateFormat39 CoordinateFormat CoordinateFormat { get; }
40 {
41 get;
42 }
43 40
44 /// <summary>41 /// <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"/>.
46 /// </summary>43 /// </summary>
47 AngleFormat AngleFormat44 AngleFormat AngleFormat { get; }
48 {
49 get;
50 }
51 45
52 /// <summary>46 /// <summary>
53 /// Gets the <see cref="PhasorType"/> of this <see cref="IPhasorValue"/>.47 /// Gets the <see cref="PhasorType"/> of this <see cref="IPhasorValue"/>.
54 /// </summary>48 /// </summary>
55 PhasorType Type49 PhasorType Type { get; }
56 {
57 get;
58 }
59 50
60 /// <summary>51 /// <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"/>.
62 /// </summary>53 /// </summary>
63 Phasor Phasor54 Phasor Phasor { get; }
64 {
65 get;
66 }
67 55
68 /// <summary>56 /// <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.
70 /// </summary>58 /// </summary>
71 Angle Angle59 Angle Angle { get; set; }
72 {
73 get;
74 set;
75 }
76 60
77 /// <summary>61 /// <summary>
78 /// Gets or sets the magnitude value (a.k.a., the absolute value or modulus) of this <see cref="IPhasorValue"/>.62 /// Gets or sets the magnitude value (a.k.a., the absolute value or modulus) of this <see cref="IPhasorValue"/>.
79 /// </summary>63 /// </summary>
80 double Magnitude64 double Magnitude { get; set; }
81 {
82 get;
83 set;
84 }
85 65
86 /// <summary>66 /// <summary>
87 /// Gets or sets the real floating point value of this <see cref="IPhasorValue"/>.67 /// Gets or sets the real floating point value of this <see cref="IPhasorValue"/>.
88 /// </summary>68 /// </summary>
89 double Real69 double Real { get; set; }
90 {
91 get;
92 set;
93 }
94 70
95 /// <summary>71 /// <summary>
96 /// Gets or sets the imaginary floating point value of this <see cref="IPhasorValue"/>.72 /// Gets or sets the imaginary floating point value of this <see cref="IPhasorValue"/>.
97 /// </summary>73 /// </summary>
98 double Imaginary74 double Imaginary { get; set; }
99 {
100 get;
101 set;
102 }
103 75
104 /// <summary>76 /// <summary>
105 /// Gets or sets the unscaled integer representation of the real value of this <see cref="IPhasorValue"/>.77 /// Gets or sets the unscaled integer representation of the real value of this <see cref="IPhasorValue"/>.
106 /// </summary>78 /// </summary>
107 int UnscaledReal79 int UnscaledReal { get; set; }
108 {
109 get;
110 set;
111 }
112 80
113 /// <summary>81 /// <summary>
114 /// Gets or sets the unscaled integer representation of the imaginary value of this <see cref="IPhasorValue"/>.82 /// Gets or sets the unscaled integer representation of the imaginary value of this <see cref="IPhasorValue"/>.
115 /// </summary>83 /// </summary>
116 int UnscaledImaginary84 int UnscaledImaginary { get; set; }
117 {
118 get;
119 set;
120 }
121 }85 }
122}86}
Source/Libraries/GSF.PhasorProtocols/Macrodyne/CommandFrame.cs+1−1
@@ -46,7 +46,7 @@ namespace GSF.PhasorProtocols.Macrodyne · 45 unmodified lines
46 /// <summary>46 /// <summary>
47 /// Creates a new <see cref="CommandFrame"/> from specified parameters.47 /// Creates a new <see cref="CommandFrame"/> from specified parameters.
48 /// </summary>48 /// </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>
50 /// <remarks>50 /// <remarks>
51 /// This constructor is used by a consumer to generate an Macrodyne command frame.51 /// This constructor is used by a consumer to generate an Macrodyne command frame.
52 /// </remarks>52 /// </remarks>
Source/Libraries/GSF.PhasorProtocols/Macrodyne/Common.cs+2−2
@@ -483,12 +483,12 @@ namespace GSF.PhasorProtocols.Macrodyne · 482 unmodified lines
483 /// <summary>483 /// <summary>
484 /// Start sending the reference down port1.484 /// Start sending the reference down port1.
485 /// </summary>485 /// </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>
487 StartSendingReferencePort1 = 0xCC3E,487 StartSendingReferencePort1 = 0xCC3E,
488 /// <summary>488 /// <summary>
489 /// Start sending the reference down port2.489 /// Start sending the reference down port2.
490 /// </summary>490 /// </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>
492 StartSendingReferencePort2 = 0xCC40,492 StartSendingReferencePort2 = 0xCC40,
493 /// <summary>493 /// <summary>
494 /// Stop sending the reference down either port.494 /// 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
211 }211 }
212 212
213 /// <summary>213 /// <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"/>.
215 /// </summary>215 /// </summary>
216 public override DataSortingType DataSortingType216 public override DataSortingType DataSortingType
217 {217 {
Source/Libraries/GSF.PhasorProtocols/Macrodyne/FrameParser.cs+1−1
@@ -87,7 +87,7 @@ namespace GSF.PhasorProtocols.Macrodyne · 86 unmodified lines
87 /// <summary>87 /// <summary>
88 /// Creates a new <see cref="FrameParser"/> from specified parameters.88 /// Creates a new <see cref="FrameParser"/> from specified parameters.
89 /// </summary>89 /// </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>
91 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>91 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>
92 /// <param name="protocolVersion">The protocol version that the parser should use.</param>92 /// <param name="protocolVersion">The protocol version that the parser should use.</param>
93 /// <param name="configurationFileName">The optional external Macrodyne configuration in BPA PDCstream INI file based format.</param>93 /// <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
66 /// </summary>66 /// </summary>
67 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>67 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>
68 /// <param name="phasorDefinition">The <see cref="PhasorDefinition"/> associated with this <see cref="PhasorValue"/>.</param>68 /// <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>
70 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>70 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>
71 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)71 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)
72 : base(parent, phasorDefinition, angle, magnitude)72 : base(parent, phasorDefinition, angle, magnitude)
Source/Libraries/GSF.PhasorProtocols/MultiProtocolFrameParser.cs+2−2
@@ -1516,7 +1516,7 @@ namespace GSF.PhasorProtocols · 1515 unmodified lines
1516 #region [ Properties ]1516 #region [ Properties ]
1517 1517
1518 /// <summary>1518 /// <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"/>.
1520 /// </summary>1520 /// </summary>
1521 public PhasorProtocol PhasorProtocol1521 public PhasorProtocol PhasorProtocol
1522 {1522 {
@@ -1839,7 +1839,7 @@ namespace GSF.PhasorProtocols · 316 unmodified lines
1839 /// Gets or sets flags that determine if check-sums for specified frames should be validated.1839 /// Gets or sets flags that determine if check-sums for specified frames should be validated.
1840 /// </summary>1840 /// </summary>
1841 /// <remarks>1841 /// <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"/>.
1843 /// </remarks>1843 /// </remarks>
1844 public CheckSumValidationFrameTypes CheckSumValidationFrameTypes1844 public CheckSumValidationFrameTypes CheckSumValidationFrameTypes
1845 {1845 {
Source/Libraries/GSF.PhasorProtocols/PhasorDefinitionBase.cs+3−3
@@ -93,17 +93,17 @@ namespace GSF.PhasorProtocols · 92 unmodified lines
93 #region [ Properties ]93 #region [ Properties ]
94 94
95 /// <summary>95 /// <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"/>.
97 /// </summary>97 /// </summary>
98 public override DataFormat DataFormat => Parent.PhasorDataFormat;98 public override DataFormat DataFormat => Parent.PhasorDataFormat;
99 99
100 /// <summary>100 /// <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"/>.
102 /// </summary>102 /// </summary>
103 public virtual CoordinateFormat CoordinateFormat => Parent.PhasorCoordinateFormat;103 public virtual CoordinateFormat CoordinateFormat => Parent.PhasorCoordinateFormat;
104 104
105 /// <summary>105 /// <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"/>.
107 /// </summary>107 /// </summary>
108 public virtual AngleFormat AngleFormat => Parent.PhasorAngleFormat;108 public virtual AngleFormat AngleFormat => Parent.PhasorAngleFormat;
109 109
Source/Libraries/GSF.PhasorProtocols/PhasorValueBase.cs+5−5
@@ -95,7 +95,7 @@ namespace GSF.PhasorProtocols · 94 unmodified lines
95 /// </summary>95 /// </summary>
96 /// <param name="parent">The <see cref="IDataCell"/> parent of this <see cref="PhasorValueBase"/>.</param>96 /// <param name="parent">The <see cref="IDataCell"/> parent of this <see cref="PhasorValueBase"/>.</param>
97 /// <param name="phasorDefinition">The <see cref="IPhasorDefinition"/> associated with this <see cref="PhasorValueBase"/>.</param>97 /// <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>
99 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValueBase"/>.</param>99 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValueBase"/>.</param>
100 protected PhasorValueBase(IDataCell parent, IPhasorDefinition phasorDefinition, Angle angle, double magnitude)100 protected PhasorValueBase(IDataCell parent, IPhasorDefinition phasorDefinition, Angle angle, double magnitude)
101 : base(parent, phasorDefinition)101 : base(parent, phasorDefinition)
@@ -122,12 +122,12 @@ namespace GSF.PhasorProtocols · 20 unmodified lines
122 #region [ Properties ]122 #region [ Properties ]
123 123
124 /// <summary>124 /// <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"/>.
126 /// </summary>126 /// </summary>
127 public virtual CoordinateFormat CoordinateFormat => Definition.CoordinateFormat;127 public virtual CoordinateFormat CoordinateFormat => Definition.CoordinateFormat;
128 128
129 /// <summary>129 /// <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"/>.
131 /// </summary>131 /// </summary>
132 public virtual AngleFormat AngleFormat => Definition.AngleFormat;132 public virtual AngleFormat AngleFormat => Definition.AngleFormat;
133 133
@@ -137,12 +137,12 @@ namespace GSF.PhasorProtocols · 3 unmodified lines
137 public virtual PhasorType Type => Definition.PhasorType;137 public virtual PhasorType Type => Definition.PhasorType;
138 138
139 /// <summary>139 /// <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"/>.
141 /// </summary>141 /// </summary>
142 public Phasor Phasor => new(Type, m_phasor);142 public Phasor Phasor => new(Type, m_phasor);
143 143
144 /// <summary>144 /// <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.
146 /// </summary>146 /// </summary>
147 public virtual Angle Angle147 public virtual Angle Angle
148 {148 {
Source/Libraries/GSF.PhasorProtocols/SelFastMessage/CommandFrame.cs+1−1
@@ -94,7 +94,7 @@ namespace GSF.PhasorProtocols.SelFastMessage · 93 unmodified lines
94 /// <summary>94 /// <summary>
95 /// Creates a new <see cref="CommandFrame"/> from specified parameters.95 /// Creates a new <see cref="CommandFrame"/> from specified parameters.
96 /// </summary>96 /// </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>
98 /// <param name="messagePeriod">The desired <see cref="SelFastMessage.MessagePeriod"/> for SEL device connection.</param>98 /// <param name="messagePeriod">The desired <see cref="SelFastMessage.MessagePeriod"/> for SEL device connection.</param>
99 /// <remarks>99 /// <remarks>
100 /// This constructor is used by a consumer to generate an SEL Fast Message command frame.100 /// 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
148 }148 }
149 149
150 /// <summary>150 /// <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"/>.
152 /// </summary>152 /// </summary>
153 public override DataSortingType DataSortingType153 public override DataSortingType DataSortingType
154 {154 {
Source/Libraries/GSF.PhasorProtocols/SelFastMessage/FrameParser.cs+2−2
@@ -63,14 +63,14 @@ namespace GSF.PhasorProtocols.SelFastMessage · 62 unmodified lines
63 // Fields63 // Fields
64 private ConfigurationFrame m_configurationFrame;64 private ConfigurationFrame m_configurationFrame;
65 65
66 #endregion66 #endregion
67 67
68 #region [ Constructors ]68 #region [ Constructors ]
69 69
70 /// <summary>70 /// <summary>
71 /// Creates a new <see cref="FrameParser"/> from specified parameters.71 /// Creates a new <see cref="FrameParser"/> from specified parameters.
72 /// </summary>72 /// </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>
74 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>74 /// <param name="trustHeaderLength">Determines if header lengths should be trusted over parsed byte count.</param>
75 /// <param name="messagePeriod">The desired <see cref="SelFastMessage.MessagePeriod"/> for SEL device connection.</param>75 /// <param name="messagePeriod">The desired <see cref="SelFastMessage.MessagePeriod"/> for SEL device connection.</param>
76 public FrameParser(CheckSumValidationFrameTypes checkSumValidationFrameTypes = CheckSumValidationFrameTypes.AllFrames, bool trustHeaderLength = true, MessagePeriod messagePeriod = MessagePeriod.DefaultRate)76 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
66 /// </summary>66 /// </summary>
67 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>67 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="PhasorValue"/>.</param>
68 /// <param name="phasorDefinition">The <see cref="PhasorDefinition"/> associated with this <see cref="PhasorValue"/>.</param>68 /// <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>
70 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>70 /// <param name="magnitude">The magnitude value (a.k.a., the absolute value or modulus) of this <see cref="PhasorValue"/>.</param>
71 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)71 public PhasorValue(DataCell parent, PhasorDefinition phasorDefinition, Angle angle, double magnitude)
72 : base(parent, phasorDefinition, angle, magnitude)72 : 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