From 9874fb884342da6ee6e3276ac8f3fb19edcfa813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Tue, 11 Jul 2017 18:18:22 +0200 Subject: [PATCH] update UML --- doc/c3nav.puml | 72 ++++++++++++++++---------------------------------- 1 file changed, 23 insertions(+), 49 deletions(-) diff --git a/doc/c3nav.puml b/doc/c3nav.puml index c4266152..4b800d89 100644 --- a/doc/c3nav.puml +++ b/doc/c3nav.puml @@ -1,5 +1,5 @@ @startuml -class Section { +class Level { name: str altitude: Decimal } @@ -10,69 +10,52 @@ class Source { left: Decimal top: Decimal right: Decimal - image: file } abstract class GeometryMixin { geometry: } -abstract class SectionGeometryMixin { +abstract class LevelGeometryMixin { } -GeometryMixin <|-- SectionGeometryMixin -Section "1" *-- "*" SectionGeometryMixin: section +GeometryMixin <|-- LevelGeometryMixin +Level "1" *-- "*" LevelGeometryMixin: section class Building { geometry: polygon } -SectionGeometryMixin <|-- Building - -class Category << (E,#FF7700) >> { - empty string - stairs - escalator - elevator -} - -class Level << (E,#FF7700) >> { - empty string - upper - lower -} +LevelGeometryMixin <|-- Building class Space { geometry: polygon public: bool } -SectionGeometryMixin <|-- Space -Category "1" <-- Space: category -Level "1" <-- Space: level +LevelGeometryMixin <|-- Space class Door { geometry: polygon } -SectionGeometryMixin <|-- Door -Level "1" <-- Door: level - -class Hole { - geometry: polygon -} -SectionGeometryMixin <|-- Hole +LevelGeometryMixin <|-- Door abstract class SpaceGeometryMixin { } GeometryMixin <|-- SpaceGeometryMixin Space "1" *-- "*" SpaceGeometryMixin: space +class Hole { + geometry: polygon +} +SpaceGeometryMixin <|-- Hole + class Area { geometry: polygon } SpaceGeometryMixin <|-- Area -class Point { +class POI { geometry: point } -SpaceGeometryMixin <|-- Point +SpaceGeometryMixin <|-- POI class Stair { geometry: linestring @@ -101,17 +84,22 @@ abstract class SpecificLocation { } SpecificLocation --|> Location -Section --|> SpecificLocation +Level --|> SpecificLocation Space --|> SpecificLocation Area --|> SpecificLocation -Point --|> SpecificLocation +POI --|> SpecificLocation + +class LocationGroupCategory { + name: str + titles: dict +} class LocationGroup { - compiled_room: bool - compiled_area: bool + } LocationGroup --|> Location SpecificLocation "*" --o "*" LocationGroup: groups +LocationGroup "*" --o "1" LocationGroupCategory: category class LocationSlug { slug: str @@ -119,20 +107,6 @@ class LocationSlug { Location "1" -- "1" LocationSlug -class GraphNode { - x: int - y: int - transfer: bool - desc: json -} -Space "1" *-- "*" GraphNode: space - -class GraphLine { - category: str -} -GraphNode "1" *-- "*" GraphLine: start -GraphNode "1" *-- "*" GraphLine: end - hide methods @enduml