MeasurementExpressionParser Class

Represents a template based token substitution parser that supports binary and advanced expressions. with the Variables geared towards measurements.

Definition

Namespace: Gemstone.Timeseries.Model
Assembly: Gemstone.Timeseries (in Gemstone.Timeseries.dll) Version: 1.0.164 -- Release Build+a92a9bf42cb46f572890ee63295d6658a513d9b3
public class MeasurementExpressionParser
Inheritance
Object    MeasurementExpressionParser

Remarks

As an example, this parser can use a templated expression of the form:

C#
{CompanyAcronym}_{DeviceAcronym}[?{SignalType.Source}=Phasor[-{SignalType.Suffix}{SignalIndex}]]:{Signal.Acronym}
then replace the tokens with actual values and properly evaluate the expressions. Example results could look like: GPA_SHELBY-PA1:IPHA and GPA_SHELBY:FREQ

Parser also supports more complex C# style expressions using the "eval{}" function, e.g.:

C#
eval{'{CompanyAcronym}'.Substring(0,3)}_{DeviceAcronym}eval{'[?{SignalType.Source}=Phasor[-{SignalType.Suffix}]]'.Length}

Constructors

MeasurementExpressionParser(String) Creates a new MeasurementExpressionParser.
MeasurementExpressionParser(TemplatedExpressionParser) Creates a new MeasurementExpressionParser.

Properties

Substitutions Additional variables available in this instance.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Execute Create a new expression using the provided expression.
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ProvideMeasurementSubstitutions This Provides the substitutions that would be used for the provided parameters.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also