예제 #1
0
파일: AnalogValue.cs 프로젝트: avs009/gsf
 /// <summary>
 /// Creates a new <see cref="AnalogValue"/> from specified parameters.
 /// </summary>
 /// <param name="parent">The <see cref="DataCell"/> parent of this <see cref="AnalogValue"/>.</param>
 /// <param name="analogDefinition">The <see cref="AnalogDefinition"/> associated with this <see cref="AnalogValue"/>.</param>
 /// <param name="value">The floating point value that represents this <see cref="AnalogValue"/>.</param>
 public AnalogValue(DataCell parent, AnalogDefinition analogDefinition, double value)
     : base(parent, analogDefinition, value)
 {
 }
예제 #2
0
        // Static Methods

        // Delegate handler to create a new BPA PDCstream analog definition
        internal static IAnalogDefinition CreateNewDefinition(IConfigurationCell parent, byte[] binaryImage, int startIndex, out int parsedLength)
        {
            IAnalogDefinition analogDefinition = new AnalogDefinition(parent);

            parsedLength = analogDefinition.Initialize(binaryImage, startIndex, 0);

            return analogDefinition;
        }