2017-04-25 16:45:34 +01:00
|
|
|
"""
|
2013-08-29 15:21:13 +01:00
|
|
|
rfpipe.py: EMANE RF-PIPE 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 EmaneRfPipeModel(emanemodel.EmaneModel):
|
2013-08-29 15:21:13 +01:00
|
|
|
# model name
|
2017-04-25 16:45:34 +01:00
|
|
|
name = "emane_rfpipe"
|
2013-08-29 15:21:13 +01:00
|
|
|
|
2018-03-29 21:32:06 +01:00
|
|
|
# mac configuration
|
2018-03-30 20:08:33 +01:00
|
|
|
mac_library = "rfpipemaclayer"
|
2019-04-08 17:49:37 +01:00
|
|
|
mac_xml = "rfpipemaclayer.xml"
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def load(cls, emane_prefix):
|
|
|
|
cls.mac_defaults["pcrcurveuri"] = os.path.join(
|
2019-09-10 23:10:24 +01:00
|
|
|
emane_prefix, "share/emane/xml/models/mac/rfpipe/rfpipepcr.xml"
|
2019-04-08 17:49:37 +01:00
|
|
|
)
|
2019-10-23 17:51:52 +01:00
|
|
|
super().load(emane_prefix)
|