Show / Hide Table of Contents

    Class AsplElement

    A single check of observed data, aggregated according to AsplAggregationType, in AsplRelation to a Target.

    Inheritance
    System.Object
    AsplElement
    Namespace: Sensus.Adaptation
    Assembly: SensusAndroid.dll
    Syntax
    public class AsplElement : Object

    Constructors

    AsplElement()

    Declaration
    public AsplElement()

    Properties

    Aggregation

    The observed data will likely contain many values from the property specified by PropertyTypeName and PropertyName. These values need to be aggregated in some way to check against the Target value. This specifies the AsplAggregation to apply to the observed value.

    Declaration
    public AsplAggregation Aggregation { get; set; }
    Property Value
    Type Description
    AsplAggregation

    The aggregation.

    PropertyName

    Name of property within type (specified by PropertyTypeName) whose value should be checked. For example, if one wishes to check X, then this should be X.

    Declaration
    public string PropertyName { get; set; }
    Property Value
    Type Description
    System.String

    The name of the property.

    PropertyTypeName

    Fully-qualified type name containing property to check. For example, if one wishes to check X, then this should be Sensus.Probes.Movement.AccelerometerDatum.

    Declaration
    public string PropertyTypeName { get; set; }
    Property Value
    Type Description
    System.String

    The name of the property type.

    Relation

    Logical AsplRelation used to check the aggregate observation (as specified by AsplAggregationType) against the Target. For example, if one wishes to check whether the average value of X is greater than or equal to the Target, then this should be GreaterThanOrEqualTo.

    Declaration
    public AsplRelation Relation { get; set; }
    Property Value
    Type Description
    AsplRelation

    The relation.

    Target

    Target value used to check against the aggregate observation. This can be a real value (for numeric aggregates), a logical true/false value (for logical aggregates), or a double-quoted string value (for nominal aggregates).

    Declaration
    public object Target { get; set; }
    Property Value
    Type Description
    System.Object

    The target.

    Methods

    SatisfiedBy(List<IDatum>)

    Checks whether the current AsplElement is satisfied by a collection of IDatum.

    Declaration
    public bool SatisfiedBy(List<IDatum> data)
    Parameters
    Type Name Description
    System.Collections.Generic.List<IDatum> data

    Data.

    Returns
    Type Description
    System.Boolean

    true, if by was satisfieded, false otherwise.

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Back to top Copyright © 2014-2018 University of Virginia
    Generated by DocFX