Class AsplSensingAgent
A general-purpose ASPL agent. See the adaptive sensing article for more information.
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
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