docs: basic concets UML refactored

This commit is contained in:
Mateusz Pusz
2021-10-20 11:21:58 +02:00
parent 1525101555
commit 72ef7584a4
2 changed files with 101 additions and 56 deletions
+34 -15
View File
@@ -30,44 +30,63 @@ The most important concepts in the library are `Unit`, `Dimension`,
package Dimension <<Frame>> [[../../framework/dimensions.html]] {
}
package Kind <<Frame>> [[../../framework/quantity_kinds.html#kind-creation]] {
abstract kind<Dimension> [[../../framework/quantity_kinds.html#kind-creation]]
abstract point_kind<Kind, PointOrigin> [[../../framework/quantity_kinds.html#quantity-point-kinds]]
abstract point_origin<Dimension> [[../../framework/quantity_points.html#point-origins]]
}
class quantity<Dimension, Unit, Rep> [[../../framework/quantities.html]] {
package PointKind <<Frame>> [[../../framework/quantity_kinds.html#quantity-point-kinds]] {
abstract point_kind<Kind, PointOrigin> [[../../framework/quantity_kinds.html#quantity-point-kinds]]
}
package PointOrigin <<Frame>> [[../../framework/quantity_points.html#point-origins]] {
abstract point_origin<Dimension> [[../../framework/quantity_points.html#point-origins]]
}
package Quantity <<Frame>> [[../../framework/quantities.html]] {
class quantity<Dimension, Unit, Rep> [[../../framework/quantities.html#construction]] {
rep number()
}
}
package QuantityPoint <<Frame>> [[../../framework/quantity_points.html]] {
class quantity_point<PointOrigin, Unit, Rep> [[../../framework/quantity_points.html#construction]] {
quantity relative()
}
}
package QuantityKind <<Frame>> [[../../framework/quantity_kinds.html]] {
class quantity_kind<Kind, Unit, Rep> [[../../framework/quantity_kinds.html#construction]] {
quantity common()
}
}
package QuantityPointKind <<Frame>> [[../../framework/quantity_kinds.html#quantity-point-kinds]] {
class quantity_point_kind<PointKind, Unit, Rep> [[../../framework/quantity_kinds.html#quantity-point-kinds]] {
quantity_kind relative()
}
}
Unit <.. Dimension
Dimension <.. quantity
Unit <.. quantity
Dimension <... Quantity
Unit <... Quantity
Dimension <.. kind
Dimension <.. point_origin
point_origin <.. point_kind
kind <.. point_kind
Dimension <... Kind
Dimension <... PointOrigin
PointOrigin <... PointKind
Kind <... PointKind
Unit <.. quantity_point
point_origin <.. quantity_point
Unit <... QuantityPoint
PointOrigin <... QuantityPoint
quantity --* quantity_point
Unit <.. quantity_kind
kind <.. quantity_kind
Unit <... QuantityKind
Kind <... QuantityKind
quantity --* quantity_kind
Unit <.. quantity_point_kind
point_kind <.. quantity_point_kind
Unit <... QuantityPointKind
PointKind <... QuantityPointKind
quantity_kind --* quantity_point_kind
@enduml