Implement a Port Connection Check Mechanism

This merge request introduces a mechanism to check the connectivity of internal, external, and relay ports with a keyword.

Connection Check Mechanism:

  • Implemented a system to verify that internal, external, and relay ports are connected.
  • Considered Replicated ActorRef and ports in the connectivity checks.
  • Abstracts class ports are excluded but if they are extended by an ActorClass, a warning will be shown.
  • Checked optional relay ports that has been connected with ports that needs a connection.

Port Connection Necessity Keyword: There are two type of preferences for the keyword: 'optional' and 'mandatory'. Connection necessity is 'optional' by default. Meaning that if 'mandatory' keyword is not defined, no warning will be shown. This keyword must be used in the beginning of the port definition.

Tests: 15 different cases are considered and ConnectionNecessity.room file is located under the etrice.room.core.tests package model folder. And Java file to execute the tests located under src file with the name TestConnectionNecessity.java.

Documentation: Updated the Ports and ETrice reference documentations to reflect the new connection check mechanism and keyword syntax.

Edited by Hakan Yesilay

Merge request reports

Loading
Loading