-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relocate old plantuml urls to plantuml files #10
- Loading branch information
1 parent
8bacf29
commit dc30dcb
Showing
3 changed files
with
139 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters