#1724 - Added the primaite/simulator/network/transmission sub-package with modules for each layer. They come together to build a minimal but fairly realistic network Frame. A custom PrimaiteHeader has been included to hold primaite specific metadata required in transmission for reward function and RL agent downstream. Added some basic tests that check the proper configuration of Frames with matching headers for protocols. Updated the frame typehints in NIC and Link classes.

This commit is contained in:
Chris McCarthy
2023-08-01 22:25:00 +01:00
parent f41fc241b7
commit 9d17a9b0d3
11 changed files with 577 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
import pytest
from primaite.simulator.network.physical_layer import Link, NIC
from primaite.simulator.network.transmission.physical_layer import Link, NIC
def test_link_fails_with_same_nic():