WeatherProbe class
Collects the weather on a regular basis using the WeatherStation
API.
- Inheritance
- Object
- AbstractProbe
- DatumProbe
- PeriodicDatumProbe
- WeatherProbe
Constructors
Properties
- weather ↔ WeatherStation
-
read / write
-
controller
↔ StreamController<
Datum> -
read / write, inherited
- duration ↔ Duration
-
read / write, inherited
- enabled → bool
-
Is this probe enabled, i.e. should run.
read-only, inherited
-
events
→ Stream<
Datum> -
A Stream generating sensor data events from this probe.
read-only, inherited
- frequency ↔ Duration
-
read / write, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- measure → Measure
-
The
Measure
that configures this probe.read-only, inherited - name → String
-
A printer-friendly name for this probe. Takes its name from Measure.name as default.
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- state → ProbeState
-
The runtime state of this probe.
read-only, inherited
-
stateEvents
→ Stream<
ProbeState> -
The runtime state changes of this probe. [...]
read-only, inherited
- timer ↔ Timer
-
read / write, inherited
- type → String
-
The type of this probe according to
DataType
.read-only, inherited
Methods
-
getDatum(
) → Future< Datum> -
Subclasses should implement this method to collect a
Datum
.override -
onInitialize(
Measure measure) → void -
Callback for initialization of probe
override
-
hasChanged(
Measure measure) → void -
Callback when this probe's
measure
has changed.inherited -
initialize(
Measure measure) → void -
Initialize the probe before starting it. [...]
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
onPause(
) → void -
Callback for pausing probe
inherited
-
onRestart(
) → void -
Callback for restarting probe
inherited
-
onResume(
) → void -
Callback for resuming probe
inherited
-
onStart(
) → void -
Callback for starting probe
inherited
-
onStop(
) → void -
Callback for stopping probe
inherited
-
pause(
) → void -
Pause the probe. The probe is paused until resume or restart is called.
inherited
-
restart(
) → void -
Restart the probe. This forces the probe to reload its configuration from
its
Measure
and restart sampling accordingly. If a new measure is to be used, this new measure must be specified in the initialize method before calling restart. [...]inherited -
resume(
) → void -
Resume the probe.
inherited
-
start(
) → void -
Start the probe();
inherited
-
stop(
) → void -
Stop the probe. Once a probe is stopped, it cannot be started again.
If you need to restart a probe, use the restart or pause and resume methods.
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited