Gemstone PhasorProtocols Library
Show/Hide TOC

# PhasorValueBase Class

Represents the common implementation of the protocol independent representation of a phasor value.

## Definition

Namespace: Gemstone.PhasorProtocols
Assembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.152 -- Release Build+17a2b82cef4e60d96465af586c572e57109f0020
C#
View Source Request Example

    [SerializableAttribute]
    public abstract class PhasorValueBase : ChannelValueBase<IPhasorDefinition>,
    	IPhasorValue, IChannelValue<IPhasorDefinition>, IChannel, ISupportBinaryImage,
    	ISerializable

VB
View Source Request Example

    <SerializableAttribute>
    Public MustInherit Class PhasorValueBase
    	Inherits ChannelValueBase(Of IPhasorDefinition)
    	Implements IPhasorValue, IChannelValue(Of IPhasorDefinition),
    	IChannel, ISupportBinaryImage, ISerializable

C++
View Source Request Example

    [SerializableAttribute]
    public ref class PhasorValueBase abstract : public ChannelValueBase<IPhasorDefinition^>,
    	IPhasorValue, IChannelValue<IPhasorDefinition^>, IChannel, ISupportBinaryImage,
    	ISerializable

JavaScript
View Source Request Example

    Gemstone.PhasorProtocols.PhasorValueBase = function();

    Type.createClass(
    	'Gemstone.PhasorProtocols.PhasorValueBase',
    	Gemstone.PhasorProtocols.ChannelValueBase`1,
    	Gemstone.PhasorProtocols.IPhasorValue,
    	Gemstone.PhasorProtocols.IChannelValue`1,
    	Gemstone.PhasorProtocols.IChannel,
    	ISupportBinaryImage,
    	ISerializable);

Inheritance
  Object BinaryImageBase ChannelBase ChannelValueBase IPhasorDefinition PhasorValueBase

Derived
  Gemstone.PhasorProtocols.BPAPDCstreamPhasorValue
  Gemstone.PhasorProtocols.FNETPhasorValue
  Gemstone.PhasorProtocols.IEC61850_90_5PhasorValue
  Gemstone.PhasorProtocols.IEEE1344PhasorValue
  Gemstone.PhasorProtocols.IEEEC37_118PhasorValue
  Gemstone.PhasorProtocols.MacrodynePhasorValue
  Gemstone.PhasorProtocols.SelFastMessagePhasorValue
  More Less

Implements
  ISupportBinaryImage, IChannel, IChannelValue IPhasorDefinition, IPhasorValue, ISerializable

## Constructors

PhasorValueBase(IDataCell, IPhasorDefinition) | Creates a new PhasorValueBase.
PhasorValueBase(SerializationInfo, StreamingContext) | Creates a new PhasorValueBase from serialization parameters.
PhasorValueBase(IDataCell, IPhasorDefinition, Angle, Double) | Creates a new PhasorValueBase from specified parameters.
PhasorValueBase(IDataCell, IPhasorDefinition, Double, Double) | Creates a new PhasorValueBase from specified parameters.

## Properties

