Skip to content
Snippets Groups Projects
Commit 2cc3a41a authored by Lars-Johan Larsen's avatar Lars-Johan Larsen :speech_balloon:
Browse files

finish first class diagram.

parent fc8ab917
No related branches found
No related tags found
No related merge requests found
<mxfile host="Electron" modified="2023-11-27T09:27:40.582Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/22.1.2 Chrome/114.0.5735.289 Electron/25.9.4 Safari/537.36" etag="-7CDhBWkfeZ3BCSrebN6" version="22.1.2" type="device">
<diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1">
<mxGraphModel dx="1036" dy="606" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="WIyWlLk6GJQsqaUBKTNV-0" />
<mxCell id="WIyWlLk6GJQsqaUBKTNV-1" parent="WIyWlLk6GJQsqaUBKTNV-0" />
<mxCell id="zkfFHV4jXpPFQw0GAbJ--0" value="TrainDispatchSystem" style="swimlane;fontStyle=2;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;marginBottom=0;rounded=0;shadow=0;strokeWidth=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="334" y="120" width="160" height="138" as="geometry">
<mxRectangle x="230" y="140" width="160" height="26" as="alternateBounds" />
</mxGeometry>
</mxCell>
<mxCell id="zkfFHV4jXpPFQw0GAbJ--1" value="Station" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="zkfFHV4jXpPFQw0GAbJ--0" vertex="1">
<mxGeometry y="26" width="160" height="26" as="geometry" />
</mxCell>
<mxCell id="zkfFHV4jXpPFQw0GAbJ--2" value="Menu" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rounded=0;shadow=0;html=0;" parent="zkfFHV4jXpPFQw0GAbJ--0" vertex="1">
<mxGeometry y="52" width="160" height="26" as="geometry" />
</mxCell>
<mxCell id="zkfFHV4jXpPFQw0GAbJ--4" value="" style="line;html=1;strokeWidth=1;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;" parent="zkfFHV4jXpPFQw0GAbJ--0" vertex="1">
<mxGeometry y="78" width="160" height="8" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="zkfFHV4jXpPFQw0GAbJ--6" target="zkfFHV4jXpPFQw0GAbJ--2" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zkfFHV4jXpPFQw0GAbJ--6" value="Menu" style="swimlane;fontStyle=0;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;marginBottom=0;rounded=0;shadow=0;strokeWidth=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="150" y="258" width="160" height="138" as="geometry">
<mxRectangle x="130" y="380" width="160" height="26" as="alternateBounds" />
</mxGeometry>
</mxCell>
<mxCell id="zkfFHV4jXpPFQw0GAbJ--7" value="MenuItems" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="zkfFHV4jXpPFQw0GAbJ--6" vertex="1">
<mxGeometry y="26" width="160" height="26" as="geometry" />
</mxCell>
<mxCell id="zkfFHV4jXpPFQw0GAbJ--9" value="" style="line;html=1;strokeWidth=1;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;" parent="zkfFHV4jXpPFQw0GAbJ--6" vertex="1">
<mxGeometry y="52" width="160" height="8" as="geometry" />
</mxCell>
<mxCell id="zkfFHV4jXpPFQw0GAbJ--11" value="Menu()" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="zkfFHV4jXpPFQw0GAbJ--6" vertex="1">
<mxGeometry y="60" width="160" height="26" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-31" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="A6uXA1JAniuv3VXLVRst-0" target="zkfFHV4jXpPFQw0GAbJ--7" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="230" y="420" />
<mxPoint x="130" y="420" />
<mxPoint x="130" y="297" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-0" value="MenuItem" style="swimlane;fontStyle=0;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;marginBottom=0;rounded=0;shadow=0;strokeWidth=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="150" y="440" width="160" height="138" as="geometry">
<mxRectangle x="130" y="380" width="160" height="26" as="alternateBounds" />
</mxGeometry>
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-27" value="- label" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-0" vertex="1">
<mxGeometry y="26" width="160" height="26" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-1" value="- action" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-0" vertex="1">
<mxGeometry y="52" width="160" height="26" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-3" value="" style="line;html=1;strokeWidth=1;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-0" vertex="1">
<mxGeometry y="78" width="160" height="8" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-5" value="MenuItem()" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-0" vertex="1">
<mxGeometry y="86" width="160" height="26" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-29" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="A6uXA1JAniuv3VXLVRst-15" target="zkfFHV4jXpPFQw0GAbJ--1" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-15" value="Station" style="swimlane;fontStyle=0;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;marginBottom=0;rounded=0;shadow=0;strokeWidth=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="520" y="258" width="160" height="138" as="geometry">
<mxRectangle x="130" y="380" width="160" height="26" as="alternateBounds" />
</mxGeometry>
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-16" value="Departures : List&lt;Departure&gt;" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-15" vertex="1">
<mxGeometry y="26" width="160" height="26" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-18" value="" style="line;html=1;strokeWidth=1;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-15" vertex="1">
<mxGeometry y="52" width="160" height="8" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-20" value="Station()" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-15" vertex="1">
<mxGeometry y="60" width="160" height="26" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-32" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="A6uXA1JAniuv3VXLVRst-21" target="A6uXA1JAniuv3VXLVRst-16" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="600" y="420" />
<mxPoint x="700" y="420" />
<mxPoint x="700" y="297" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-21" value="Departure" style="swimlane;fontStyle=0;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeLast=0;collapsible=1;marginBottom=0;rounded=0;shadow=0;strokeWidth=1;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1">
<mxGeometry x="520" y="440" width="490" height="502" as="geometry">
<mxRectangle x="130" y="380" width="160" height="26" as="alternateBounds" />
</mxGeometry>
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-22" value="- delay : Duration" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="26" width="490" height="26" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-33" value="- track : int" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="52" width="490" height="26" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-23" value="- ORIGINALDEPARTURETIME : LocalTime" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;rounded=0;shadow=0;html=0;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="78" width="490" height="26" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-34" value="- DESTINATION : String" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="104" width="490" height="26" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-35" value="- LINE : String" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="130" width="490" height="26" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-36" value="- TRAINNUMBER: String" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="156" width="490" height="26" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-24" value="" style="line;html=1;strokeWidth=1;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="182" width="490" height="8" as="geometry" />
</mxCell>
<mxCell id="A6uXA1JAniuv3VXLVRst-26" value="+ Departure(trainNumber : int, destination : String, departureTime : LocalTime)" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="190" width="490" height="26" as="geometry" />
</mxCell>
<mxCell id="BCETesxdeNe0COvkHlKA-0" value="+ setDelay(duration : Duration) : void" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="216" width="490" height="26" as="geometry" />
</mxCell>
<mxCell id="BCETesxdeNe0COvkHlKA-3" value="+ getDelay() : Duration" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="242" width="490" height="26" as="geometry" />
</mxCell>
<mxCell id="BCETesxdeNe0COvkHlKA-4" value="+ setTrack(trackNumber : int) : void" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="268" width="490" height="26" as="geometry" />
</mxCell>
<mxCell id="BCETesxdeNe0COvkHlKA-5" value="+ getTrack() : int" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="294" width="490" height="26" as="geometry" />
</mxCell>
<mxCell id="BCETesxdeNe0COvkHlKA-6" value="+ getCurrentDepartureTime() : LocalTime" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="320" width="490" height="26" as="geometry" />
</mxCell>
<mxCell id="BCETesxdeNe0COvkHlKA-7" value="+ getOriginalDepartureTime() : LocalTime" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="346" width="490" height="26" as="geometry" />
</mxCell>
<mxCell id="BCETesxdeNe0COvkHlKA-8" value="+ getDestination() : String" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="372" width="490" height="26" as="geometry" />
</mxCell>
<mxCell id="BCETesxdeNe0COvkHlKA-9" value="+ getLine() : String" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="398" width="490" height="26" as="geometry" />
</mxCell>
<mxCell id="BCETesxdeNe0COvkHlKA-10" value="+ getTrainNumber() : int" style="text;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;" parent="A6uXA1JAniuv3VXLVRst-21" vertex="1">
<mxGeometry y="424" width="490" height="26" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
This diff is collapsed.
Diagrams/Class Diagram 1.drawio.png

260 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment