#2912 - Merge in changes on target branch

This commit is contained in:
Charlie Crane
2025-01-03 14:48:18 +00:00
407 changed files with 664 additions and 671 deletions

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
from typing import Any, Dict, Optional, Tuple from typing import Any, Dict, Optional, Tuple
from gymnasium.core import ObsType from gymnasium.core import ObsType

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
import json import json
import shutil import shutil
from datetime import datetime from datetime import datetime

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
import json import json
import sys import sys
from datetime import datetime from datetime import datetime

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
import platform import platform
from typing import Dict from typing import Dict

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. ..
Credit to https://github.com/JamesALeedham/Sphinx-Autosummary-Recursion for the custom templates. Credit to https://github.com/JamesALeedham/Sphinx-Autosummary-Recursion for the custom templates.

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. ..
Credit to https://github.com/JamesALeedham/Sphinx-Autosummary-Recursion for the custom templates. Credit to https://github.com/JamesALeedham/Sphinx-Autosummary-Recursion for the custom templates.

View File

@@ -2,7 +2,7 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. ..
DO NOT DELETE THIS FILE! It contains the all-important `.. autosummary::` directive with `:recursive:` option, without DO NOT DELETE THIS FILE! It contains the all-important `.. autosummary::` directive with `:recursive:` option, without

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
# Configuration file for the Sphinx documentation builder. # Configuration file for the Sphinx documentation builder.
# #
# For the full list of built-in configuration values, see the documentation: # For the full list of built-in configuration values, see the documentation:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
Welcome to PrimAITE's documentation Welcome to PrimAITE's documentation
==================================== ====================================

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
Action Masking Action Masking
************** **************

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
PrimAITE |VERSION| Configuration PrimAITE |VERSION| Configuration
******************************** ********************************

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
``agents`` ``agents``

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
``game`` ``game``

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
``io_settings`` ``io_settings``

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
``simulation`` ``simulation``

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _Node Attributes: .. _Node Attributes:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _common_host_node_attributes: .. _common_host_node_attributes:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _common_network_node_attributes: .. _common_network_node_attributes:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _common_node_attributes: .. _common_node_attributes:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
``type`` ``type``
-------- --------

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _computer_configuration: .. _computer_configuration:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _firewall_configuration: .. _firewall_configuration:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _network_examples: .. _network_examples:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _router_configuration: .. _router_configuration:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _server_configuration: .. _server_configuration:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _switch_configuration: .. _switch_configuration:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
``applications`` ``applications``
---------------- ----------------

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
``services`` ``services``
------------ ------------

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
Customising Agents Customising Agents
****************** ******************

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. role:: raw-html(raw) .. role:: raw-html(raw)
:format: html :format: html

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _Developer Tools: .. _Developer Tools:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
RL Environments RL Environments
*************** ***************

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _example jupyter notebooks: .. _example jupyter notebooks:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
PrimAITE Game layer PrimAITE Game layer
******************* *******************

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _getting-started: .. _getting-started:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
Glossary Glossary
============= =============

View File

