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
|
|
|
"""
|
2019-04-08 17:49:37 +01:00
|
|
|
import os
|
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
|
2017-04-25 16:45:34 +01:00
|
|
|
name = "emane_ieee80211abg"
|
2018-03-29 21:32:06 +01:00
|
|
|
|
|
|
|
# mac configuration
|
2018-03-30 20:08:33 +01:00
|
|
|
mac_library = "ieee80211abgmaclayer"
|
2019-04-08 17:49:37 +01:00
|
|
|
mac_xml = "ieee80211abgmaclayer.xml"
|
|
|
|
|
|
|
|
@classmethod
|
2020-01-15 00:27:08 +00:00
|
|
|
def load(cls, emane_prefix: str) -> None:
|
2019-04-08 17:49:37 +01:00
|
|
|
cls.mac_defaults["pcrcurveuri"] = os.path.join(
|
2019-09-10 23:10:24 +01:00
|
|
|
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)
|