2023-09-11 09:30:40 +01:00
|
|
|
.. only:: comment
|
|
|
|
|
|
2025-01-02 15:05:06 +00:00
|
|
|
© Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
|
2023-09-11 09:30:40 +01:00
|
|
|
|
2024-09-04 20:46:35 +01:00
|
|
|
.. _software:
|
|
|
|
|
|
2023-09-11 09:30:40 +01:00
|
|
|
|
|
|
|
|
Software
|
|
|
|
|
========
|
|
|
|
|
|
2023-11-27 11:38:03 +00:00
|
|
|
-------------
|
|
|
|
|
Base Software
|
|
|
|
|
-------------
|
2023-09-11 09:30:40 +01:00
|
|
|
|
2024-02-29 15:20:54 +00:00
|
|
|
Software which inherits ``IOSoftware`` installed on a node will not work unless the node has been turned on.
|
2023-09-11 09:30:40 +01:00
|
|
|
|
2023-11-27 11:38:03 +00:00
|
|
|
See :ref:`Node Start up and Shut down`
|
2023-09-11 09:30:40 +01:00
|
|
|
|
2023-11-27 11:38:03 +00:00
|
|
|
.. code-block:: python
|
|
|
|
|
|
|
|
|
|
from primaite.simulator.network.hardware.base import Node
|
|
|
|
|
from primaite.simulator.network.hardware.node_operating_state import NodeOperatingState
|
|
|
|
|
from primaite.simulator.system.services.service import ServiceOperatingState
|
|
|
|
|
from primaite.simulator.system.services.web_server.web_server import WebServer
|
|
|
|
|
|
|
|
|
|
node = Node(hostname="pc_a", start_up_duration=0, shut_down_duration=0)
|
|
|
|
|
|
|
|
|
|
node.power_on()
|
|
|
|
|
assert node.operating_state is NodeOperatingState.ON
|
|
|
|
|
|
|
|
|
|
node.software_manager.install(WebServer)
|
|
|
|
|
|
2023-11-30 13:49:37 +00:00
|
|
|
web_server: WebServer = node.software_manager.software.get("WebServer")
|
2023-11-27 11:38:03 +00:00
|
|
|
assert web_server.operating_state is ServiceOperatingState.RUNNING # service is immediately ran after install
|
|
|
|
|
|
|
|
|
|
node.power_off()
|
|
|
|
|
assert node.operating_state is NodeOperatingState.OFF
|
|
|
|
|
assert web_server.operating_state is ServiceOperatingState.STOPPED # service stops when node is powered off
|
|
|
|
|
|
|
|
|
|
node.power_on()
|
|
|
|
|
assert node.operating_state is NodeOperatingState.ON
|
|
|
|
|
assert web_server.operating_state is ServiceOperatingState.RUNNING # service turned back on when node is powered on
|
|
|
|
|
|
2024-02-23 08:55:32 +00:00
|
|
|
.. _List of Applications:
|
2023-11-27 11:38:03 +00:00
|
|
|
|
2024-02-23 08:55:32 +00:00
|
|
|
Applications
|
|
|
|
|
############
|
2023-09-11 09:30:40 +01:00
|
|
|
|
2024-02-23 08:55:32 +00:00
|
|
|
These are a list of applications that are currently available in PrimAITE:
|
2023-09-11 09:30:40 +01:00
|
|
|
|
2024-02-23 08:55:32 +00:00
|
|
|
.. include:: list_of_applications.rst
|
|
|
|
|
|
|
|
|
|
.. _List of Services:
|
|
|
|
|
|
|
|
|
|
Services
|
|
|
|
|
########
|
|
|
|
|
|
|
|
|
|
These are a list of services that are currently available in PrimAITE:
|
|
|
|
|
|
|
|
|
|
.. include:: list_of_services.rst
|
|
|
|
|
|
|
|
|
|
.. _List of Processes:
|
|
|
|
|
|
|
|
|
|
Processes
|
|
|
|
|
#########
|
|
|
|
|
|
|
|
|
|
`To be implemented`
|
2024-09-04 20:46:35 +01:00
|
|
|
|
|
|
|
|
Common Software Configuration
|
|
|
|
|
#############################
|
|
|
|
|
|
|
|
|
|
Below is a list of the common configuration items within Software components of PrimAITE:
|
|
|
|
|
|
|
|
|
|
.. include:: common/common_configuration.rst
|