Support for code that doesn't work

0 votes
asked Oct 1, 2023 in Question / help by The-Lu (70,400 points)

Hi M., and all,

Please to don't answer to an old question with a new question!

From a question of Masum:

@startuml top_level_dfd

!define RECTANGLE class
!define ENTITY rectangle
!define DATABASE rectangle

!define PROCESS [RECTANGLE]
!define EXTERNAL_ENTITY [ENTITY]
!define DATA_STORE [DATABASE]

EXTERNAL_ENTITY Customers
EXTERNAL_ENTITY "Digital Screens" as DigitalScreens
EXTERNAL_ENTITY Website

Customers --|> PROCESS ParkingManagementSystem
DigitalScreens --|> PROCESS ParkingManagementSystem
Website --|> PROCESS ParkingManagementSystem

PROCESS ParkingManagementSystem {
  PROCESS "Car Detection Process" as CarDetection
  PROCESS "Image Recognition Process" as ImageRecognition
  PROCESS "Analytics & Optimization Process" as AnalyticsOptimization
  DATA_STORE "Parking Data Store"
  DATA_STORE "Customer Data Store"

  Customers --|> CarDetection
  DigitalScreens --|> CarDetection
  Website --|> CarDetection
  CarDetection --|> ParkingDataStore
  CarDetection --|> CustomerDataStore

  CarDetection --|> ImageRecognition
  ImageRecognition --|> ParkingDataStore
  ImageRecognition --|> CustomerDataStore

  ParkingManagementSystem --|> AnalyticsOptimization
  ParkingDataStore --|> AnalyticsOptimization
  CustomerDataStore --|> AnalyticsOptimization
}

@enduml

--> this code does not work

Regards,
Th.

1 Answer

0 votes
answered Oct 1, 2023 by The-Lu (70,400 points)
selected Oct 3, 2023 by The-Lu
 
Best answer

Here are some answer elements:

  • Where come from this part of code ?
!define RECTANGLE class
!define ENTITY rectangle
!define DATABASE rectangle

!define PROCESS [RECTANGLE]
!define EXTERNAL_ENTITY [ENTITY]
!define DATA_STORE [DATABASE]

Here is a first proposal:

@startuml top_level_dfd

!define RECTANGLE rectangle
!define ENTITY rectangle
!define DATABASE rectangle

!define PROCESS RECTANGLE
!define EXTERNAL_ENTITY ENTITY
!define DATA_STORE DATABASE

EXTERNAL_ENTITY Customers
EXTERNAL_ENTITY "Digital Screens" as DigitalScreens
EXTERNAL_ENTITY Website

Customers --|>  ParkingManagementSystem
DigitalScreens --|>  ParkingManagementSystem
Website --|>  ParkingManagementSystem

PROCESS ParkingManagementSystem {
  PROCESS "Car Detection Process" as CarDetection
  PROCESS "Image Recognition Process" as ImageRecognition
  PROCESS "Analytics & Optimization Process" as AnalyticsOptimization
  DATA_STORE "Parking Data Store"
  DATA_STORE "Customer Data Store"

  Customers --|> CarDetection
  DigitalScreens --|> CarDetection
  Website --|> CarDetection
  CarDetection --|> ParkingDataStore
  CarDetection --|> CustomerDataStore

  CarDetection --|> ImageRecognition
  ImageRecognition --|> ParkingDataStore
  ImageRecognition --|> CustomerDataStore

  ParkingManagementSystem --|> AnalyticsOptimization
  ParkingDataStore --|> AnalyticsOptimization
  CustomerDataStore --|> AnalyticsOptimization
}

@enduml

Regards,
Th.

...