making usage of double quotes standard for emane files
This commit is contained in:
parent
850cc599c8
commit
2281051edf
8 changed files with 278 additions and 277 deletions
|
@ -26,52 +26,52 @@ class EmaneUniversalModel(EmaneModel):
|
|||
|
||||
# universal PHY parameters
|
||||
_confmatrix_base = [
|
||||
("bandwidth", ConfigDataTypes.UINT64.value, '1M',
|
||||
'', 'rf bandwidth (hz)'),
|
||||
("frequency", ConfigDataTypes.UINT64.value, '2.347G',
|
||||
'', 'frequency (Hz)'),
|
||||
("frequencyofinterest", ConfigDataTypes.UINT64.value, '2.347G',
|
||||
'', 'frequency of interest (Hz)'),
|
||||
("subid", ConfigDataTypes.UINT16.value, '1',
|
||||
'', 'subid'),
|
||||
("systemnoisefigure", ConfigDataTypes.FLOAT.value, '4.0',
|
||||
'', 'system noise figure (dB)'),
|
||||
("txpower", ConfigDataTypes.FLOAT.value, '0.0',
|
||||
'', 'transmit power (dBm)'),
|
||||
("bandwidth", ConfigDataTypes.UINT64.value, "1M",
|
||||
"", "rf bandwidth (hz)"),
|
||||
("frequency", ConfigDataTypes.UINT64.value, "2.347G",
|
||||
"", "frequency (Hz)"),
|
||||
("frequencyofinterest", ConfigDataTypes.UINT64.value, "2.347G",
|
||||
"", "frequency of interest (Hz)"),
|
||||
("subid", ConfigDataTypes.UINT16.value, "1",
|
||||
"", "subid"),
|
||||
("systemnoisefigure", ConfigDataTypes.FLOAT.value, "4.0",
|
||||
"", "system noise figure (dB)"),
|
||||
("txpower", ConfigDataTypes.FLOAT.value, "0.0",
|
||||
"", "transmit power (dBm)"),
|
||||
]
|
||||
_confmatrix_081 = [
|
||||
("antennagain", ConfigDataTypes.FLOAT.value, '0.0',
|
||||
'', 'antenna gain (dBi)'),
|
||||
("antennaazimuth", ConfigDataTypes.FLOAT.value, '0.0',
|
||||
'', 'antenna azimuth (deg)'),
|
||||
("antennaelevation", ConfigDataTypes.FLOAT.value, '0.0',
|
||||
'', 'antenna elevation (deg)'),
|
||||
("antennaprofileid", ConfigDataTypes.STRING.value, '1',
|
||||
'', 'antenna profile ID'),
|
||||
("antennaprofilemanifesturi", ConfigDataTypes.STRING.value, '',
|
||||
'', 'antenna profile manifest URI'),
|
||||
("antennaprofileenable", ConfigDataTypes.BOOL.value, '0',
|
||||
'On,Off', 'antenna profile mode'),
|
||||
("defaultconnectivitymode", ConfigDataTypes.BOOL.value, '1',
|
||||
'On,Off', 'default connectivity'),
|
||||
("frequencyofinterestfilterenable", ConfigDataTypes.BOOL.value, '1',
|
||||
'On,Off', 'frequency of interest filter enable'),
|
||||
("noiseprocessingmode", ConfigDataTypes.BOOL.value, '0',
|
||||
'On,Off', 'enable noise processing'),
|
||||
("pathlossmode", ConfigDataTypes.STRING.value, '2ray',
|
||||
'pathloss,2ray,freespace', 'path loss mode'),
|
||||
("antennagain", ConfigDataTypes.FLOAT.value, "0.0",
|
||||
"", "antenna gain (dBi)"),
|
||||
("antennaazimuth", ConfigDataTypes.FLOAT.value, "0.0",
|
||||
"", "antenna azimuth (deg)"),
|
||||
("antennaelevation", ConfigDataTypes.FLOAT.value, "0.0",
|
||||
"", "antenna elevation (deg)"),
|
||||
("antennaprofileid", ConfigDataTypes.STRING.value, "1",
|
||||
"", "antenna profile ID"),
|
||||
("antennaprofilemanifesturi", ConfigDataTypes.STRING.value, "",
|
||||
"", "antenna profile manifest URI"),
|
||||
("antennaprofileenable", ConfigDataTypes.BOOL.value, "0",
|
||||
"On,Off", "antenna profile mode"),
|
||||
("defaultconnectivitymode", ConfigDataTypes.BOOL.value, "1",
|
||||
"On,Off", "default connectivity"),
|
||||
("frequencyofinterestfilterenable", ConfigDataTypes.BOOL.value, "1",
|
||||
"On,Off", "frequency of interest filter enable"),
|
||||
("noiseprocessingmode", ConfigDataTypes.BOOL.value, "0",
|
||||
"On,Off", "enable noise processing"),
|
||||
("pathlossmode", ConfigDataTypes.STRING.value, "2ray",
|
||||
"pathloss,2ray,freespace", "path loss mode"),
|
||||
]
|
||||
_confmatrix_091 = [
|
||||
("fixedantennagain", ConfigDataTypes.FLOAT.value, '0.0',
|
||||
'', 'antenna gain (dBi)'),
|
||||
("fixedantennagainenable", ConfigDataTypes.BOOL.value, '1',
|
||||
'On,Off', 'enable fixed antenna gain'),
|
||||
("noisemode", ConfigDataTypes.STRING.value, 'none',
|
||||
'none,all,outofband', 'noise processing mode'),
|
||||
("noisebinsize", ConfigDataTypes.UINT64.value, '20',
|
||||
'', 'noise bin size in microseconds'),
|
||||
("propagationmodel", ConfigDataTypes.STRING.value, '2ray',
|
||||
'precomputed,2ray,freespace', 'path loss mode'),
|
||||
("fixedantennagain", ConfigDataTypes.FLOAT.value, "0.0",
|
||||
"", "antenna gain (dBi)"),
|
||||
("fixedantennagainenable", ConfigDataTypes.BOOL.value, "1",
|
||||
"On,Off", "enable fixed antenna gain"),
|
||||
("noisemode", ConfigDataTypes.STRING.value, "none",
|
||||
"none,all,outofband", "noise processing mode"),
|
||||
("noisebinsize", ConfigDataTypes.UINT64.value, "20",
|
||||
"", "noise bin size in microseconds"),
|
||||
("propagationmodel", ConfigDataTypes.STRING.value, "2ray",
|
||||
"precomputed,2ray,freespace", "path loss mode"),
|
||||
]
|
||||
if emane.VERSION >= emane.EMANE091:
|
||||
config_matrix = _confmatrix_base + _confmatrix_091
|
||||
|
@ -80,12 +80,12 @@ class EmaneUniversalModel(EmaneModel):
|
|||
|
||||
# old parameters
|
||||
_confmatrix_ver074 = [
|
||||
("antennaazimuthbeamwidth", ConfigDataTypes.FLOAT.value, '360.0',
|
||||
'', 'azimith beam width (deg)'),
|
||||
("antennaelevationbeamwidth", ConfigDataTypes.FLOAT.value, '180.0',
|
||||
'', 'elevation beam width (deg)'),
|
||||
("antennatype", ConfigDataTypes.STRING.value, 'omnidirectional',
|
||||
'omnidirectional,unidirectional', 'antenna type'),
|
||||
("antennaazimuthbeamwidth", ConfigDataTypes.FLOAT.value, "360.0",
|
||||
"", "azimith beam width (deg)"),
|
||||
("antennaelevationbeamwidth", ConfigDataTypes.FLOAT.value, "180.0",
|
||||
"", "elevation beam width (deg)"),
|
||||
("antennatype", ConfigDataTypes.STRING.value, "omnidirectional",
|
||||
"omnidirectional,unidirectional", "antenna type"),
|
||||
]
|
||||
|
||||
# parameters that require unit conversion for 0.7.4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue