Show / Hide Table of Contents

    Class AsplSensingAgent

    A general-purpose ASPL agent. See the adaptive sensing article for more information.

    Inheritance
    System.Object
    SensingAgent
    AsplSensingAgent
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    SensingAgent.InitializeAsync()
    SensingAgent.SetPolicyAsync(JObject)
    SensingAgent.ObserveAsync(IDatum, CancellationToken)
    SensingAgent.UpdateObservedData(Dictionary<Type, List<IDatum>>)
    SensingAgent.GetObservedData<DatumInterface>()
    SensingAgent.ActAsync(CancellationToken)
    SensingAgent.ToString()
    SensingAgent.IsNearSurface()
    SensingAgent.AverageLinearAccelerationMagnitudeExceedsThreshold(Double)
    SensingAgent.SensusServiceHelper
    SensingAgent.Protocol
    SensingAgent.State
    SensingAgent.Id
    SensingAgent.Description
    SensingAgent.ActionInterval
    SensingAgent.ActionIntervalToleranceBefore
    SensingAgent.ActionIntervalToleranceAfter
    SensingAgent.ActiveObservationDuration
    SensingAgent.ControlCompletionCheckInterval
    SensingAgent.MaxObservedDataCount
    SensingAgent.MaxObservedDataAge
    SensingAgent.StateDescription
    SensingAgent.PropertyChanged
    Namespace: Sensus.Adaptation
    Assembly: SensusAndroid.dll
    Syntax
    public class AsplSensingAgent : SensingAgent, INotifyPropertyChanged

    Constructors

    AsplSensingAgent()

    Declaration
    public AsplSensingAgent()

    Properties

    BeginActiveObservationSettings

    ProtocolSettings to apply when active observation begins.

    Declaration
    public List<ProtocolSetting> BeginActiveObservationSettings { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<ProtocolSetting>

    The begin active observation settings.

    EndActiveObservationSettings

    ProtocolSettings to apply when active observation ends.

    Declaration
    public List<ProtocolSetting> EndActiveObservationSettings { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<ProtocolSetting>

    The end active observation settings.

    Statements

    The AsplStatements to be checked against objective IDatum readings to determine whether sensing control is warranted.

    Declaration
    public List<AsplStatement> Statements { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<AsplStatement>

    The statements.

    Methods

    ObservedDataMeetControlCriterion(Dictionary<Type, List<IDatum>>)

    Declaration
    protected override bool ObservedDataMeetControlCriterion(Dictionary<Type, List<IDatum>> typeData)
    Parameters
    Type Name Description
    System.Collections.Generic.Dictionary<System.Type, System.Collections.Generic.List<IDatum>> typeData
    Returns
    Type Description
    System.Boolean

    OnStateChangedAsync(SensingAgentState, SensingAgentState, CancellationToken)

    Declaration
    protected override Task OnStateChangedAsync(SensingAgentState previousState, SensingAgentState currentState, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    SensingAgentState previousState
    SensingAgentState currentState
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task

    ProtectedSetPolicyAsync(JObject)

    Declaration
    protected override Task ProtectedSetPolicyAsync(JObject policy)
    Parameters
    Type Name Description
    Newtonsoft.Json.Linq.JObject policy
    Returns
    Type Description
    System.Threading.Tasks.Task

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Copyright © 2014-2018 University of Virginia
    Generated by DocFX