IntegratedAlarmSystem-Group / ias

The production version of the core of the Integrated Alarm System
https://integratedalarmsystem-group.github.io/
GNU Lesser General Public License v3.0
6 stars 1 forks source link

Ensure the topolgy of the IAS is a-cyclic #70

Closed acaproni closed 6 years ago

acaproni commented 6 years ago

One of the constraint of the IAS is that the graph of all the nodes must be a-cyclic. The DASU, at startup, ensures that the topolofy of its ASCEs is a-cyclic but there is nothing checking that the whole topology of the IAS is a-cyclic.

The test could be done at startup by the Supervisor with a fail fast policy. But it should be possible to check the configuration independently for example by the GUIs to configure the CDB or by the alarm system administrator.

acaproni commented 6 years ago

The cdbChecker has been added to the Extras module. It checks and report many problems in the CDB, including the check of cycles.

To run execute: iasCdbChecker -j PATH -x WARN PATH is teh path of the folder that contains the CDB. -x allows to set the log level of the messages produced by the tool. It can be very verbose at INFO and DEBUG level. But a level of WARN prints few important lines only.