MeasurementVisitor class abstract

Base class for measurement visitors.

The Visitor Pattern allows for double-dispatch on an object structure so that a Visitor can operate on any subset of Measurement types and treat each type differently without needing control statements or type checks (e.g. if, switch, or is).

Constructors

MeasurementVisitor()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
visitAngle(Angle angle) → void
Visit an Angle.
visitArea(Area area) → void
Visit an Area.
visitCharge(Charge charge) → void
Visit a Charge.
visitDerived(DerivedMeasurement<Measurement, Measurement> measurement) → void
Visit a derived measurement.
visitDistance(Distance distance) → void
Visit a Distance.
visitFrequency(Frequency distance) → void
Visit a Frequency.
visitLuminosity(Luminosity luminosity) → void
Visit a Luminosity.
visitMass(Mass mass) → void
Visit a Mass.
visitPressure(Pressure pressure) → void
Visit a Pressure.
visitQuantity(Quantity quantity) → void
Visit a Quantity.
visitTemperature(Temperature temperature) → void
Visit a Temperature.
visitTemperatureChange(TemperatureChange temperatureChange) → void
Visit a TemperatureChange.
visitTime(Time time) → void
Visit a Time.
visitVolume(Volume volume) → void
Visit a Volume.

Operators

operator ==(Object other) bool
The equality operator.
inherited