This commit is contained in:
Rens Pastoor
2025-06-10 11:46:39 +02:00
parent 6f32a80836
commit 37013ec1fc
35 changed files with 243 additions and 27 deletions

BIN
CS/CS2A shipping UML.zip Normal file

Binary file not shown.

View File

@@ -0,0 +1,205 @@
<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0" version="27.1.4">
<diagram name="Page-1" id="__ajmCTHiHd_0gtwpgYY">
<mxGraphModel dx="1426" dy="783" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="Ey-4shX72MY-NRdcRtJe-1" value="Main" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry width="160" height="64" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-3" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-1">
<mxGeometry y="26" width="160" height="8" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-10" value="&lt;div align=&quot;left&quot;&gt;+ Main&lt;/div&gt;" style="text;html=1;align=left;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-1">
<mxGeometry y="34" width="160" height="30" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;endArrow=diamondThin;endFill=0;strokeWidth=2;strokeColor=default;targetPerimeterSpacing=16;spacing=3;labelBorderColor=none;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" edge="1" parent="1" source="Ey-4shX72MY-NRdcRtJe-5">
<mxGeometry relative="1" as="geometry">
<mxPoint x="80" y="150" as="sourcePoint" />
<mxPoint x="79.81" y="64" as="targetPoint" />
<Array as="points">
<mxPoint x="80" y="80" />
<mxPoint x="80" y="80" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-5" value="Server" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry y="160" width="160" height="150" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-6" value="&lt;div&gt;- serverRunning: bool&lt;/div&gt;&lt;div&gt;- port: int&lt;/div&gt;&lt;div&gt;- address: IPAdrress&lt;/div&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-5">
<mxGeometry y="26" width="160" height="54" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-7" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-5">
<mxGeometry y="80" width="160" height="8" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-8" value="&lt;div&gt;+ SetupServer&lt;/div&gt;&lt;div&gt;+ ServerLoop()&lt;/div&gt;&lt;div&gt;+ statemachine()&lt;/div&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-5">
<mxGeometry y="88" width="160" height="62" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-13" value="Company" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="300" y="50" width="160" height="80" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-15" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-13">
<mxGeometry y="26" width="160" height="8" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-16" value="&lt;div&gt;+ Add(BaseContainer)&lt;/div&gt;&lt;div&gt;+ GenerateReport()&lt;/div&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-13">
<mxGeometry y="34" width="160" height="46" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-18" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0;entryDx=0;entryDy=0;endArrow=diamondThin;endFill=0;strokeWidth=2;strokeColor=default;targetPerimeterSpacing=16;spacing=3;labelBorderColor=none;exitX=0;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="1" source="Ey-4shX72MY-NRdcRtJe-13" target="Ey-4shX72MY-NRdcRtJe-10">
<mxGeometry relative="1" as="geometry">
<mxPoint x="270" y="210" as="sourcePoint" />
<mxPoint x="210" y="260" as="targetPoint" />
<Array as="points">
<mxPoint x="210" y="80" />
<mxPoint x="210" y="34" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-19" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.519;entryY=0.996;entryDx=0;entryDy=0;entryPerimeter=0;startArrow=open;startFill=0;endArrow=none;" edge="1" parent="1" source="Ey-4shX72MY-NRdcRtJe-6" target="Ey-4shX72MY-NRdcRtJe-16">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-20" value="uses" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="Ey-4shX72MY-NRdcRtJe-19">
<mxGeometry x="-0.2078" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-21" value="&lt;i&gt;BaseContainer&lt;/i&gt;" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="590" y="50" width="160" height="140" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-22" value="&lt;div&gt;- idCount&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;- Decription: string&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;- CountryOfOrigin&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;- id: int&lt;/span&gt;&lt;/div&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-21">
<mxGeometry y="26" width="160" height="64" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-23" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-21">
<mxGeometry y="90" width="160" height="8" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-24" value="&lt;div&gt;&lt;i&gt;+ Fee(): float&lt;/i&gt;&lt;/div&gt;&lt;div&gt;+ Container(string, string)&lt;/div&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-21">
<mxGeometry y="98" width="160" height="42" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-25" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0;entryDx=0;entryDy=0;endArrow=diamondThin;endFill=0;strokeWidth=2;strokeColor=default;targetPerimeterSpacing=16;spacing=3;labelBorderColor=none;exitX=-0.005;exitY=0.332;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="1" source="Ey-4shX72MY-NRdcRtJe-22">
<mxGeometry relative="1" as="geometry">
<mxPoint x="600" y="136" as="sourcePoint" />
<mxPoint x="460" y="80" as="targetPoint" />
<Array as="points">
<mxPoint x="589" y="100" />
<mxPoint x="510" y="100" />
<mxPoint x="510" y="80" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-26" value="QuarterContainer" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="240" y="320" width="160" height="100" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-27" value="- price: float" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-26">
<mxGeometry y="26" width="160" height="26" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-28" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-26">
<mxGeometry y="52" width="160" height="8" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-29" value="&lt;div&gt;+ QuarterContainer()&lt;/div&gt;&lt;div&gt;+ Fee(): float&lt;/div&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-26">
<mxGeometry y="60" width="160" height="40" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-41" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;endArrow=block;endFill=0;" edge="1" parent="1" source="Ey-4shX72MY-NRdcRtJe-31">
<mxGeometry relative="1" as="geometry">
<mxPoint x="669.9999999999998" y="190" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-31" value="HalfContainer" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="420" y="320" width="160" height="140" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-32" value="&lt;div&gt;- area: int&lt;/div&gt;&lt;div&gt;- maxErea: int&lt;/div&gt;&lt;div&gt;- pricePerM3&lt;/div&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-31">
<mxGeometry y="26" width="160" height="54" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-33" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-31">
<mxGeometry y="80" width="160" height="8" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-34" value="&lt;div&gt;+ HalfContainer()&lt;/div&gt;&lt;div&gt;+ Fee(): float&lt;/div&gt;&lt;div&gt;+ Area(): int&lt;/div&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-31">
<mxGeometry y="88" width="160" height="52" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-42" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;endArrow=block;endFill=0;" edge="1" parent="1" source="Ey-4shX72MY-NRdcRtJe-35">
<mxGeometry relative="1" as="geometry">
<mxPoint x="669.9999999999998" y="190" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-35" value="FullContainer" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="600" y="320" width="160" height="188" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-36" value="&lt;div&gt;- weight: int&lt;/div&gt;&lt;div&gt;- fridged: bool&lt;/div&gt;&lt;div&gt;- pricePerKg: float&lt;/div&gt;&lt;div&gt;- fridgePercentage: float&lt;/div&gt;&lt;div&gt;- maxWeight: int&lt;/div&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-35">
<mxGeometry y="26" width="160" height="84" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-37" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-35">
<mxGeometry y="110" width="160" height="8" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-38" value="&lt;div&gt;+ FullContainer()&lt;/div&gt;&lt;div&gt;+ Fee(): float&lt;/div&gt;&lt;div&gt;+ Weight: int&lt;/div&gt;&lt;div&gt;+ Friged: bool&lt;/div&gt;" style="text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;whiteSpace=wrap;html=1;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-35">
<mxGeometry y="118" width="160" height="70" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-39" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.51;entryY=0.99;entryDx=0;entryDy=0;entryPerimeter=0;endArrow=block;endFill=0;" edge="1" parent="1" source="Ey-4shX72MY-NRdcRtJe-26" target="Ey-4shX72MY-NRdcRtJe-24">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="320" y="255" />
<mxPoint x="672" y="255" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-55" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;endArrow=block;endFill=0;" edge="1" parent="1" source="Ey-4shX72MY-NRdcRtJe-43" target="Ey-4shX72MY-NRdcRtJe-53">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-43" value="WeightMaxException" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="420" y="500" width="160" height="34" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-45" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-43">
<mxGeometry y="26" width="160" height="8" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-50" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;startArrow=open;startFill=0;endArrow=none;" edge="1" parent="1" source="Ey-4shX72MY-NRdcRtJe-47" target="Ey-4shX72MY-NRdcRtJe-35">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-52" value="Throws" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="Ey-4shX72MY-NRdcRtJe-50">
<mxGeometry x="0.1961" y="1" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-56" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;endArrow=block;endFill=0;" edge="1" parent="1" source="Ey-4shX72MY-NRdcRtJe-47">
<mxGeometry relative="1" as="geometry">
<mxPoint x="499.9999999999998" y="600" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-47" value="VolumeMaxException" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="600" y="550" width="160" height="34" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-48" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-47">
<mxGeometry y="26" width="160" height="8" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-49" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.499;entryY=1.071;entryDx=0;entryDy=0;entryPerimeter=0;startArrow=open;startFill=0;endArrow=none;" edge="1" parent="1" source="Ey-4shX72MY-NRdcRtJe-43" target="Ey-4shX72MY-NRdcRtJe-34">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-51" value="Throws" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="Ey-4shX72MY-NRdcRtJe-49">
<mxGeometry x="0.383" y="-2" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-59" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;endArrow=block;endFill=0;" edge="1" parent="1" source="Ey-4shX72MY-NRdcRtJe-53" target="Ey-4shX72MY-NRdcRtJe-57">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-53" value="BaseException" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="420" y="600" width="160" height="34" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-54" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-53">
<mxGeometry y="26" width="160" height="8" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-57" value="Exception" style="swimlane;fontStyle=1;align=center;verticalAlign=top;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="420" y="680" width="160" height="34" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-58" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;strokeColor=inherit;" vertex="1" parent="Ey-4shX72MY-NRdcRtJe-57">
<mxGeometry y="26" width="160" height="8" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-60" value="&lt;div&gt;1&lt;/div&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="280" y="60" width="30" height="30" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-61" value="&lt;div&gt;1&lt;/div&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="70" y="140" width="30" height="30" as="geometry" />
</mxCell>
<mxCell id="Ey-4shX72MY-NRdcRtJe-62" value="0..*" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="555" y="75" width="40" height="30" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

