mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2024-11-22 07:11:55 +00:00
more UML diagram
This commit is contained in:
parent
597dceb150
commit
14864af48d
@ -15,6 +15,100 @@
|
||||
<h1>Troggle Data Model (python)</h1>
|
||||
<p>Asking ChatGPT to read our data model and produce a Mermad-style diagram produces something it has hallucinated. This is NOT troggle.
|
||||
<p><em>Can you look at the data model at https://expo.survex.com/handbook/troggle/datamodel.html and generate the data model in mermaid script in html</em>
|
||||
|
||||
<div class="mermaid">
|
||||
|
||||
classDiagram
|
||||
class Cave {
|
||||
- name: str
|
||||
- location: str
|
||||
- description: str
|
||||
- survey: Survey
|
||||
- map: Map
|
||||
- expeditions: List[Expedition]
|
||||
- survey_teams: List[SurveyTeam]
|
||||
- entrances: List[Entrance]
|
||||
- passages: List[Passage]
|
||||
}
|
||||
class Survey {
|
||||
- file: str
|
||||
- header: Header
|
||||
- stations: List[SurveyStation]
|
||||
- fixes: List[SurveyFix]
|
||||
- flags: List[SurveyFlag]
|
||||
- teams: List[SurveyTeam]
|
||||
- instruments: List[SurveyInstrument]
|
||||
- centerlines: List[SurveyCenterline]
|
||||
- shots: List[SurveyShot]
|
||||
- calibrations: List[SurveyCalibration]
|
||||
- extras: List[SurveyExtra]
|
||||
- equates: List[SurveyEquate]
|
||||
}
|
||||
|
||||
class Map {
|
||||
- file: str
|
||||
- scale: float
|
||||
- orientation: Orientation
|
||||
}
|
||||
class Expedition {
|
||||
- name: str
|
||||
- leader: ExpeditionLeader
|
||||
- members: List[ExpeditionMember]
|
||||
- equipment: List[ExpeditionEquipment]
|
||||
}
|
||||
class ExpeditionLeader {
|
||||
- name: str
|
||||
- email: str
|
||||
- phone: str
|
||||
}
|
||||
class ExpeditionMember {
|
||||
- name: str
|
||||
- email: str
|
||||
- phone: str
|
||||
}
|
||||
class ExpeditionEquipment {
|
||||
- name: str
|
||||
- description: str
|
||||
}
|
||||
class SurveyTeam {
|
||||
- name: str
|
||||
- members: List[str]
|
||||
}
|
||||
class Entrance {
|
||||
- name: str
|
||||
- position: EntrancePosition
|
||||
}
|
||||
class EntrancePosition {
|
||||
- easting: float
|
||||
- northing: float
|
||||
- altitude: float
|
||||
- grid_reference: str
|
||||
- datum: str
|
||||
}
|
||||
class Passage {
|
||||
- name: str
|
||||
- points: List[PassagePoint]
|
||||
- sections: List[PassageSection]
|
||||
}
|
||||
class PassagePoint {
|
||||
- name: str
|
||||
- position: PassagePosition
|
||||
}
|
||||
class PassagePosition {
|
||||
- easting: float
|
||||
- northing: float
|
||||
- altitude: float
|
||||
- grid_reference: str
|
||||
- datum: str
|
||||
}
|
||||
class PassageSection {
|
||||
- from_point: PassagePoint
|
||||
- to_point: PassagePoint
|
||||
- distance: float
|
||||
- azimuth: float
|
||||
- inclination: float
|
||||
}
|
||||
</div>
|
||||
<div class="mermaid">
|
||||
graph LR
|
||||
Cave --"1"--> Survey
|
||||
|
Loading…
Reference in New Issue
Block a user