changed to property.

pull/217/head
Andrew Moorcroft 6 years ago
parent aa5e5fa652
commit b66dcc63cf

@ -178,7 +178,7 @@ namespace IEC61850
/// </summary> /// </summary>
public class Quality public class Quality
{ {
private UInt16 value; private UInt16 value;
private const UInt16 QUALITY_DETAIL_OVERFLOW = 4; private const UInt16 QUALITY_DETAIL_OVERFLOW = 4;
private const UInt16 QUALITY_DETAIL_OUT_OF_RANGE = 8; private const UInt16 QUALITY_DETAIL_OUT_OF_RANGE = 8;
@ -193,6 +193,8 @@ namespace IEC61850
private const UInt16 QUALITY_OPERATOR_BLOCKED = 4096; private const UInt16 QUALITY_OPERATOR_BLOCKED = 4096;
private const UInt16 QUALITY_DERIVED = 8192; private const UInt16 QUALITY_DERIVED = 8192;
public ushort Value => value;
public override string ToString () public override string ToString ()
{ {
return GetValidity ().ToString (); return GetValidity ().ToString ();
@ -360,11 +362,6 @@ namespace IEC61850
this.value = (ushort) ((int) this.value & (~QUALITY_DERIVED)); this.value = (ushort) ((int) this.value & (~QUALITY_DERIVED));
} }
} }
public ushort GetValue()
{
return value;
}
} }
/// <summary> /// <summary>

Loading…
Cancel
Save