added support for emane manifest parsing into core compatible information, refactoring of emane code to align with its usage
This commit is contained in:
parent
8963ef51e3
commit
fd32e1cf78
7 changed files with 271 additions and 259 deletions
|
@ -8,20 +8,23 @@ from core.enumerations import ConfigDataTypes
|
|||
|
||||
class EmaneBypassModel(emanemodel.EmaneModel):
|
||||
name = "emane_bypass"
|
||||
library = "bypassmaclayer"
|
||||
|
||||
# values to ignore, when writing xml files
|
||||
config_ignore = {"none"}
|
||||
_config_mac = [
|
||||
|
||||
# mac definitions
|
||||
mac_library = "bypassmaclayer"
|
||||
config_mac = [
|
||||
("none", ConfigDataTypes.BOOL.value, "0", "True,False",
|
||||
"There are no parameters for the bypass model."),
|
||||
]
|
||||
_config_phy = []
|
||||
config_matrix = _config_mac + _config_phy
|
||||
config_groups = "Bypass Parameters:1-1"
|
||||
|
||||
def create_phy_doc(self, emane_manager, values):
|
||||
phy_document = emane_manager.xmldoc("phy")
|
||||
phy_element = phy_document.getElementsByTagName("phy").pop()
|
||||
phy_element.setAttribute("name", "%s PHY" % self.name)
|
||||
phy_element.setAttribute("library", "bypassphylayer")
|
||||
return phy_document
|
||||
# phy definitions
|
||||
phy_library = "bypassphylayer"
|
||||
config_phy = []
|
||||
|
||||
# defines overall config
|
||||
config_matrix = config_mac + config_phy
|
||||
|
||||
# gui display tabs
|
||||
config_groups = "Bypass Parameters:1-1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue