Class SimulatedHallEffectFlowSensor
Assembly: HallEffectFlowSensors.dll
View Source
public class SimulatedHallEffectFlowSensor : HallEffectFlowSensor, IObservable<IChangeResult<VolumetricFlow>>, ISamplingSensor<VolumetricFlow>, ISamplingSensor, IVolumetricFlowSensor, ISensor<VolumetricFlow>, ISensor, ISimulatedSensor<VolumetricFlow>, ISimulatedSensor
Inheritance: System.Object -> Meadow.Foundation.ObservableBase<UNIT> -> Meadow.Foundation.SamplingSensorBase<UNIT> -> Meadow.Foundation.PollingSensorBase<UNIT> -> Meadow.Peripherals.Sensors.Flow.HallEffectFlowSensor
Implements:
System.IObservable<Meadow.IChangeResult<Meadow.Units.VolumetricFlow>>, Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.VolumetricFlow>, Meadow.Peripherals.Sensors.ISamplingSensor, Meadow.Peripherals.Sensors.IVolumetricFlowSensor, Meadow.Peripherals.Sensors.ISensor<Meadow.Units.VolumetricFlow>, Meadow.Peripherals.Sensors.ISensor, Meadow.Peripherals.Sensors.ISimulatedSensor<Meadow.Units.VolumetricFlow>, Meadow.Peripherals.Sensors.ISimulatedSensor
Properties
Flow
View Source
public VolumetricFlow Flow { get; }
SupportedBehaviors
Gets an array of supported simulation behaviors for the sensor.
View Source
public SimulationBehavior[] SupportedBehaviors { get; }
ValueType
View Source
public Type ValueType { get; }
MinimumSimulatedValue
The minimum unit value simulation can produce
View Source
public VolumetricFlow MinimumSimulatedValue { get; set; }
MaximumSimulatedValue
The maximum unit value simulation can produce
View Source
public VolumetricFlow MaximumSimulatedValue { get; set; }
Methods
SetSensorValue(object)
Sets the simulated value for the sensor.
View Source
public void SetSensorValue(object value)
Parameters
| Type | Name | Description |
|---|---|---|
System.Object | value | The value to set for the sensor. |
StartSimulation(SimulationBehavior)
Starts the simulation with the specified behavior.
View Source
public void StartSimulation(SimulationBehavior behavior)
Parameters
| Type | Name | Description |
|---|---|---|
Meadow.Peripherals.Sensors.SimulationBehavior | behavior | The simulation behavior to start. |
Implements
System.IObservable<Meadow.IChangeResult<Meadow.Units.VolumetricFlow>>Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.VolumetricFlow>Meadow.Peripherals.Sensors.ISamplingSensorMeadow.Peripherals.Sensors.IVolumetricFlowSensorMeadow.Peripherals.Sensors.ISensor<Meadow.Units.VolumetricFlow>Meadow.Peripherals.Sensors.ISensorMeadow.Peripherals.Sensors.ISimulatedSensor<Meadow.Units.VolumetricFlow>Meadow.Peripherals.Sensors.ISimulatedSensor