2017-04-25 08:45:34 -07:00
|
|
|
"""
|
2013-08-29 14:21:13 +00:00
|
|
|
rfpipe.py: EMANE RF-PIPE model for CORE
|
2017-04-25 08:45:34 -07:00
|
|
|
"""
|
2021-03-19 16:54:24 -07:00
|
|
|
from pathlib import Path
|
2017-04-25 08:45:34 -07:00
|
|
|
|
2018-03-29 14:38:32 -07:00
|
|
|
from core.emane import emanemodel
|
2013-08-29 14:21:13 +00:00
|
|
|
|
|
|
|
|
2018-03-29 14:38:32 -07:00
|
|
|
class EmaneRfPipeModel(emanemodel.EmaneModel):
|
2013-08-29 14:21:13 +00:00
|
|
|
# model name
|
2020-06-12 09:52:01 -07:00
|
|
|
name: str = "emane_rfpipe"
|
2013-08-29 14:21:13 +00:00
|
|
|
|
2018-03-29 13:32:06 -07:00
|
|
|
# mac configuration
|
2020-06-12 09:52:01 -07:00
|
|
|
mac_library: str = "rfpipemaclayer"
|
|
|
|
mac_xml: str = "rfpipemaclayer.xml"
|
2019-04-08 09:49:37 -07:00
|
|
|
|
|
|
|
@classmethod
|
2021-03-19 16:54:24 -07:00
|
|
|
def load(cls, emane_prefix: Path) -> None:
|
|
|
|
cls.mac_defaults["pcrcurveuri"] = str(
|
|
|
|
emane_prefix / "share/emane/xml/models/mac/rfpipe/rfpipepcr.xml"
|
2019-04-08 09:49:37 -07:00
|
|
|
)
|
2019-10-23 09:51:52 -07:00
|
|
|
super().load(emane_prefix)
|