2017-04-25 16:45:34 +01:00
|
|
|
"""
|
2013-08-29 15:21:13 +01:00
|
|
|
ieee80211abg.py: EMANE IEEE 802.11abg model for CORE
|
2017-04-25 16:45:34 +01:00
|
|
|
"""
|
2021-03-19 23:54:24 +00:00
|
|
|
from pathlib import Path
|
2017-04-25 16:45:34 +01:00
|
|
|
|
2018-03-29 22:38:32 +01:00
|
|
|
from core.emane import emanemodel
|
2013-08-29 15:21:13 +01:00
|
|
|
|
|
|
|
|
2018-03-29 22:38:32 +01:00
|
|
|
class EmaneIeee80211abgModel(emanemodel.EmaneModel):
|
2013-08-29 15:21:13 +01:00
|
|
|
# model name
|
2020-06-12 17:52:01 +01:00
|
|
|
name: str = "emane_ieee80211abg"
|
2018-03-29 21:32:06 +01:00
|
|
|
|
|
|
|
# mac configuration
|
2020-06-12 17:52:01 +01:00
|
|
|
mac_library: str = "ieee80211abgmaclayer"
|
|
|
|
mac_xml: str = "ieee80211abgmaclayer.xml"
|
2019-04-08 17:49:37 +01:00
|
|
|
|
|
|
|
@classmethod
|
2021-03-19 23:54:24 +00:00
|
|
|
def load(cls, emane_prefix: Path) -> None:
|
|
|
|
cls.mac_defaults["pcrcurveuri"] = str(
|
|
|
|
emane_prefix / "share/emane/xml/models/mac/ieee80211abg/ieee80211pcr.xml"
|
2019-04-08 17:49:37 +01:00
|
|
|
)
|
2019-10-23 17:51:52 +01:00
|
|
|
super().load(emane_prefix)
|