Registers an entity to be measured with the model.
An entity to measure.
true
if the entity has been added.
Clears all registered entities from the model.
Clears the outcome containing the results of a measurement.
Returns all the entities registered with the model.
Returns the outcome that contains the results of a measurement.
Returns all the measurement results of the model.
Registers an event listener that will be invoked when the model's measurement entities change.
The listener to add.
A disposable that can be used to remove the listener.
Registers an event listener that will be invoked when the model's outcome changes.
The listener to add.
A disposable that can be used to remove the listener.
Unregisters an entity from the model.
The entity to remove.
true
if the entity was removed.
Sets the set of entities to be measured with the model.
A set of entities to measure.
true
if the entity has been added.
Sets the outcome containing the results of a measurement.
Emits a outcome changed event.
The outcome containing results.
A model representing the state of measurement.
Measurement contains a set of
MeasureEntity
s that represent what's being measured, and a set ofMeasurementResult
s representing the results of the measurement.Views can register event listeners to the model to be notified when new measurements have been added.