ConstellationDAQ 0.4__tar.gz → 0.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {constellationdaq-0.4 → constellationdaq-0.5}/.gitlab-ci.yml +26 -7
- {constellationdaq-0.4 → constellationdaq-0.5}/.pre-commit-config.yaml +3 -3
- {constellationdaq-0.4 → constellationdaq-0.5}/AUTHORS.md +1 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/CITATION.cff +3 -6
- {constellationdaq-0.4 → constellationdaq-0.5}/PKG-INFO +6 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/README.md +1 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/controller/Controller.cpp +68 -5
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/controller/Controller.hpp +37 -3
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/controller/ControllerConfiguration.cpp +162 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/controller/ControllerConfiguration.hpp +33 -0
- constellationdaq-0.5/cxx/constellation/controller/MeasurementCondition.cpp +139 -0
- constellationdaq-0.5/cxx/constellation/controller/MeasurementCondition.hpp +116 -0
- constellationdaq-0.5/cxx/constellation/controller/MeasurementQueue.cpp +357 -0
- constellationdaq-0.5/cxx/constellation/controller/MeasurementQueue.hpp +244 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/controller/exceptions.hpp +41 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/controller/meson.build +5 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/chirp/Manager.cpp +118 -130
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/chirp/Manager.hpp +27 -36
- constellationdaq-0.5/cxx/constellation/core/chirp/MulticastSocket.cpp +107 -0
- constellationdaq-0.5/cxx/constellation/core/chirp/MulticastSocket.hpp +71 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/config/Configuration.hpp +44 -4
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/config/Configuration.ipp +21 -0
- constellationdaq-0.5/cxx/constellation/core/config/exceptions.cpp +81 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/config/exceptions.hpp +21 -18
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/heartbeat/HeartbeatManager.cpp +86 -38
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/heartbeat/HeartbeatManager.hpp +38 -25
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/heartbeat/HeartbeatSend.cpp +37 -6
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/heartbeat/HeartbeatSend.hpp +35 -3
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/log/CMDPSink.cpp +2 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/log/SinkManager.cpp +2 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/log/SinkManager.hpp +2 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/log/log.hpp +40 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/meson.build +5 -5
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/message/BaseHeader.hpp +3 -3
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/message/CDTP1Message.hpp +3 -3
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/message/CHIRPMessage.cpp +2 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/message/CHP1Message.cpp +9 -3
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/message/CHP1Message.hpp +19 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/metrics/MetricsManager.hpp +4 -4
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/metrics/MetricsManager.ipp +1 -1
- constellationdaq-0.5/cxx/constellation/core/networking/asio_helpers.cpp +176 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/networking/asio_helpers.hpp +29 -4
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/pools/BasePool.hpp +8 -5
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/pools/BasePool.ipp +46 -33
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/protocol/CDTP_definitions.hpp +3 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/protocol/CHIRP_definitions.hpp +4 -0
- constellationdaq-0.5/cxx/constellation/core/protocol/CHP_definitions.hpp +125 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/protocol/CSCP_definitions.hpp +43 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/utils/type.hpp +6 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/utils/windows.hpp +1 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/exec/DSOLoader.cpp +5 -6
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/exec/DSOLoader.hpp +1 -3
- constellationdaq-0.5/cxx/constellation/exec/cli.cpp +162 -0
- constellationdaq-0.5/cxx/constellation/exec/cli.hpp +199 -0
- constellationdaq-0.5/cxx/constellation/exec/cpp.cpp +100 -0
- constellationdaq-0.5/cxx/constellation/exec/cpp.hpp +72 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/exec/exceptions.hpp +10 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/exec/meson.build +7 -3
- constellationdaq-0.5/cxx/constellation/exec/satellite.cpp +94 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/exec/satellite.hpp +3 -4
- constellationdaq-0.4/cxx/constellation/exec/main.cpp → constellationdaq-0.5/cxx/constellation/exec/satellite_main.cpp +3 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/exec/templates/main.cpp.in +3 -2
- constellationdaq-0.5/cxx/constellation/gui/QCollapseButton.cpp +34 -0
- constellationdaq-0.5/cxx/constellation/gui/QCollapseButton.hpp +31 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QCommandDialog.cpp +5 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QCommandDialog.ui +64 -47
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QConnectionDialog.ui +8 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QController.cpp +5 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QController.hpp +2 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/meson.build +2 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/listener/CMDPListener.hpp +25 -25
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/listener/LogListener.cpp +3 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/listener/LogListener.hpp +9 -9
- constellationdaq-0.5/cxx/constellation/listener/StatListener.cpp +83 -0
- constellationdaq-0.5/cxx/constellation/listener/StatListener.hpp +98 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/listener/meson.build +10 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/satellite/BaseSatellite.cpp +29 -7
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/satellite/BaseSatellite.hpp +17 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/satellite/FSM.cpp +177 -33
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/satellite/FSM.hpp +77 -5
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/satellite/ReceiverSatellite.cpp +66 -25
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/satellite/ReceiverSatellite.hpp +6 -5
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/satellite/Satellite.ipp +1 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/satellite/TransmitterSatellite.cpp +21 -10
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/satellite/TransmitterSatellite.hpp +12 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/controllers/MissionControl/MissionControl.cpp +13 -178
- constellationdaq-0.5/cxx/controllers/MissionControl/main.cpp +99 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/controllers/MissionControl/meson.build +2 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/listeners/Observatory/Observatory.cpp +0 -169
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/listeners/Observatory/QSenderSubscriptions.cpp +1 -15
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/listeners/Observatory/QSenderSubscriptions.hpp +2 -12
- constellationdaq-0.5/cxx/listeners/Observatory/main.cpp +99 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/listeners/Observatory/meson.build +1 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/meson.build +14 -3
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/DevNullReceiver/DevNullReceiverSatellite.cpp +13 -3
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/DevNullReceiver/DevNullReceiverSatellite.hpp +2 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/DevNullReceiver/README.md +6 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/EudaqNativeWriter/README.md +0 -7
- constellationdaq-0.5/cxx/satellites/FlightRecorder/FlightRecorderSatellite.cpp +249 -0
- constellationdaq-0.5/cxx/satellites/FlightRecorder/FlightRecorderSatellite.hpp +82 -0
- constellationdaq-0.5/cxx/satellites/FlightRecorder/README.md +77 -0
- constellationdaq-0.5/cxx/satellites/FlightRecorder/meson.build +16 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/Sputnik/README.md +3 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/Sputnik/SputnikSatellite.cpp +19 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/Sputnik/SputnikSatellite.hpp +2 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/meson.build +1 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/chirp_mock.hpp +15 -6
- constellationdaq-0.5/cxx/tests/chp_mock.hpp +109 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/dummy_controller.hpp +68 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/dummy_satellite.hpp +17 -3
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/meson.build +54 -10
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_controller_base.cpp +36 -1
- constellationdaq-0.5/cxx/tests/test_controller_config.cpp +244 -0
- constellationdaq-0.5/cxx/tests/test_controller_queue.cpp +385 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_core_chirp_manager.cpp +41 -32
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_core_chirp_message.cpp +2 -2
- constellationdaq-0.5/cxx/tests/test_core_chirp_multicast.cpp +116 -0
- constellationdaq-0.5/cxx/tests/test_core_chp_manager.cpp +165 -0
- constellationdaq-0.5/cxx/tests/test_core_chp_sender.cpp +194 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_core_config.cpp +65 -20
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_core_logging.cpp +9 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_core_metrics.cpp +15 -8
- constellationdaq-0.5/cxx/tests/test_exec_cli.cpp +117 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_exec_dsoloader.cpp +3 -10
- constellationdaq-0.5/cxx/tests/test_listener_stat.cpp +123 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_satellite_base.cpp +11 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_satellite_data.cpp +83 -34
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_satellite_fsm.cpp +165 -6
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tools/chirp_manager.cpp +10 -20
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tools/chp_receiver.cpp +3 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tools/chp_sender.cpp +3 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tools/dummy_controller.cpp +11 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/.spelling_jargon.txt +18 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/.spelling_names.txt +7 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/Doxyfile +1 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/Makefile +4 -0
- constellationdaq-0.5/docs/about.md +27 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/application_development/functionality/custom_commands.md +6 -6
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/application_development/functionality/logging.md +3 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/application_development/index.md +3 -3
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/conf.py +25 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/copy_satellite_docs.py +4 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/etc/de.desy.constellation.metainfo.xml +9 -3
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/contributing.md +2 -2
- constellationdaq-0.5/docs/framework_reference/cxx/core/chirp.md +52 -0
- constellationdaq-0.5/docs/framework_reference/cxx/satellite/satellite.md +51 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/flatpak.md +1 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/index.md +5 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/protocols.md +4 -4
- constellationdaq-0.5/docs/framework_reference/python/core/core.base.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.broadcastmanager.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.cdtp.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.chirp.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.chp.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.cmdp.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.commandmanager.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.configuration.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.controller.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.cscp.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.datareceiver.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.datasender.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.error.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.fsm.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.heartbeatchecker.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.heartbeater.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.logging.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.message.cscp1.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.message.exceptions.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.message.msgpack_helpers.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.message.multipart.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.message.rst +21 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.monitoring.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.network.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.protocol.rst +7 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.rst +39 -0
- constellationdaq-0.5/docs/framework_reference/python/core/core.satellite.rst +7 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/satellite.md +1 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/index.md +5 -4
- constellationdaq-0.5/docs/logo/logo_desy.png +0 -0
- constellationdaq-0.5/docs/operator_guide/concepts/autonomy.md +178 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/concepts/constellation.md +1 -1
- constellationdaq-0.5/docs/operator_guide/concepts/controller.md +43 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/concepts/data.md +17 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/concepts/satellite.md +19 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/get_started/install_from_pypi.md +5 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/get_started/install_from_source.md +98 -15
- constellationdaq-0.5/docs/operator_guide/glossary.md +56 -0
- constellationdaq-0.5/docs/operator_guide/howtos/scanning_python.md +94 -0
- constellationdaq-0.5/docs/operator_guide/howtos/startup_order.md +9 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/index.md +9 -4
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/tutorials/missioncontrol.md +13 -7
- constellationdaq-0.5/docs/operator_guide/tutorials/missioncontrol_empty.png +0 -0
- constellationdaq-0.5/docs/operator_guide/tutorials/missioncontrol_init_first.png +0 -0
- constellationdaq-0.5/docs/operator_guide/tutorials/missioncontrol_new.png +0 -0
- constellationdaq-0.5/docs/operator_guide/tutorials/missioncontrol_orbit.png +0 -0
- constellationdaq-0.5/docs/operator_guide/tutorials/missioncontrol_run.png +0 -0
- constellationdaq-0.5/docs/operator_guide/tutorials/missioncontrol_single_command.png +0 -0
- constellationdaq-0.5/docs/operator_guide/tutorials/missioncontrol_single_response.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/tutorials/observatory.md +17 -9
- constellationdaq-0.5/docs/operator_guide/tutorials/observatory_debug.png +0 -0
- constellationdaq-0.5/docs/operator_guide/tutorials/observatory_empty.png +0 -0
- constellationdaq-0.5/docs/operator_guide/tutorials/observatory_extra_subscription.png +0 -0
- constellationdaq-0.5/docs/operator_guide/tutorials/observatory_init.png +0 -0
- constellationdaq-0.5/docs/operator_guide/tutorials/observatory_message_detail.png +0 -0
- constellationdaq-0.5/docs/operator_guide/tutorials/observatory_multi_filter.png +0 -0
- constellationdaq-0.5/docs/operator_guide/tutorials/observatory_new.png +0 -0
- constellationdaq-0.5/docs/operator_guide/tutorials/observatory_text_filter.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/tutorials/single_satellite.md +34 -26
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/protocols/chirp.md +2 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/protocols/chp.md +27 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/satellites/_metrics_cxx_ReceiverSatellite.md +1 -0
- constellationdaq-0.4/docs/satellites/_parameters_py_Satellite.md → constellationdaq-0.5/docs/satellites/_metrics_py_DataSender.md +1 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/satellites/_parameters_cxx_ReceiverSatellite.md +1 -1
- constellationdaq-0.5/docs/satellites/_parameters_cxx_Satellite.md +22 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/satellites/_parameters_cxx_TransmitterSatellite.md +1 -0
- constellationdaq-0.5/docs/satellites/_parameters_py_DataSender.md +4 -0
- constellationdaq-0.5/docs/satellites/_parameters_py_Satellite.md +21 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/meson.build +2 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/meson_options.txt +4 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/pyproject.toml +6 -5
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/base.py +13 -13
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/broadcastmanager.py +7 -15
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/cdtp.py +46 -3
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/chirp.py +18 -49
- constellationdaq-0.5/python/constellation/core/chp.py +137 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/cmdp.py +3 -3
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/commandmanager.py +39 -37
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/configuration.py +14 -6
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/controller.py +45 -24
- constellationdaq-0.5/python/constellation/core/cscp.py +71 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/datareceiver.py +3 -4
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/datasender.py +97 -27
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/fsm.py +122 -47
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/heartbeatchecker.py +48 -31
- constellationdaq-0.5/python/constellation/core/heartbeater.py +114 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/logging.py +8 -8
- constellationdaq-0.5/python/constellation/core/message/__init__.py +4 -0
- constellationdaq-0.5/python/constellation/core/message/cscp1.py +188 -0
- constellationdaq-0.5/python/constellation/core/message/exceptions.py +25 -0
- constellationdaq-0.5/python/constellation/core/message/msgpack_helpers.py +37 -0
- constellationdaq-0.5/python/constellation/core/message/multipart.py +23 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/monitoring.py +8 -9
- constellationdaq-0.5/python/constellation/core/multicast.py +83 -0
- constellationdaq-0.5/python/constellation/core/network.py +63 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/protocol.py +6 -6
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/satellite.py +44 -22
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/meson.build +12 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/CaenHV/CaenHV.py +8 -8
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/CaenHV/README.md +3 -17
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/CaenHV/__main__.py +1 -1
- constellationdaq-0.5/python/constellation/satellites/H5DataWriter/H5DataWriter.py +300 -0
- constellationdaq-0.5/python/constellation/satellites/H5DataWriter/README.md +153 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/H5DataWriter/__main__.py +1 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/Influx/README.md +6 -6
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/Influx/__main__.py +1 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/Keithley/Keithley.py +6 -7
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/Keithley/README.md +6 -6
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/Keithley/__main__.py +1 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/LakeShore218/LakeShore218.py +7 -3
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/LakeShore218/README.md +6 -6
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/LakeShore218/__main__.py +2 -2
- constellationdaq-0.5/python/constellation/satellites/LeCroy/LeCroySatellite.py +140 -0
- constellationdaq-0.5/python/constellation/satellites/LeCroy/README.md +87 -0
- constellationdaq-0.5/python/constellation/satellites/LeCroy/__main__.py +30 -0
- constellationdaq-0.5/python/constellation/satellites/LeCroy/meson.build +11 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/Mariner/Mariner.py +2 -3
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/Mariner/__main__.py +1 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/meson.build +1 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/tools/H5datareader.py +65 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/tests/conftest.py +78 -54
- {constellationdaq-0.4 → constellationdaq-0.5}/python/tests/test_broadcastmanager.py +8 -7
- {constellationdaq-0.4 → constellationdaq-0.5}/python/tests/test_cdtp.py +230 -8
- {constellationdaq-0.4 → constellationdaq-0.5}/python/tests/test_cfg.toml +5 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/python/tests/test_chirp.py +4 -7
- {constellationdaq-0.4 → constellationdaq-0.5}/python/tests/test_cmd_receiver.py +61 -91
- {constellationdaq-0.4 → constellationdaq-0.5}/python/tests/test_configuration.py +6 -5
- {constellationdaq-0.4 → constellationdaq-0.5}/python/tests/test_controller.py +3 -2
- {constellationdaq-0.4 → constellationdaq-0.5}/python/tests/test_example.py +18 -12
- {constellationdaq-0.4 → constellationdaq-0.5}/python/tests/test_heartbeat.py +8 -7
- {constellationdaq-0.4 → constellationdaq-0.5}/python/tests/test_monitoring.py +4 -11
- constellationdaq-0.5/python/tests/test_network.py +36 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/tests/test_satellite.py +121 -58
- constellationdaq-0.5/subprojects/fmt.wrap +13 -0
- constellationdaq-0.5/subprojects/spdlog.wrap +13 -0
- constellationdaq-0.4/cxx/constellation/core/chirp/BroadcastRecv.cpp +0 -85
- constellationdaq-0.4/cxx/constellation/core/chirp/BroadcastRecv.hpp +0 -78
- constellationdaq-0.4/cxx/constellation/core/chirp/BroadcastSend.cpp +0 -46
- constellationdaq-0.4/cxx/constellation/core/chirp/BroadcastSend.hpp +0 -64
- constellationdaq-0.4/cxx/constellation/core/config/exceptions.cpp +0 -47
- constellationdaq-0.4/cxx/constellation/core/networking/asio_helpers.cpp +0 -96
- constellationdaq-0.4/cxx/constellation/core/protocol/CHP_definitions.hpp +0 -19
- constellationdaq-0.4/cxx/constellation/exec/satellite.cpp +0 -237
- constellationdaq-0.4/cxx/tests/test_controller_config.cpp +0 -114
- constellationdaq-0.4/cxx/tests/test_core_chirp_broadcast.cpp +0 -108
- constellationdaq-0.4/docs/framework_reference/cxx/core/chirp.md +0 -44
- constellationdaq-0.4/docs/framework_reference/cxx/satellite/satellite.md +0 -52
- constellationdaq-0.4/docs/operator_guide/concepts/autonomy.md +0 -5
- constellationdaq-0.4/docs/operator_guide/concepts/controller.md +0 -5
- constellationdaq-0.4/docs/operator_guide/tutorials/missioncontrol_empty.png +0 -0
- constellationdaq-0.4/docs/operator_guide/tutorials/missioncontrol_init_first.png +0 -0
- constellationdaq-0.4/docs/operator_guide/tutorials/missioncontrol_new.png +0 -0
- constellationdaq-0.4/docs/operator_guide/tutorials/missioncontrol_orbit.png +0 -0
- constellationdaq-0.4/docs/operator_guide/tutorials/missioncontrol_run.png +0 -0
- constellationdaq-0.4/docs/operator_guide/tutorials/missioncontrol_single_command.png +0 -0
- constellationdaq-0.4/docs/operator_guide/tutorials/missioncontrol_single_response.png +0 -0
- constellationdaq-0.4/docs/operator_guide/tutorials/observatory_debug.png +0 -0
- constellationdaq-0.4/docs/operator_guide/tutorials/observatory_empty.png +0 -0
- constellationdaq-0.4/docs/operator_guide/tutorials/observatory_extra_subscription.png +0 -0
- constellationdaq-0.4/docs/operator_guide/tutorials/observatory_init.png +0 -0
- constellationdaq-0.4/docs/operator_guide/tutorials/observatory_message_detail.png +0 -0
- constellationdaq-0.4/docs/operator_guide/tutorials/observatory_multi_filter.png +0 -0
- constellationdaq-0.4/docs/operator_guide/tutorials/observatory_new.png +0 -0
- constellationdaq-0.4/docs/operator_guide/tutorials/observatory_text_filter.png +0 -0
- constellationdaq-0.4/docs/satellites/_parameters_cxx_Satellite.md +0 -7
- constellationdaq-0.4/python/constellation/core/chp.py +0 -81
- constellationdaq-0.4/python/constellation/core/cscp.py +0 -186
- constellationdaq-0.4/python/constellation/core/heartbeater.py +0 -65
- constellationdaq-0.4/python/constellation/core/network.py +0 -141
- constellationdaq-0.4/python/constellation/satellites/H5DataWriter/H5DataWriter.py +0 -149
- constellationdaq-0.4/python/constellation/satellites/H5DataWriter/README.md +0 -61
- constellationdaq-0.4/python/constellation/tools/list_interfaces.py +0 -40
- constellationdaq-0.4/subprojects/fmt.wrap +0 -13
- constellationdaq-0.4/subprojects/spdlog.wrap +0 -13
- {constellationdaq-0.4 → constellationdaq-0.5}/.clang-format +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/.clang-format-ignore +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/.clang-tidy +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/.codespellrc +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/.cross/mingw-ucrt.ini +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/.editorconfig +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/.gitattributes +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/.github/workflows/sync_to_gitlab.yml +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/.gitignore +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/.mailmap +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/.markdownlintrc +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/LICENSE +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/LICENSES/Apache-2.0.txt +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/LICENSES/CC-BY-4.0.txt +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/LICENSES/CC0-1.0.txt +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/LICENSES/EUPL-1.2.txt +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/LICENSES/GPL-3.0-or-later.txt +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/LICENSES/MIT.txt +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/REUSE.toml +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/build.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/config/Configuration.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/config/Dictionary.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/config/Dictionary.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/config/Value.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/config/Value.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/config/Value.ipp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/external/.clang-tidy +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/external/md5.h +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/heartbeat/HeartbeatRecv.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/log/CMDPSink.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/log/Level.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/log/Logger.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/log/Logger.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/log/ProxySink.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/message/BaseHeader.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/message/CDTP1Message.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/message/CHIRPMessage.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/message/CMDP1Message.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/message/CMDP1Message.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/message/CSCP1Message.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/message/CSCP1Message.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/message/PayloadBuffer.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/message/exceptions.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/metrics/Metric.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/metrics/Metric.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/metrics/MetricsManager.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/metrics/exceptions.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/metrics/stat.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/networking/Port.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/networking/exceptions.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/networking/zmq_helpers.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/networking/zmq_helpers.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/pools/SubscriberPool.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/pools/SubscriberPool.ipp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/protocol/Protocol.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/utils/ManagerLocator.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/utils/casts.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/utils/enum.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/utils/exceptions.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/utils/msgpack.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/utils/std_future.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/utils/string.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/utils/string_hash_map.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/utils/thread.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/core/utils/timers.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/exec/templates/generator.cpp.in +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/Constellation.qrc +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QCommandDialog.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QConnectionDialog.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QConnectionDialog.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QLogLevelComboBox.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QLogLevelComboBox.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QLogMessage.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QLogMessage.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QLogMessageDialog.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QLogMessageDialog.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QLogMessageDialog.ui +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QResponseDialog.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QResponseDialog.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/QResponseDialog.ui +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/Resources.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/icons/material-change_circle.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/icons/material-expand_circle_down.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/icons/material-expand_circle_up.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/icons/material-not_started.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/icons/material-play_circle.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/icons/material-power_settings_circle.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/icons/material-stop_circle.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/gui/qt_utils.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/listener/CMDPListener.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/meson.build +1 -1
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/satellite/CommandRegistry.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/satellite/CommandRegistry.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/satellite/CommandRegistry.ipp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/satellite/Satellite.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/satellite/Satellite.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/satellite/exceptions.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/constellation/satellite/meson.build +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/controllers/MissionControl/MissionControl.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/controllers/MissionControl/MissionControl.ui +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/controllers/MissionControl/de.desy.constellation.missioncontrol.desktop +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/controllers/meson.build +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/listeners/Observatory/Observatory.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/listeners/Observatory/Observatory.qrc +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/listeners/Observatory/Observatory.ui +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/listeners/Observatory/QLogFilter.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/listeners/Observatory/QLogFilter.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/listeners/Observatory/QLogListener.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/listeners/Observatory/QLogListener.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/listeners/Observatory/QSubscriptionList.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/listeners/Observatory/QSubscriptionList.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/listeners/Observatory/de.desy.constellation.observatory.desktop +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/listeners/meson.build +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/DevNullReceiver/meson.build +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/EudaqNativeWriter/EudaqNativeWriterSatellite.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/EudaqNativeWriter/EudaqNativeWriterSatellite.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/EudaqNativeWriter/FileSerializer.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/EudaqNativeWriter/meson.build +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/Mattermost/MattermostSatellite.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/Mattermost/MattermostSatellite.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/Mattermost/README.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/Mattermost/meson.build +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/RandomTransmitter/README.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/RandomTransmitter/RandomTransmitterSatellite.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/RandomTransmitter/RandomTransmitterSatellite.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/RandomTransmitter/meson.build +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/satellites/Sputnik/meson.build +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/cmdp_mock.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/dummy_listener.hpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_core_message.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_core_pools.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_core_protocol.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_core_utils.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_files/good_config.toml +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_files/inhomogeneous_array.toml +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_files/invalid_toml.txt +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_listener_cmdp.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tests/test_listener_log.cpp +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/cxx/tools/meson.build +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/.gitignore +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/_static/css/custom.css +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/_static/undraw_code_typing_re_p8b9.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/_static/undraw_knowledge_re_5v9l.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/_static/undraw_online_connection_6778.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/_static/undraw_open_source_-1-qxw.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/_static/undraw_set_preferences_kwia.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/_templates/recentposts.html +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/application_development/functionality/data_reception.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/application_development/functionality/data_transmission.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/application_development/functionality/metrics.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/application_development/howtos/bench_frame_size_vs_data_rate.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/application_development/howtos/bench_number_of_frames_vs_data_rate.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/application_development/howtos/data_transmission_speed.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/application_development/howtos/external_satellite.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/application_development/howtos/port_eudaq.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/application_development/tutorials/satellite_cxx.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/application_development/tutorials/satellite_py.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/etc/ConstellationProtocols.drawio +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/cxx/controller/controller.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/cxx/controller/index.rst +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/cxx/core/config.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/cxx/core/heartbeat.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/cxx/core/index.rst +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/cxx/core/log.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/cxx/core/message.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/cxx/core/metrics.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/cxx/core/networking.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/cxx/core/pools.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/cxx/core/protocol.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/cxx/core/utils.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/cxx/listener/index.rst +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/cxx/listener/listener.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/cxx/satellite/index.rst +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/naming.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/framework_reference/release.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/latex_helpers.py +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/logo/logo.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/logo/logo.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/logo/logo_observatory.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/logo/logo_observatory.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/logo/logo_small.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/news.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/concepts/CHP.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/concepts/CMDP.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/concepts/CSCP.svg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/concepts/diskspace_grafana.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/concepts/diskspace_observatory.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/concepts/logging.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/concepts/telemetry.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/get_started/install_from_flathub.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/grafana_add_influxdb.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/grafana_dashboard.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/grafana_panel_editor.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/grafana_panel_editor_final.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/grafana_setup_influxdb.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/influxdb_api_key.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/influxdb_bucket.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/influxdb_query_builder.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/influxdb_query_script.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/influxdb_setup.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/mattermost_demo_logs.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/mattermost_high_verbosity.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/mattermost_integrations.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/mattermost_logger_connected.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/mattermost_new_incoming_webhook.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/mattermost_open_integrations.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/setup_influxdb_grafana.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/howtos/setup_mattermost_logger.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/tutorials/missioncontrol_satellite_details.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/operator_guide/tutorials/qtgui_startup.png +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/protocols/cdtp.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/protocols/cmdp.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/protocols/cscp.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/protocols/index.rst +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/satellites/.gitignore +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/satellites/_metric_header.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/satellites/_metrics_cxx_Satellite.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/satellites/_metrics_cxx_TransmitterSatellite.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/satellites/_metrics_py_DataReceiver.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/satellites/_metrics_py_Satellite.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/satellites/_parameter_header.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/satellites/_parameters_py_DataReceiver.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/satellites/external_satellites.json +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/docs/satellites/index.md.in +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/gcovr.cfg +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/__init__.py +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/error.py +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/py.typed +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/core/version_code_name +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/CaenHV/lib_caen_ndt1470.py +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/CaenHV/meson.build +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/H5DataWriter/meson.build +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/Influx/Influx.py +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/Influx/meson.build +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/Keithley/Keithley2410.py +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/Keithley/KeithleyInterface.py +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/Keithley/meson.build +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/LakeShore218/meson.build +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/Mariner/README.md +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/Mariner/meson.build +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/python/constellation/satellites/__init__.py +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/scripts/create_source_dist.sh +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/scripts/meson_enable_all_components.sh +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/subprojects/.gitignore +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/subprojects/argparse.wrap +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/subprojects/asio.wrap +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/subprojects/catch2.wrap +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/subprojects/cppzmq.wrap +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/subprojects/cpr.wrap +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/subprojects/curl.wrap +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/subprojects/libzmq.wrap +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/subprojects/magic_enum.wrap +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/subprojects/msgpackc-cxx.wrap +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/subprojects/openssl.wrap +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/subprojects/packagefiles/libzmq/fix-mingw-afunixh.diff +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/subprojects/packagefiles/libzmq/meson.build +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/subprojects/packagefiles/libzmq/meson_options.txt +0 -0
- {constellationdaq-0.4 → constellationdaq-0.5}/subprojects/tomlplusplus.wrap +0 -0
|
@@ -71,8 +71,10 @@ variables:
|
|
|
71
71
|
tags:
|
|
72
72
|
- hi-load
|
|
73
73
|
|
|
74
|
-
.alma9-
|
|
75
|
-
image: gitlab.desy.de:5555/constellation/build-images/alma9-
|
|
74
|
+
.alma9-gcc14:
|
|
75
|
+
image: gitlab.desy.de:5555/constellation/build-images/alma9-gcc14:latest
|
|
76
|
+
before_script:
|
|
77
|
+
- source /opt/rh/gcc-toolset-14/enable
|
|
76
78
|
|
|
77
79
|
.debian-clang:
|
|
78
80
|
image: gitlab.desy.de:5555/constellation/build-images/debian-clang:latest
|
|
@@ -166,11 +168,11 @@ variables:
|
|
|
166
168
|
- python3 -m build
|
|
167
169
|
<<: *python-rules
|
|
168
170
|
|
|
169
|
-
build:alma9-
|
|
171
|
+
build:alma9-gcc14:
|
|
170
172
|
extends:
|
|
171
173
|
- .build-cpp
|
|
172
174
|
- .cpp-hi-load
|
|
173
|
-
- .alma9-
|
|
175
|
+
- .alma9-gcc14
|
|
174
176
|
variables:
|
|
175
177
|
BUILD_TYPE: "release"
|
|
176
178
|
BUILD_OPTIONS: "-Db_lto=true -Db_lto_mode=thin -Dbuild_gui=qt5"
|
|
@@ -286,12 +288,12 @@ build:python-3.13:
|
|
|
286
288
|
junit: junit.xml
|
|
287
289
|
<<: *python-rules
|
|
288
290
|
|
|
289
|
-
test:alma9-
|
|
291
|
+
test:alma9-gcc14:
|
|
290
292
|
extends:
|
|
291
293
|
- .test-cpp
|
|
292
|
-
- .alma9-
|
|
294
|
+
- .alma9-gcc14
|
|
293
295
|
needs:
|
|
294
|
-
- job: build:alma9-
|
|
296
|
+
- job: build:alma9-gcc14
|
|
295
297
|
artifacts: true
|
|
296
298
|
|
|
297
299
|
test:debian-clang:
|
|
@@ -633,6 +635,23 @@ deploy:release:
|
|
|
633
635
|
- CODENAME=$(grep version_code_name meson.build | sed -E "s%version_code_name = '([^']+)'%\1%")
|
|
634
636
|
- glab auth login --job-token $CI_JOB_TOKEN --hostname $CI_SERVER_HOST --api-protocol $CI_SERVER_PROTOCOL
|
|
635
637
|
- glab release create $CI_COMMIT_TAG "Constellation-${CI_COMMIT_TAG}.tar.xz#Full source code" --name "Constellation ${CI_COMMIT_TAG} - ${CODENAME}"
|
|
638
|
+
artifacts:
|
|
639
|
+
paths:
|
|
640
|
+
- Constellation-*.tar.xz
|
|
641
|
+
expire_in: 24 hour
|
|
642
|
+
rules:
|
|
643
|
+
- if: $CI_COMMIT_TAG =~ /^v.*/
|
|
644
|
+
|
|
645
|
+
deploy:zenodo:
|
|
646
|
+
extends:
|
|
647
|
+
- .deploy
|
|
648
|
+
image: tollerort.desy.de/hub.docker.com/python:latest
|
|
649
|
+
needs:
|
|
650
|
+
- job: deploy:release
|
|
651
|
+
artifacts: true
|
|
652
|
+
script:
|
|
653
|
+
- pip install git+https://gitlab.com/stephanlachnit/gitlab2zenodo.git@constellation
|
|
654
|
+
- g2z-send -p -i $ZENODO_RECORD -t $ZENODO_TOKEN -v ${CI_COMMIT_TAG#v} Constellation-*.tar.xz
|
|
636
655
|
rules:
|
|
637
656
|
- if: $CI_COMMIT_TAG =~ /^v.*/
|
|
638
657
|
|
|
@@ -37,7 +37,7 @@ repos:
|
|
|
37
37
|
- id: clang-format
|
|
38
38
|
|
|
39
39
|
- repo: https://github.com/pycqa/flake8
|
|
40
|
-
rev: 7.
|
|
40
|
+
rev: 7.2.0
|
|
41
41
|
hooks:
|
|
42
42
|
- id: flake8
|
|
43
43
|
additional_dependencies: [Flake8-pyproject]
|
|
@@ -49,14 +49,14 @@ repos:
|
|
|
49
49
|
language_version: python3
|
|
50
50
|
|
|
51
51
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
52
|
-
rev: v1.
|
|
52
|
+
rev: v1.16.0
|
|
53
53
|
hooks:
|
|
54
54
|
- id: mypy
|
|
55
55
|
args: [--no-warn-unused-ignores, --ignore-missing-imports]
|
|
56
56
|
files: "python/constellation/core"
|
|
57
57
|
|
|
58
58
|
- repo: https://github.com/igorshubovych/markdownlint-cli
|
|
59
|
-
rev: v0.
|
|
59
|
+
rev: v0.45.0
|
|
60
60
|
hooks:
|
|
61
61
|
- id: markdownlint
|
|
62
62
|
|
|
@@ -14,6 +14,7 @@ The following authors, in alphabetical order, have developed or contributed to C
|
|
|
14
14
|
|
|
15
15
|
* Lene Kristian Bryngemark, Lunds universitet, [ext-lene_kristian.bryngemark](https://gitlab.desy.de/ext-lene_kristian.bryngemark)
|
|
16
16
|
* Joel Ekström, Prevas AB, [joel.ekstroem](https://gitlab.desy.de/joel.ekstroem)
|
|
17
|
+
* Laurent Forthomme, AGH University of Kraków, [ext-laurent.forthomme](https://gitlab.desy.de/ext-laurent.forthomme)
|
|
17
18
|
* Lennart Huth, Deutsches Elektronen-Synchrotron DESY, [lennart.huth](https://gitlab.desy.de/lennart.huth)
|
|
18
19
|
* Linus Ros, Prevas AB, [linus.ros](https://gitlab.desy.de/linus.ros)
|
|
19
20
|
* Aditya Saroha, SJC Institute of Technology, [ext-adityasaroha456](https://gitlab.desy.de/ext-adityasaroha456)
|
|
@@ -8,9 +8,6 @@ message: >-
|
|
|
8
8
|
metadata from this file.
|
|
9
9
|
type: software
|
|
10
10
|
authors:
|
|
11
|
-
- given-names: Joel
|
|
12
|
-
family-names: Ekström
|
|
13
|
-
affiliation: DVel
|
|
14
11
|
- given-names: Stephan
|
|
15
12
|
family-names: Lachnit
|
|
16
13
|
affiliation: DESY
|
|
@@ -19,13 +16,13 @@ authors:
|
|
|
19
16
|
family-names: Perrey
|
|
20
17
|
affiliation: DVel
|
|
21
18
|
orcid: 'https://orcid.org/0000-0001-6661-5778'
|
|
22
|
-
- given-names: Linus
|
|
23
|
-
family-names: Ros
|
|
24
|
-
affiliation: DVel
|
|
25
19
|
- given-names: Simon
|
|
26
20
|
family-names: Spannagel
|
|
27
21
|
orcid: 'https://orcid.org/0000-0003-4708-3774'
|
|
28
22
|
affiliation: DESY
|
|
23
|
+
identifiers:
|
|
24
|
+
- type: doi
|
|
25
|
+
value: 10.5281/zenodo.15688357
|
|
29
26
|
repository-code: 'https://gitlab.desy.de/constellation/constellation'
|
|
30
27
|
url: 'https://constellation.pages.desy.de/'
|
|
31
28
|
license: EUPL-1.2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ConstellationDAQ
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5
|
|
4
4
|
Summary: The Autonomous Control and Data Acquisition System for Dynamic Experimental Setups
|
|
5
5
|
Author: Constellation Authors
|
|
6
6
|
License: EUPL-1.2
|
|
@@ -43,8 +43,8 @@ Requires-Dist: sphinx; extra == "docs"
|
|
|
43
43
|
Requires-Dist: sphinx-autobuild; extra == "docs"
|
|
44
44
|
Requires-Dist: pydata_sphinx_theme; extra == "docs"
|
|
45
45
|
Requires-Dist: myst-parser; extra == "docs"
|
|
46
|
-
Requires-Dist: breathe; extra == "docs"
|
|
47
46
|
Requires-Dist: ablog; extra == "docs"
|
|
47
|
+
Requires-Dist: breathe; extra == "docs"
|
|
48
48
|
Requires-Dist: sphinxcontrib-plantuml; extra == "docs"
|
|
49
49
|
Requires-Dist: sphinxcontrib-spelling; extra == "docs"
|
|
50
50
|
Requires-Dist: sphinx_design; extra == "docs"
|
|
@@ -63,6 +63,9 @@ Provides-Extra: influx
|
|
|
63
63
|
Requires-Dist: influxdb-client; extra == "influx"
|
|
64
64
|
Provides-Extra: keithley
|
|
65
65
|
Requires-Dist: pyserial; extra == "keithley"
|
|
66
|
+
Provides-Extra: lecroy
|
|
67
|
+
Requires-Dist: lecrunch3>=3.0.3; extra == "lecroy"
|
|
68
|
+
Requires-Dist: numpy; extra == "lecroy"
|
|
66
69
|
Provides-Extra: visa
|
|
67
70
|
Requires-Dist: pyvisa; extra == "visa"
|
|
68
71
|
Requires-Dist: pyvisa-py; extra == "visa"
|
|
@@ -90,6 +93,7 @@ More details about the project can be found on the website at [constellation.pag
|
|
|
90
93
|
[](https://api.reuse.software/info/gitlab.desy.de/constellation/constellation)
|
|
91
94
|
[](https://gitlab.desy.de/constellation/constellation/-/graphs/main/charts)
|
|
92
95
|
[](https://gitlab.desy.de/constellation/constellation/-/pipelines/charts)
|
|
96
|
+
[](https://doi.org/10.5281/zenodo.15688357)
|
|
93
97
|
|
|
94
98
|
## Licenses
|
|
95
99
|
|
|
@@ -18,6 +18,7 @@ More details about the project can be found on the website at [constellation.pag
|
|
|
18
18
|
[](https://api.reuse.software/info/gitlab.desy.de/constellation/constellation)
|
|
19
19
|
[](https://gitlab.desy.de/constellation/constellation/-/graphs/main/charts)
|
|
20
20
|
[](https://gitlab.desy.de/constellation/constellation/-/pipelines/charts)
|
|
21
|
+
[](https://doi.org/10.5281/zenodo.15688357)
|
|
21
22
|
|
|
22
23
|
## Licenses
|
|
23
24
|
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
#include <stop_token>
|
|
25
25
|
#include <string>
|
|
26
26
|
#include <string_view>
|
|
27
|
+
#include <thread>
|
|
27
28
|
#include <utility>
|
|
28
29
|
#include <variant>
|
|
29
30
|
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
#include <zmq.hpp>
|
|
32
33
|
#include <zmq_addon.hpp>
|
|
33
34
|
|
|
35
|
+
#include "constellation/controller/exceptions.hpp"
|
|
34
36
|
#include "constellation/core/chirp/Manager.hpp"
|
|
35
37
|
#include "constellation/core/config/Dictionary.hpp"
|
|
36
38
|
#include "constellation/core/log/log.hpp"
|
|
@@ -46,6 +48,7 @@
|
|
|
46
48
|
#include "constellation/core/utils/ManagerLocator.hpp"
|
|
47
49
|
#include "constellation/core/utils/msgpack.hpp"
|
|
48
50
|
#include "constellation/core/utils/string.hpp"
|
|
51
|
+
#include "constellation/core/utils/timers.hpp"
|
|
49
52
|
|
|
50
53
|
using namespace constellation::config;
|
|
51
54
|
using namespace constellation::controller;
|
|
@@ -202,8 +205,11 @@ void Controller::process_heartbeat(const message::CHP1Message& msg) {
|
|
|
202
205
|
// Find satellite from connection list based in the heartbeat sender name
|
|
203
206
|
const auto sat = connections_.find(msg.getSender());
|
|
204
207
|
if(sat != connections_.end()) {
|
|
205
|
-
|
|
206
|
-
|
|
208
|
+
const auto& status = msg.getStatus();
|
|
209
|
+
LOG(logger_, TRACE) << msg.getSender() << " reports state " << msg.getState() //
|
|
210
|
+
<< ", flags " << enum_name(msg.getFlags()) //
|
|
211
|
+
<< (status.has_value() ? ", status `" + status.value() + "`" : "") //
|
|
212
|
+
<< ", next message in " << msg.getInterval().count(); //
|
|
207
213
|
|
|
208
214
|
const auto deviation = std::chrono::duration_cast<std::chrono::seconds>(now - msg.getTime());
|
|
209
215
|
if(std::chrono::abs(deviation) > 3s) [[unlikely]] {
|
|
@@ -213,13 +219,13 @@ void Controller::process_heartbeat(const message::CHP1Message& msg) {
|
|
|
213
219
|
// Check if information has changed and we need to calculate and propagate updates:
|
|
214
220
|
bool connection_updated = (sat->second.state != msg.getState()) || (sat->second.interval != msg.getInterval());
|
|
215
221
|
|
|
216
|
-
// Update
|
|
222
|
+
// Update heartbeat info
|
|
223
|
+
sat->second.role = msg.getRole();
|
|
217
224
|
sat->second.interval = msg.getInterval();
|
|
218
225
|
sat->second.last_heartbeat = now;
|
|
219
226
|
sat->second.state = msg.getState();
|
|
220
227
|
|
|
221
228
|
// Update status message if available
|
|
222
|
-
const auto status = msg.getStatus();
|
|
223
229
|
if(status.has_value()) {
|
|
224
230
|
sat->second.last_message = status.value();
|
|
225
231
|
connection_updated = true;
|
|
@@ -254,6 +260,25 @@ std::set<std::string> Controller::getConnections() const {
|
|
|
254
260
|
return connections;
|
|
255
261
|
}
|
|
256
262
|
|
|
263
|
+
bool Controller::hasConnection(std::string_view satellite_name) const {
|
|
264
|
+
const std::lock_guard connection_lock {connection_mutex_};
|
|
265
|
+
|
|
266
|
+
// Find satellite by canonical name:
|
|
267
|
+
return connections_.contains(satellite_name);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
Dictionary Controller::getConnectionCommands(std::string_view satellite_name) const {
|
|
271
|
+
const std::lock_guard connection_lock {connection_mutex_};
|
|
272
|
+
|
|
273
|
+
// Find satellite by canonical name:
|
|
274
|
+
const auto sat = connections_.find(satellite_name);
|
|
275
|
+
if(sat != connections_.end()) {
|
|
276
|
+
return sat->second.commands;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
return {};
|
|
280
|
+
}
|
|
281
|
+
|
|
257
282
|
std::string Controller::getRunIdentifier() {
|
|
258
283
|
const std::lock_guard connection_lock {connection_mutex_};
|
|
259
284
|
for(auto& [name, sat] : connections_) {
|
|
@@ -307,10 +332,28 @@ std::optional<std::chrono::system_clock::time_point> Controller::getRunStartTime
|
|
|
307
332
|
bool Controller::isInState(CSCP::State state) const {
|
|
308
333
|
const std::lock_guard connection_lock {connection_mutex_};
|
|
309
334
|
|
|
335
|
+
// Without connections, the state is NEW
|
|
336
|
+
if(connections_.empty() && state != CSCP::State::NEW) {
|
|
337
|
+
return false;
|
|
338
|
+
}
|
|
339
|
+
|
|
310
340
|
return std::ranges::all_of(
|
|
311
341
|
connections_.cbegin(), connections_.cend(), [state](const auto& conn) { return conn.second.state == state; });
|
|
312
342
|
}
|
|
313
343
|
|
|
344
|
+
bool Controller::hasAnyErrorState() const {
|
|
345
|
+
const std::lock_guard connection_lock {connection_mutex_};
|
|
346
|
+
|
|
347
|
+
// Without connection, there is no error state
|
|
348
|
+
if(connections_.empty()) {
|
|
349
|
+
return false;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
return std::ranges::any_of(connections_.cbegin(), connections_.cend(), [](const auto& conn) {
|
|
353
|
+
return conn.second.state == CSCP::State::ERROR || conn.second.state == CSCP::State::SAFE;
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
|
|
314
357
|
bool Controller::isInGlobalState() const {
|
|
315
358
|
const std::lock_guard connection_lock {connection_mutex_};
|
|
316
359
|
|
|
@@ -320,6 +363,20 @@ bool Controller::isInGlobalState() const {
|
|
|
320
363
|
}) == connections_.cend();
|
|
321
364
|
}
|
|
322
365
|
|
|
366
|
+
void Controller::awaitState(CSCP::State state, std::chrono::seconds timeout) const {
|
|
367
|
+
auto timer = TimeoutTimer(timeout);
|
|
368
|
+
timer.reset();
|
|
369
|
+
|
|
370
|
+
while(!isInState(state)) {
|
|
371
|
+
if(timer.timeoutReached()) {
|
|
372
|
+
throw ControllerError("Timed out waiting for global state " + to_string(state));
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
// Wait a bit to avoid hot-loop
|
|
376
|
+
std::this_thread::sleep_for(10ms);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
323
380
|
CSCP::State Controller::getLowestState() const {
|
|
324
381
|
const std::lock_guard connection_lock {connection_mutex_};
|
|
325
382
|
|
|
@@ -435,7 +492,8 @@ std::map<std::string, CSCP1Message> Controller::sendCommands(std::string verb, c
|
|
|
435
492
|
}
|
|
436
493
|
|
|
437
494
|
std::map<std::string, CSCP1Message> Controller::sendCommands(const std::string& verb,
|
|
438
|
-
const std::map<std::string, CommandPayload>& payloads
|
|
495
|
+
const std::map<std::string, CommandPayload>& payloads,
|
|
496
|
+
bool include_missing) {
|
|
439
497
|
|
|
440
498
|
std::map<std::string, std::future<CSCP1Message>> futures {};
|
|
441
499
|
std::map<std::string, CSCP1Message> replies {};
|
|
@@ -443,6 +501,11 @@ std::map<std::string, CSCP1Message> Controller::sendCommands(const std::string&
|
|
|
443
501
|
const std::lock_guard connection_lock {connection_mutex_};
|
|
444
502
|
|
|
445
503
|
for(auto& [name, sat] : connections_) {
|
|
504
|
+
// If satellites without payload should not be included, skip:
|
|
505
|
+
if(!include_missing && !payloads.contains(name)) {
|
|
506
|
+
continue;
|
|
507
|
+
}
|
|
508
|
+
|
|
446
509
|
// Start command sending and store future:
|
|
447
510
|
futures.emplace(name, std::async(std::launch::async, [&]() {
|
|
448
511
|
// Prepare message:
|
|
@@ -78,6 +78,7 @@ namespace constellation::controller {
|
|
|
78
78
|
config::Dictionary commands {};
|
|
79
79
|
|
|
80
80
|
/** Heartbeat status */
|
|
81
|
+
protocol::CHP::Role role {protocol::CHP::Role::DYNAMIC};
|
|
81
82
|
std::chrono::milliseconds interval {10000};
|
|
82
83
|
std::chrono::system_clock::time_point last_heartbeat {std::chrono::system_clock::now()};
|
|
83
84
|
std::chrono::system_clock::time_point last_checked {std::chrono::system_clock::now()};
|
|
@@ -177,16 +178,18 @@ namespace constellation::controller {
|
|
|
177
178
|
* @brief Send a command to all connected satellites
|
|
178
179
|
* @details This method allows to send command message to all connected satellites. The message is formed
|
|
179
180
|
* individually for each satellite from the provided verb and the payload entry in the map for the given satellite.
|
|
180
|
-
*
|
|
181
|
-
* returned as a map.
|
|
181
|
+
* The response from all satellites is returned as a map.
|
|
182
182
|
*
|
|
183
183
|
* @param verb Command
|
|
184
184
|
* @param payloads Map of payloads for each target satellite.
|
|
185
|
+
* @param include_missing Also send the command to satellites not present in the payload map. If false, missing
|
|
186
|
+
* satellites are skipped, if true, they will receive an empty payload.
|
|
185
187
|
*
|
|
186
188
|
* @return Map of satellite canonical names and their CSCP response messages
|
|
187
189
|
*/
|
|
188
190
|
std::map<std::string, message::CSCP1Message> sendCommands(const std::string& verb,
|
|
189
|
-
const std::map<std::string, CommandPayload>& payloads
|
|
191
|
+
const std::map<std::string, CommandPayload>& payloads,
|
|
192
|
+
bool include_missing = true);
|
|
190
193
|
|
|
191
194
|
/**
|
|
192
195
|
* @brief Helper to check if all connected satellites are in a given state
|
|
@@ -196,6 +199,12 @@ namespace constellation::controller {
|
|
|
196
199
|
*/
|
|
197
200
|
bool isInState(protocol::CSCP::State state) const;
|
|
198
201
|
|
|
202
|
+
/**
|
|
203
|
+
* @brief Helper to check if any of the connected satellites report an error or safe state
|
|
204
|
+
* @return True if any satellite is in ERROR or SAFE state, false otherwise
|
|
205
|
+
*/
|
|
206
|
+
bool hasAnyErrorState() const;
|
|
207
|
+
|
|
199
208
|
/**
|
|
200
209
|
* @brief Helper to check if the constellation is in a coherent global state of if states are mixed
|
|
201
210
|
*
|
|
@@ -203,6 +212,15 @@ namespace constellation::controller {
|
|
|
203
212
|
*/
|
|
204
213
|
bool isInGlobalState() const;
|
|
205
214
|
|
|
215
|
+
/**
|
|
216
|
+
* @brief Helper to wait until all connected satellites are in a given state
|
|
217
|
+
*
|
|
218
|
+
* @param state State to be checked for
|
|
219
|
+
* @param timeout Time to wait before an exception is thrown
|
|
220
|
+
* @throw ControllerError If the timeout is reached before the global state is reached
|
|
221
|
+
*/
|
|
222
|
+
void awaitState(protocol::CSCP::State state, std::chrono::seconds timeout) const;
|
|
223
|
+
|
|
206
224
|
/**
|
|
207
225
|
* @brief Get lowest state of any satellite connected
|
|
208
226
|
* @details This returns the lowest state of any of the satellites. Here, "lowest" refers to the state code, i.e. the
|
|
@@ -217,6 +235,22 @@ namespace constellation::controller {
|
|
|
217
235
|
*/
|
|
218
236
|
std::set<std::string> getConnections() const;
|
|
219
237
|
|
|
238
|
+
/**
|
|
239
|
+
* @brief Check if the controller has a connection to the satellite
|
|
240
|
+
*
|
|
241
|
+
* @param satellite_name Canonical name of the satellite
|
|
242
|
+
* @return True if connection is established, false if the satellite is known
|
|
243
|
+
*/
|
|
244
|
+
bool hasConnection(std::string_view satellite_name) const;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* @brief Get set of all available commands for the given satellite
|
|
248
|
+
*
|
|
249
|
+
* @param satellite_name Canonical name of the satellite
|
|
250
|
+
* @return Dictionary of commands and their description that the satellite in question provides
|
|
251
|
+
*/
|
|
252
|
+
config::Dictionary getConnectionCommands(std::string_view satellite_name) const;
|
|
253
|
+
|
|
220
254
|
/**
|
|
221
255
|
* @brief Get total number of currently active connected satellites
|
|
222
256
|
* @return Number of currently connected satellites
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
#include "ControllerConfiguration.hpp"
|
|
11
11
|
|
|
12
|
+
#include <algorithm>
|
|
13
|
+
#include <chrono>
|
|
12
14
|
#include <cstdint>
|
|
13
15
|
#include <filesystem>
|
|
14
16
|
#include <fstream>
|
|
@@ -18,21 +20,30 @@
|
|
|
18
20
|
#include <string>
|
|
19
21
|
#include <string_view>
|
|
20
22
|
#include <type_traits>
|
|
23
|
+
#include <unordered_set>
|
|
21
24
|
#include <utility>
|
|
22
25
|
#include <variant>
|
|
23
26
|
#include <vector>
|
|
27
|
+
#include <version> // IWYU pragma: keep
|
|
28
|
+
|
|
29
|
+
#if __cpp_lib_chrono < 201907L
|
|
30
|
+
#include <ctime>
|
|
31
|
+
#endif
|
|
24
32
|
|
|
25
33
|
#include <toml++/toml.hpp>
|
|
26
34
|
|
|
27
35
|
#include "constellation/controller/exceptions.hpp"
|
|
36
|
+
#include "constellation/core/config/Configuration.hpp"
|
|
28
37
|
#include "constellation/core/config/Dictionary.hpp"
|
|
29
38
|
#include "constellation/core/config/Value.hpp"
|
|
30
39
|
#include "constellation/core/log/log.hpp"
|
|
40
|
+
#include "constellation/core/protocol/CSCP_definitions.hpp"
|
|
31
41
|
#include "constellation/core/utils/string.hpp"
|
|
32
42
|
|
|
33
43
|
using namespace constellation::controller;
|
|
34
44
|
using namespace constellation::config;
|
|
35
45
|
using namespace constellation::log;
|
|
46
|
+
using namespace constellation::protocol;
|
|
36
47
|
using namespace constellation::utils;
|
|
37
48
|
|
|
38
49
|
ControllerConfiguration::ControllerConfiguration(const std::filesystem::path& path) {
|
|
@@ -50,14 +61,37 @@ ControllerConfiguration::ControllerConfiguration(const std::filesystem::path& pa
|
|
|
50
61
|
buffer << file.rdbuf();
|
|
51
62
|
|
|
52
63
|
parse_toml(buffer.view());
|
|
64
|
+
|
|
65
|
+
// Build the dependency graph from all satellite configurations
|
|
66
|
+
for(const auto& [name, cfg] : satellite_configs_) {
|
|
67
|
+
fill_dependency_graph(name);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Validate the configuration
|
|
71
|
+
validate();
|
|
53
72
|
}
|
|
54
73
|
|
|
55
74
|
ControllerConfiguration::ControllerConfiguration(std::string_view toml) {
|
|
56
75
|
parse_toml(toml);
|
|
76
|
+
|
|
77
|
+
// Build the dependency graph from all satellite configurations
|
|
78
|
+
for(const auto& [name, cfg] : satellite_configs_) {
|
|
79
|
+
fill_dependency_graph(name);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Validate the configuration
|
|
83
|
+
validate();
|
|
57
84
|
}
|
|
58
85
|
|
|
59
86
|
std::string ControllerConfiguration::getAsTOML() const {
|
|
60
87
|
|
|
88
|
+
// Validate the configuration
|
|
89
|
+
try {
|
|
90
|
+
validate();
|
|
91
|
+
} catch(const ConfigFileValidationError& error) {
|
|
92
|
+
LOG(config_parser_logger_, WARNING) << error.what();
|
|
93
|
+
}
|
|
94
|
+
|
|
61
95
|
auto get_toml_array = [&](auto&& val) -> toml::array {
|
|
62
96
|
toml::array arr;
|
|
63
97
|
|
|
@@ -199,6 +233,34 @@ void ControllerConfiguration::parse_toml(std::string_view toml) {
|
|
|
199
233
|
if constexpr(toml::is_string<decltype(val)>) {
|
|
200
234
|
return val.as_string()->get();
|
|
201
235
|
}
|
|
236
|
+
if constexpr(toml::is_time<decltype(val)>) {
|
|
237
|
+
// TOML defines this as local time
|
|
238
|
+
const auto toml_time = val.as_time()->get();
|
|
239
|
+
|
|
240
|
+
const auto time_now = std::chrono::system_clock::now();
|
|
241
|
+
|
|
242
|
+
#if __cpp_lib_chrono >= 201907L
|
|
243
|
+
const auto local_time_now = std::chrono::current_zone()->to_local(time_now);
|
|
244
|
+
// Use midnight today plus local time from TOML
|
|
245
|
+
const auto local_time = std::chrono::floor<std::chrono::days>(local_time_now) +
|
|
246
|
+
std::chrono::hours {toml_time.hour} + std::chrono::minutes {toml_time.minute} +
|
|
247
|
+
std::chrono::seconds {toml_time.second};
|
|
248
|
+
const auto system_time = std::chrono::current_zone()->to_sys(local_time);
|
|
249
|
+
#else
|
|
250
|
+
const auto time_t = std::chrono::system_clock::to_time_t(time_now);
|
|
251
|
+
std::tm tm {};
|
|
252
|
+
localtime_r(&time_t, &tm); // there is no thread-safe std::localtime
|
|
253
|
+
// Use mightnight today plus local time from TOML
|
|
254
|
+
tm.tm_hour = toml_time.hour;
|
|
255
|
+
tm.tm_min = toml_time.minute;
|
|
256
|
+
tm.tm_sec = toml_time.second;
|
|
257
|
+
const auto local_time_t = std::mktime(&tm);
|
|
258
|
+
const auto system_time = std::chrono::system_clock::from_time_t(local_time_t);
|
|
259
|
+
#endif
|
|
260
|
+
|
|
261
|
+
// Return as system time
|
|
262
|
+
return system_time;
|
|
263
|
+
}
|
|
202
264
|
// If not returned yet then unknown type
|
|
203
265
|
throw ConfigFileTypeError(key.str(), "Unknown type");
|
|
204
266
|
};
|
|
@@ -254,6 +316,103 @@ void ControllerConfiguration::parse_toml(std::string_view toml) {
|
|
|
254
316
|
}
|
|
255
317
|
}
|
|
256
318
|
|
|
319
|
+
void ControllerConfiguration::fill_dependency_graph(std::string_view canonical_name) {
|
|
320
|
+
// Parse all transition condition parameters
|
|
321
|
+
for(const auto& state : {CSCP::State::initializing,
|
|
322
|
+
CSCP::State::launching,
|
|
323
|
+
CSCP::State::landing,
|
|
324
|
+
CSCP::State::starting,
|
|
325
|
+
CSCP::State::stopping}) {
|
|
326
|
+
const auto key = transform("_require_" + to_string(state) + "_after", ::tolower);
|
|
327
|
+
|
|
328
|
+
// Get final assembled config and look for the key:
|
|
329
|
+
const auto config = getSatelliteConfiguration(canonical_name);
|
|
330
|
+
if(config.contains(key)) {
|
|
331
|
+
auto register_dependency = [this, canonical_name, state](auto& dependent) {
|
|
332
|
+
// Register dependency in graph, current satellite depends on config value satellite
|
|
333
|
+
transition_graph_[state][transform(dependent, ::tolower)].emplace(transform(canonical_name, ::tolower));
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
const auto dependents = Configuration(config).getArray<std::string>(key);
|
|
337
|
+
LOG(config_parser_logger_, DEBUG)
|
|
338
|
+
<< "Registering dependency for transitional state `" << to_string(state) << "` of " << canonical_name
|
|
339
|
+
<< " with dependents " << range_to_string(dependents);
|
|
340
|
+
std::ranges::for_each(dependents, register_dependency);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
void ControllerConfiguration::validate() const {
|
|
346
|
+
|
|
347
|
+
// Check each transition for possible cycles
|
|
348
|
+
for(const auto& transition_pair : transition_graph_) {
|
|
349
|
+
const auto transition = transition_pair.first;
|
|
350
|
+
LOG(config_parser_logger_, DEBUG) << "Checking for deadlock in transition: " << transition;
|
|
351
|
+
|
|
352
|
+
if(check_transition_deadlock(transition)) {
|
|
353
|
+
LOG(config_parser_logger_, DEBUG) << "Deadlock detected in transition: " << transition;
|
|
354
|
+
throw ConfigFileValidationError("Cyclic dependency for transition `" + to_string(transition) + "`");
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
// No deadlock in any transition
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
bool ControllerConfiguration::check_transition_deadlock(CSCP::State transition) const {
|
|
361
|
+
// If no dependencies for this transition doesn't exist, there is no cycle:
|
|
362
|
+
if(!transition_graph_.contains(transition)) {
|
|
363
|
+
return false;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
std::unordered_set<std::string> visited;
|
|
367
|
+
std::unordered_set<std::string> recursion_stack;
|
|
368
|
+
|
|
369
|
+
// Recursive depth first search:
|
|
370
|
+
auto dfs = [&](const auto& self, const std::string& satellite) { // NOLINT(misc-no-recursion)
|
|
371
|
+
// Cycle detected (deadlock)
|
|
372
|
+
if(recursion_stack.find(satellite) != recursion_stack.end()) {
|
|
373
|
+
return true;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
// Satellite already processed
|
|
377
|
+
if(visited.find(satellite) != visited.end()) {
|
|
378
|
+
return false;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
// No transition registered for this satellite:
|
|
382
|
+
if(!transition_graph_.at(transition).contains(satellite)) {
|
|
383
|
+
return false;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
visited.insert(satellite);
|
|
387
|
+
recursion_stack.insert(satellite);
|
|
388
|
+
|
|
389
|
+
// Visit all dependent satellites
|
|
390
|
+
for(const auto& dependent : transition_graph_.at(transition).at(satellite)) {
|
|
391
|
+
if(self(self, dependent)) {
|
|
392
|
+
return true;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
// Remove satellite from recursion stack
|
|
397
|
+
recursion_stack.erase(satellite);
|
|
398
|
+
return false;
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
// Traverse each satellite for the given transition
|
|
402
|
+
for(const auto& pair : transition_graph_.at(transition)) {
|
|
403
|
+
const std::string& satellite = pair.first;
|
|
404
|
+
if(visited.find(satellite) == visited.end()) {
|
|
405
|
+
if(dfs(dfs, satellite)) {
|
|
406
|
+
// Deadlock detected in this transition
|
|
407
|
+
return true;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
// No deadlock detected in this transition
|
|
413
|
+
return false;
|
|
414
|
+
}
|
|
415
|
+
|
|
257
416
|
bool ControllerConfiguration::hasSatelliteConfiguration(std::string_view canonical_name) const {
|
|
258
417
|
return satellite_configs_.contains(transform(canonical_name, ::tolower));
|
|
259
418
|
}
|
|
@@ -269,6 +428,9 @@ void ControllerConfiguration::addSatelliteConfiguration(std::string_view canonic
|
|
|
269
428
|
} else {
|
|
270
429
|
satellite_configs_.emplace(canonical_name_lc, std::move(config));
|
|
271
430
|
}
|
|
431
|
+
|
|
432
|
+
// Add satellite to dependency graph:
|
|
433
|
+
fill_dependency_graph(canonical_name);
|
|
272
434
|
}
|
|
273
435
|
|
|
274
436
|
Dictionary ControllerConfiguration::getSatelliteConfiguration(std::string_view canonical_name) const {
|