Skip to content

Commit

Permalink
Relocate old plantuml urls to plantuml files #10
Browse files Browse the repository at this point in the history
  • Loading branch information
pintergreg committed Sep 2, 2020
1 parent 8bacf29 commit dc30dcb
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 15 deletions.
89 changes: 89 additions & 0 deletions src/plantuml/old_class.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
@startuml
title Class Diagram

class VirtualFunctionBus {
{static} -List<ISystemComponent> components
{static} +void registerComponent(ISystemComponent comp)
{static} +void sendSignal(Signal s)
{static} +void loop()
}

interface ISystemComponent{
+void loop()
+void receiveSignal(Signal s)
}

class Signal{
-int Id
-Number data
+int getId()
+Number getData()
}

class World{
-int width
-int height
-List<WorldObject> worldObjects
+int getWidth()
+int getHeight()
+void setWidth(int width)
+void setHeight(int height)
+void addObjectToWorld(WorldObject o)
+List<WorldObject> getWorldObjects()
}

class WorldObject{
#int x
#int y
#int width
#int height
#float rotation
#String imageFileName
+int getX()
+int getY()
+int getWidth()
+int getHeight()
+float getRotation()
+String getImageFileName()
+void setX(int x)
+void setY(int y)
+void setWidth(int width)
+void setHeight(int height)
+void setRotation(float rotation)
+void setImageFileName(String imageFileName)
}

class CourseDisplay{
-JFrame frame
+void init(World world)
}

class AutomatedCar{
-double wheelAngle
+void drive()
}


class PowertrainSystem{
-int x
-int y
-int gasPedal
-int wheelAngle
+int getX()
+int getY()
+double getWheelAngle()
}

abstract class SystemComponent{
# protected SystemComponent()
}

AutomatedCar <|-- WorldObject
PowertrainSystem <|-- SystemComponent
SystemComponent <|-- ISystemComponent
VirtualFunctionBus "1" *-- "many" ISystemComponent : contains
ISystemComponent *-- "Signal" : use
World "1" *-- "many" WorldObject: contains
CourseDisplay *-- World: contains
AutomatedCar *--PowertrainSystem: contains
@enduml
50 changes: 50 additions & 0 deletions src/plantuml/old_component.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
@startuml
title System Architecture

package "Visualisation" {
component [HMI] as HMI
component [Course\nDisplay] as CD
}

package "AutomatedCar" {
component [ACC] as ACC
component [TSR] as TSR
component [PP] as PP
component [AEB] as AEB
component [LKA] as LKA
component [BCM] as BCM
component [Virtual Function Bus] as VFB
component [Radar Sensor] as RS
component [Ultrasonic Sensor] as US
component [Front Camera] as FC
component [Powertrain System] as PS
}

package "Environment" {
component [Environment] as ENV
component [Dynamic Objects] as DO
}

interface "Map JPEG file" as JPG
interface "Environment Descriptor XML file" as XML

JPG .up.> CD
XML .up.> ENV
DO ..up..> CD
ACC -down- VFB
TSR -down- VFB
PP -down- VFB
AEB -down- VFB
LKA -down- VFB
BCM -down- VFB
RS -up- VFB
US -up- VFB
FC -up- VFB
PS -up- VFB
ENV ..up..> RS
ENV ..up..> US
ENV ..up..> FC
DO .left.> ENV
PS ..down..> DO
BCM <.right.> HMI
@enduml
15 changes: 0 additions & 15 deletions src/reference_architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,6 @@ Minden adatközlő modulnak létre kell hoznia egy-egy csomag (packet) típust (
5. In the loop method of the writing componenet set the payload value of the packet
6. In the loop method of the reading compontent read the payload of the packet

<!-- # Komponens diagram
![](https://www.plantuml.com/plantuml/img/RLF9JiCm4BtxAqQzDr-046qMrbAheHKIS1XI5mo97Na1LOX_P-mWC2cvZ5_UcyKpunFhq3ZVjOmvwLe1zTuwqS7CDC_IYSPv8nZhiNd59m6JZRGUMsdHIQqcyC60laPtlLP2ERWxMvm_05eWEwPoxOqLzwgGjczn7sLvmJwJw3FlT8TER7Cq_mIVvNdq8ZkcRkfLfCYEASuZm_b1k78-X2ldO-hgSXOficDgdYyYHNPCRIHr4bkel6f2Vs3kRTHkgeCCAzoYWLeegqtKhEgnPDqwWrOhsQIwzO6kCffCZfqm62NLGNkuVXU6eadrFT-X9VMVxfVgJLAeZZp-QNx2HkVoUZEM57k57LMxV7oXnHckNYn33gcSC3jiACi2UxZWvIdiP2icGNB1JrD1aWWAOHiZUwSDt2wkVbq8C4P-aFa-Emvh5EW1XCAA9MG13Hpj2qot-brDuoHeHrB8UOfe6L982v126deALpLCVJ-Srycvod_FFFbFfVtKHVDEuVelf166ExHYvxwlH76oBAGED7Krb7AK6Vdq71JXlR4JeRRqahy0)
* ACC - Adaptive Cruise Control
* AEB - Automatic Emergency Brake
* BCM - Body Control Module
* HMI - Human Machine Interface
* LKA - Lane Keeping Assistant
* PP - Parking Pilot
* TSR - Traffic Sign Recognition
# Kiindulási kód osztálydiagramja
![](https://www.plantuml.com/plantuml/img/fLN1Rjim3BthAuJaacx8OTUX6Dec29PXw8fbMDkZOZ6E1baA9Bc9qUNVHqkoBTjPBpr9fXxvo4U9lh6E6LSMaX0dd0IwaCnQkXGiDwmW9FEVlmLYc5oLAdD2gxlIqbT2wIiwEv6TwVoxiEvwlQciWsAXYuDMeDmNcZLRcw8_lcZ1gO4SdS2qyDdGtxjVZJqjABuHkM9o5XPgBw2areVP5JaJ8XJIx5W6TCY0HVJ0RMePY1SOSPmRFO89lUSOcwuvRkxBOWk6SkOOXgdDERWrzq7Z6HgMU3nB0Zrg8taJvoYusyVz7aI-ToGgws4_jdyWGr6FtOVjg1vhPyyM3LzzXAuess1QglGeeZlgzf3nIFPB-pHcIJ9Krx1nYdK-IPQZYeCTwvxMXAUuLd6DEanJ7QOxgPcZHjSzrWeD6sU4ogaeM0uh8U6U5T1L_vHAyPn-l2LK847RpyZZhP6fxcTArfFsoKjtIatFtbIzkm4sIQUlGWhfftP9dAG92rqQ2qjX3v9LzVNxjiBN3dHdWeW-g532XMQ7AvVutvPE5ym1Np1JktDTRd5s7FS0ybRbiet13RwZqFxe-g2FO9nXGeMts5p-KrohkERCFW1didaRQUZ_zpWcKhUvTGZqR6kH5QziVC6ZGJ2b1zGLhoNmuMc8a1PDh__Ev-bT9iEw0c8GY0mdd0SDfnAvC6uddoRq0s8d1LFLPEH2F-EmL0xPBHcTURymiYO8B2sGqDP1qAIS95plhdYunoM8dZ0864gHGCaDpcxys_m3) -->

<!--
```mermaid
{{#include mermaid/class.mmd}}
Expand Down

0 comments on commit dc30dcb

Please sign in to comment.