Skip to main content

Class SimulatedHallEffectFlowSensor

Assembly: HallEffectFlowSensors.dll​
View Source​
Declaration
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​
Declaration
public VolumetricFlow Flow { get; }

SupportedBehaviors​

Gets an array of supported simulation behaviors for the sensor.

View Source​
Declaration
public SimulationBehavior[] SupportedBehaviors { get; }

ValueType​

View Source​
Declaration
public Type ValueType { get; }

MinimumSimulatedValue​

The minimum unit value simulation can produce

View Source​
Declaration
public VolumetricFlow MinimumSimulatedValue { get; set; }

MaximumSimulatedValue​

The maximum unit value simulation can produce

View Source​
Declaration
public VolumetricFlow MaximumSimulatedValue { get; set; }

Methods​

SetSensorValue(object)​

Sets the simulated value for the sensor.

View Source​
Declaration
public void SetSensorValue(object value)
Parameters​
TypeNameDescription
System.ObjectvalueThe value to set for the sensor.

StartSimulation(SimulationBehavior)​

Starts the simulation with the specified behavior.

View Source​
Declaration
public void StartSimulation(SimulationBehavior behavior)
Parameters​
TypeNameDescription
Meadow.Peripherals.Sensors.SimulationBehaviorbehaviorThe simulation behavior to start.

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