PhysicalProperty<T extends PhysicalProperty<T> > class
abstract
Quantifiable physical property by an amount of an Unit of one of its SystemOfUnits
s.
Dome other common names for PhysicalProperty is Dimension.
Represented with a kind description and a collection of SystemOfUnits
instances.
Provides an API to return an unit by its symbol from any of its systems of measurement.
- Implementers
Constructors
- PhysicalProperty({required String kind, required String dimensionSymbol, required String quantitySymbol})
Properties
-
baseUnit
→ Unit<
T> -
Return the baseUnit of my first SystemOfMeasurement
no setter
- dimensionSymbol → String
-
Dimension symbol
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- kind → String
-
Texttual name for this PhysicalProperty
final
- quantitySymbol → String
-
Qunatity symbol
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldPreloadAllUnits → bool
-
Methos called by the constructor to allow preloading of all units if desired.
no setter
-
systemsOfUnits
→ List<
SystemOfUnits< T> > -
Collection of SystemOfMeasurement for this PhysicalProperty
final
-
unitList
→ List<
Unit< T> > -
Return all units in all of my SystemOfMeasurement list
no setter
Methods
-
defineSystemsOfUnits(
) → void - Method called by the constructor to define subclass systems of units along their base units.
-
loadAllUnits(
) → void - Define (load) all units.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
unitWith(
{required String symbol}) → Unit< T> ? - Finds an unit with a symbol in my SystemOfMeasurement list
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override