Angle | Gets or sets the Angle value (a.k.a., the argument) of this PhasorValueBase, in radians.
AngleFormat | Gets the AngleFormat of this PhasorValueBase.
Attributes | Gets a DictionaryTKey, TValue of string based property names and values for this PhasorValueBase object. (Overrides ChannelValueBaseT Attributes)
BinaryImage | Gets the binary image of the ChannelBase object. (Inherited from ChannelBase)
BinaryLength | Gets the length of the BinaryImageBase object. (Inherited from BinaryImageBase)
BodyImage | Gets the binary body image of the PhasorValueBase object. (Overrides ChannelBaseBodyImage)
BodyLength | Gets the length of the BodyImage. (Overrides BodyLength)
CompositeValueCount | Gets total number of composite values that this PhasorValueBase provides. (Overrides ChannelValueBaseT CompositeValueCount)
CoordinateFormat | Gets the CoordinateFormat of this PhasorValueBase.
DataFormat | Gets the DataFormat of this ChannelValueBaseT. (Inherited from ChannelValueBaseT)
Definition | Gets or sets the IChannelDefinition associated with this ChannelValueBaseT. (Inherited from ChannelValueBaseT)
FooterImage | Gets the binary footer image of the BinaryImageBase object. (Inherited from ChannelBase)
FooterLength | Gets the length of the footer portion of the BinaryImageBase object. (Inherited from BinaryImageBase)
HeaderImage | Gets the binary header image of the ChannelBase object. (Inherited from ChannelBase)
HeaderLength | Gets the length of the header portion of the BinaryImageBase object. (Inherited from BinaryImageBase)
Imaginary | Gets or sets the imaginary value of this PhasorValueBase.
IsEmpty | Gets boolean value that determines if none of the composite values of PhasorValueBase have been assigned a value. (Overrides ChannelValueBaseT IsEmpty)
Label | Gets text based label of this ChannelValueBaseT. (Inherited from ChannelValueBaseT)
Magnitude | Gets or sets the magnitude value (a.k.a., the absolute value or modulus) of this PhasorValueBase.
Measurements | Gets the composite values of this ChannelValueBaseT as an array of IMeasurement values. (Inherited from ChannelValueBaseT)
Parent | Gets or sets the IDataCell parent of this ChannelValueBaseT. (Inherited from ChannelValueBaseT)
Phasor | Gets Phasor value from this IPhasorValue.
Real | Gets or sets the real value of this PhasorValueBase.
State | Gets or sets the parsing state for this ChannelBase object. (Inherited from ChannelBase)
Tag | Gets or sets a user definable reference to an object associated with this ChannelBase object. (Inherited from ChannelBase)
Type | Gets the PhasorType of this PhasorValueBase.
UnscaledImaginary | Gets or sets the unscaled integer representation of the imaginary value of this PhasorValueBase.
UnscaledReal | Gets or sets the unscaled integer representation of the real value of this PhasorValueBase.

## Methods

CalculatePower | Calculates watts from imaginary and real components of a voltage and current phasor.
CalculateVars | Calculates vars (total volt-amperes of reactive power) from imaginary and real components of a voltage and current phasor.
CreateMeasurement | Creates a new IMeasurement value for specified composite value for this PhasorValueBase. (Overrides ChannelValueBaseT CreateMeasurement(Int32))
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object)
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object)
GenerateBinaryImage | Generates binary image of the object and copies it into the given buffer, for BinaryLength bytes. (Inherited from ChannelBase)
GenerateBodyImage(Byte[], Int32) | Generates the binary body image and copies it into the given buffer, for BodyLength bytes. (Inherited from BinaryImageBase)
GenerateFooterImage(Byte[], Int32) | Generates the binary footer image and copies it into the given buffer, for FooterLength bytes. (Inherited from BinaryImageBase)
GenerateHeaderImage(Byte[], Int32) | Generates the binary header image and copies it into the given buffer, for HeaderLength bytes. (Inherited from BinaryImageBase)
GetCompositeValue | Gets the specified composite value of this PhasorValueBase. (Overrides ChannelValueBaseT GetCompositeValue(Int32))
GetHashCode | Serves as the default hash function. (Inherited from Object)
GetObjectData | Populates a SerializationInfo with the data needed to serialize the target object. (Overrides ChannelValueBaseT GetObjectData(SerializationInfo, StreamingContext))
GetType | Gets the Type of the current instance. (Inherited from Object)
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object)
ParseBinaryImage(Byte[], Int32, Int32) | Initializes object by parsing the specified buffer containing a binary image. (Inherited from BinaryImageBase)
ParseBodyImage | Parses the binary body image. (Overrides ParseBodyImage(Byte[], Int32, Int32))
ParseFooterImage(Byte[], Int32, Int32) | Parses the binary footer image. (Inherited from BinaryImageBase)
ParseHeaderImage(Byte[], Int32, Int32) | Parses the binary header image. (Inherited from BinaryImageBase)
ToString | Returns a string that represents the current object. (Inherited from Object)

## Extension Methods

CopyImage | This is a common optimized block copy function for any kind of data. (Defined by Common)

## See Also

#### Reference

Gemstone.PhasorProtocols Namespace