Binary file not shown.

View File

@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<attachedFolders>
<Path>../../../T2</Path>
</attachedFolders>
<explicitIncludes />
<explicitExcludes />
</component>

View File

@@ -1,4 +1,5 @@
using System.Text;
using CS2B_shipping_company.Container;
namespace CS2B_shipping_company;

View File

@@ -1,4 +1,4 @@
namespace CS2B_shipping_company;
namespace CS2B_shipping_company.Container;
public abstract class BaseContainer
{

View File

@@ -1,4 +1,6 @@
namespace CS2B_shipping_company;
using CS2B_shipping_company.Exception;
namespace CS2B_shipping_company.Container;
public class FullContainer : BaseContainer
{

View File

@@ -1,4 +1,6 @@
namespace CS2B_shipping_company;
using CS2B_shipping_company.Exception;
namespace CS2B_shipping_company.Container;
public class HalfContainer : BaseContainer
{

View File

@@ -1,4 +1,4 @@
namespace CS2B_shipping_company;
namespace CS2B_shipping_company.Container;
public class QuarterContainer : BaseContainer
{

View File

@@ -1,4 +1,4 @@
namespace CS2B_shipping_company;
namespace CS2B_shipping_company.Exception;
public class InvalidInputException : ShippingException
{

View File

@@ -1,6 +1,6 @@
namespace CS2B_shipping_company;
namespace CS2B_shipping_company.Exception;
public class ShippingException : Exception
public class ShippingException : System.Exception
{
public ShippingException(string message) : base(message) { }
}

View File

@@ -1,4 +1,4 @@
namespace CS2B_shipping_company;
namespace CS2B_shipping_company.Exception;
public class VolumeExceededException : ShippingException
{

View File

@@ -1,4 +1,4 @@
namespace CS2B_shipping_company;
namespace CS2B_shipping_company.Exception;
public class WeightExceededException : ShippingException
{

View File

@@ -1,9 +1,7 @@
namespace CS2B_shipping_company;
public class Program
{
public static async Task Main(string[] args)
{
public class Program {
public static async Task Main(string[] args){
var company = new Company();
var server = new Server(company);

View File

@@ -1,5 +1,7 @@
using System.Net;
using System.Net.Sockets;
using CS2B_shipping_company.Container;
using CS2B_shipping_company.Exception;
namespace CS2B_shipping_company;
@@ -35,7 +37,7 @@ public class Server
await HandleClient(reader, writer);
}
}
catch (Exception ex)
catch (System.Exception ex)
{
Console.WriteLine($"Error: {ex.Message}");
}
@@ -93,7 +95,7 @@ public class Server
{
await writer.WriteLineAsync($"ERR;{ex.Message}");
}
catch (Exception ex)
catch (System.Exception ex)
{
await writer.WriteLineAsync($"ERR;{ex.Message}");
}

View File

@@ -11,7 +11,7 @@
"projectName": "CS2B shipping company",
"projectPath": "/home/rens/files/T2/CS/CS2B shipping company/CS2B shipping company/CS2B shipping company.csproj",
"packagesPath": "/home/rens/.nuget/packages/",
"outputPath": "/home/rens/T2/CS/CS2B shipping company/CS2B shipping company/obj/",
"outputPath": "/home/rens/files/T2/CS/CS2B shipping company/CS2B shipping company/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/rens/.nuget/NuGet/NuGet.Config"

View File

@@ -7,7 +7,7 @@
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/rens/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/rens/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.13.2</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/rens/.nuget/packages/" />

View File

@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("CS2B shipping company")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0a53cd8bd45341b69a3feec05a574e84f196f04b")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6f32a80836dcb19b49b8bbcea88f30604e05ac14")]
[assembly: System.Reflection.AssemblyProductAttribute("CS2B shipping company")]
[assembly: System.Reflection.AssemblyTitleAttribute("CS2B shipping company")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@@ -1 +1 @@
a8e586fa0f061cb0aaa5439753f525a2a3c0bf7950ed6c35dd6c9efc1c049d73
0913bbc8f927833caed9093ecdea2f944561fbcc44cfadc86e7b4634e0bfb243

View File

@@ -8,7 +8,7 @@ build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = CS2B_shipping_company
build_property.ProjectDir = /home/rens/T2/CS/CS2B shipping company/CS2B shipping company/
build_property.ProjectDir = /home/rens/files/T2/CS/CS2B shipping company/CS2B shipping company/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 9.0

View File

@@ -8,3 +8,7 @@
/home/rens/files/T2/CS/CS2B shipping company/CS2B shipping company/obj/Debug/net9.0/CS2B shipping company.dll
/home/rens/files/T2/CS/CS2B shipping company/CS2B shipping company/obj/Debug/net9.0/refint/CS2B shipping company.dll
/home/rens/files/T2/CS/CS2B shipping company/CS2B shipping company/obj/Debug/net9.0/CS2B shipping company.pdb
/home/rens/files/T2/CS/CS2B shipping company/CS2B shipping company/bin/Debug/net9.0/CS2B shipping company.deps.json
/home/rens/files/T2/CS/CS2B shipping company/CS2B shipping company/bin/Debug/net9.0/CS2B shipping company.runtimeconfig.json
/home/rens/files/T2/CS/CS2B shipping company/CS2B shipping company/obj/Debug/net9.0/CS2B shipping company.genruntimeconfig.cache
/home/rens/files/T2/CS/CS2B shipping company/CS2B shipping company/obj/Debug/net9.0/ref/CS2B shipping company.dll

View File

@@ -1 +1 @@
359c231ad0ab162505dccc65a44df9ca96011831389af188175a0715d3cde94f
6dc63fc683064ca4e993659b38ad594dac85a1a95861ff2a2c9e888850bc3c64

View File

@@ -17,7 +17,7 @@
"projectName": "CS2B shipping company",
"projectPath": "/home/rens/files/T2/CS/CS2B shipping company/CS2B shipping company/CS2B shipping company.csproj",
"packagesPath": "/home/rens/.nuget/packages/",
"outputPath": "/home/rens/T2/CS/CS2B shipping company/CS2B shipping company/obj/",
"outputPath": "/home/rens/files/T2/CS/CS2B shipping company/CS2B shipping company/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/rens/.nuget/NuGet/NuGet.Config"

View File

@@ -1,8 +1,8 @@
{
"version": 2,
"dgSpecHash": "7g+wE+CVdHE=",
"dgSpecHash": "rp3IcKxAp1s=",
"success": true,
"projectFilePath": "/home/rens/T2/CS/CS2B shipping company/CS2B shipping company/CS2B shipping company.csproj",
"projectFilePath": "/home/rens/files/T2/CS/CS2B shipping company/CS2B shipping company/CS2B shipping company.csproj",
"expectedPackageFiles": [],
"logs": []
}

View File

@@ -1 +1 @@
17493942230565017
17494093033930601

View File

@@ -1 +1 @@
17493942230565017
17495474612743232