@@ -0,0 +1,57 @@
.. only:: comment
© Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _about:
Extensible Rewards
******************
Extensible Rewards differ from the previous reward mechanism used in PrimAITE v3.x as new reward
types can be added without requiring a change to the RewardFunction class in rewards.py (PrimAITE
core repository).
Changes to reward class structure.
==================================
Reward classes are inherited from AbstractReward (a sub-class of Pydantic's BaseModel).
Within the reward class there is a ConfigSchema class responsible for ensuring the config file data
is in the correct format. This also means there is little (if no) requirement for and `__init__`
method. The `.from_config` method is no longer required as it's inherited from `AbstractReward`.
Each class requires an identifier string which is used by the ConfigSchema class to verify that it
hasn't previously been added to the registry.
Inheriting from `BaseModel` removes the need for an `__init__` method but means that object
attributes need to be passed by keyword.
To add a new reward class follow the example below. Note that the type attribute in the
`ConfigSchema` class should match the type used in the config file to define the reward.
.. code-block:: Python
class DatabaseFileIntegrity(AbstractReward, identifier="DATABASE_FILE_INTEGRITY"):
"""Reward function component which rewards the agent for maintaining the integrity of a database file."""
config: "DatabaseFileIntegrity.ConfigSchema"
location_in_state: List[str] = [""]
reward: float = 0.0
class ConfigSchema(AbstractReward.ConfigSchema):
"""ConfigSchema for DatabaseFileIntegrity."""
type: str = "DATABASE_FILE_INTEGRITY"
node_hostname: str
folder_name: str
file_name: str
def calculate(self, state: Dict, last_action_response: "AgentHistoryItem") -> float:
"""Calculate the reward for the current state.
pass
Changes to YAML file.
=====================
.. code:: YAML
There's no longer a need to provide a `dns_server` as an option in the simulation section
of the config file.

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _network_node_adder: .. _network_node_adder:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _Executed Notebooks: .. _Executed Notebooks:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
+-------------------+---------+------------------------------------+-------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+ +-------------------+---------+------------------------------------+-------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+
| Name | Version | License | Description | URL | | Name | Version | License | Description | URL |

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
Request System Request System
************** **************

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
Rewards Rewards
####### #######

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
Simulation Simulation

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _airspace: .. _airspace:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
############# #############
Base Hardware Base Hardware

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _network: .. _network:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
################################# #################################
Network Interface Hierarchy Model Network Interface Hierarchy Model

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
######## ########
Firewall Firewall

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
######### #########

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
############ ############
Network Node Network Node

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
###### ######
Router Router

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
###### ######
Switch Switch

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
###### ######
Wireless Router Wireless Router

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
Transport Layer to Data Link Layer Transport Layer to Data Link Layer
================================== ==================================

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _C2_Suite: .. _C2_Suite:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _DataManipulationBot: .. _DataManipulationBot:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _DatabaseClient: .. _DatabaseClient:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _DoSBot: .. _DoSBot:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _NMAP: .. _NMAP:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _RansomwareScript: .. _RansomwareScript:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _WebBrowser: .. _WebBrowser:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _Common Configuration: .. _Common Configuration:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _Database Payload List: .. _Database Payload List:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _internal_frame_processing: .. _internal_frame_processing:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
``system applications`` ``system applications``
""""""""""""""""""""""" """""""""""""""""""""""

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
``system services`` ``system services``
""""""""""""""""""" """""""""""""""""""

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
PCAP PCAP
==== ====

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _DatabaseService: .. _DatabaseService:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _DNSClient: .. _DNSClient:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _DNSServer: .. _DNSServer:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _FTPClient: .. _FTPClient:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _FTPServer: .. _FTPServer:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _NTPClient: .. _NTPClient:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _NTPServer: .. _NTPServer:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _Terminal: .. _Terminal:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _WebServer: .. _WebServer:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
Session and Software Manager Session and Software Manager
============================ ============================

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
.. _software: .. _software:

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
SysLog SysLog
====== ======

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
Simulation Structure Simulation Structure

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
Simulation State Simulation State
================ ================

View File

@@ -1,6 +1,6 @@
.. only:: comment .. only:: comment
© Crown-owned copyright 2024, Defence Science and Technology Laboratory UK © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
Defining variations in the config files Defining variations in the config files
======================================= =======================================

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
import datetime as datetime import datetime as datetime
import logging import logging
import logging.config import logging.config

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
""" """
This module contains the ActionManager class which belongs to the Agent class. This module contains the ActionManager class which belongs to the Agent class.

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""Provides a CLI using Typer as an entry point.""" """Provides a CLI using Typer as an entry point."""
import logging import logging
import os import os

View File

@@ -1,2 +1,2 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""Configuration parameters for running experiments.""" """Configuration parameters for running experiments."""

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
from pathlib import Path from pathlib import Path
from typing import Dict, Final, Union from typing import Dict, Final, Union

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
class PrimaiteError(Exception): class PrimaiteError(Exception):
"""The root PrimAITE Error.""" """The root PrimAITE Error."""

View File

@@ -1,2 +1,2 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""PrimAITE Game Layer.""" """PrimAITE Game Layer."""

View File

@@ -1 +1 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
import logging import logging
from pathlib import Path from pathlib import Path

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
"""Interface for agents.""" """Interface for agents."""
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from typing import Any, Dict, List, Optional, Tuple, TYPE_CHECKING from typing import Any, Dict, List, Optional, Tuple, TYPE_CHECKING

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
# flake8: noqa # flake8: noqa
# Pre-import all the observations when we load up the observations module so that they can be resolved by the parser. # Pre-import all the observations when we load up the observations module so that they can be resolved by the parser.
from primaite.game.agent.observations.acl_observation import ACLObservation from primaite.game.agent.observations.acl_observation import ACLObservation

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
from __future__ import annotations from __future__ import annotations
from ipaddress import IPv4Address from ipaddress import IPv4Address

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
from __future__ import annotations from __future__ import annotations
from typing import Dict, Iterable, List, Optional from typing import Dict, Iterable, List, Optional

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
from __future__ import annotations from __future__ import annotations
from typing import Dict, List, Optional from typing import Dict, List, Optional

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
from __future__ import annotations from __future__ import annotations
from typing import Dict, List, Optional from typing import Dict, List, Optional

View File

@@ -1,4 +1,4 @@
# © Crown-owned copyright 2024, Defence Science and Technology Laboratory UK # © Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
from __future__ import annotations from __future__ import annotations
from typing import Any, Dict, List from typing import Any, Dict, List

Some files were not shown because too many files have changed in this diff Show More