Skip to content

Latest commit

 

History

History
73 lines (73 loc) · 1.84 KB

mermaid.md

File metadata and controls

73 lines (73 loc) · 1.84 KB

classDiagram namespace VehicleManagement.Assistance { class ServiceInterface { <> +void executeService() } class MaintenanceService { <> +void executeService() } class InsurancePolicy { <> +String policyId +void coverVehicle(Car car) } } namespace VehicleManagement.Dealership { class PaintColor { <> RED BLUE GREEN WHITE BLACK } class Vehicle { <> +String brand +String model +void startEngine()$ } class Car { <> +int doorCount +void accelerate()$ #void scheduleMaintenance()* -String engineType +PaintColor bodyColor } class Engine { <> +int horsepower +void start() } class Tire { <> +int diameterd +void rotate() } class Garage { <> +String address +void storeVehicle(Car car) } class Driver { <> +String fullName +void driveVehicle(Car car) } class Fuel { <> +String fuelType +void refuel() } } Vehicle <|-- Car : SportsModel Car --* Engine : TurboV8 Car --o Tire : AlloyRims Driver "1"-->"*" Car : Ownership Driver -- Garage : ParkingLocation Car ..> Fuel : PremiumFuel MaintenanceService ..|> ServiceInterface : ServiceDetails InsurancePolicy .. Driver : CoverageDetail