![]() |
NetSim Source Code Help
|

Go to the source code of this file.
Data Structures | |
| struct | stru_pathloss_var |
| struct | stru_oscillator |
| struct | stru_complex |
| struct | stru_complexOscillator |
| struct | stru_state_looParam |
| struct | stru_elevation |
| struct | stru_marko_loo_fading_var |
| struct | stru_fading_var |
| struct | stru_shadowloss_var |
| struct | stru_temperature_zone |
| struct | stru_acoutics_propagation_var |
| struct | stru_propagation_model |
| struct | stru_recvpower |
| struct | stru_tx_info |
| struct | stru_propagation_info |
Macros | |
| #define | _NETSIM_PROPAGATION_MODEL_H_ |
| #define | NEGATIVE_DBM -1000.0 |
| #define | ZERO_MW 1.0e-100 |
| #define | MW_TO_DBM(mw) (mw <= ZERO_MW?NEGATIVE_DBM:10.0*log10(mw)) |
| #define | DBM_TO_MW(dbm) (dbm == NEGATIVE_DBM? 0.0: pow(10.0,dbm/10.0)) |
| #define | HZ (1.0) |
| #define | KHZ (1000.0*HZ) |
| #define | MHZ (1000.0*KHZ) |
| #define | GHZ (1000.0*MHZ) |
| #define | MAC_LAYER_PROTOCOL int |
| #define | __CALLBACK__ |
| #define | PROPAGATION_PROPAGATION_MEDIUM_DEFAULT _strdup("AIR") |
| #define | PROPAGATION_CHANNEL_CHARACTERISTICS_DEFAULT _strdup("FADING_AND_SHADOWING") |
| #define | PROPAGATION_PATHLOSS_MODEL_DEFAULT _strdup("Friis_Free_Space_propagation") |
| #define | PROPAGATION_FADING_MODEL_DEFAULT _strdup("NONE") |
| #define | PROPAGATION_SHADOWING_MODEL_DEFAULT _strdup("NONE") |
| #define | PROPAGATION_STANDARD_DEVIATION_DEFAULT 5.0 |
| #define | PROPAGATION_PATHLOSS_EXPONENT_DEFAULT 2.0 |
| #define | PROPAGATION_FADING_FIGURE_DEFAULT 1.0 |
| #define | PROPAGATION_SHAPE_PARAMETER_DEFAULT 2.0 |
| #define | PROPAGATION_OMEGA_DEFAULT 2.0 |
| #define | PROPAGATION_THORP_SPREAD_COEFF_DEFAULT 2.0 |
| #define | PROPAGATION_TEMPERATUREZONE_COUNT_DEFAULT 0 |
| #define | PROPAGATION_Z_DEFAULT 0.0 |
| #define | PROPAGATION_TEMPERATURE_DEFAULT 25.0 |
| #define | PROPAGATION_SALINITY_DEFAULT 35 |
| #define | PROPAGATION_WINDSPEED_DEFAULT 0 |
| #define | PROPAGATION_SHIPPING_DEFAULT 0.5 |
| #define | propagation_calculate_received_power(h, t, ti, r, ri, time) __pragma(message(__LOC__"propagation_calculate_received_power function is deprcated. Use _propagation_calculate_received_power")) _propagation_calculate_received_power(get_propagation_info(h,t,ti,r,ri),time) |
| #define | get_tx_info(h, t, ti, r, ri) __pragma(message(__LOC__"get_tx_info function is deprcated. Use _get_tx_info")) _get_tx_info(get_propagation_info(h,t,ti,r,ri)) |
| #define | propagation_get_received_power_dbm(h, t, ti, r, ri, time) __pragma(message(__LOC__"propagation_get_received_power_dbm function is deprcated. Use _propagation_get_received_power_dbm")) _propagation_get_received_power_dbm(get_propagation_info(h,t,ti,r,ri),time) |
| #define | propagation_calculate_fadingloss(h, t, ti, r, ri) __pragma(message(__LOC__"propagation_calculate_fadingloss function is deprcated. Use _propagation_calculate_fadingloss")) _propagation_calculate_fadingloss(get_propagation_info(h,t,ti,r,ri)) |
| #define __CALLBACK__ |
Definition at line 36 of file PropagationModel.h.
| #define _NETSIM_PROPAGATION_MODEL_H_ |
Definition at line 17 of file PropagationModel.h.
| #define DBM_TO_MW | ( | dbm | ) | (dbm == NEGATIVE_DBM? 0.0: pow(10.0,dbm/10.0)) |
Definition at line 25 of file PropagationModel.h.
| #define get_tx_info | ( | h, | |
| t, | |||
| ti, | |||
| r, | |||
| ri | |||
| ) | __pragma(message(__LOC__"get_tx_info function is deprcated. Use _get_tx_info")) _get_tx_info(get_propagation_info(h,t,ti,r,ri)) |
Definition at line 380 of file PropagationModel.h.
| #define GHZ (1000.0*MHZ) |
Definition at line 30 of file PropagationModel.h.
| #define HZ (1.0) |
Definition at line 27 of file PropagationModel.h.
| #define KHZ (1000.0*HZ) |
Definition at line 28 of file PropagationModel.h.
| #define MAC_LAYER_PROTOCOL int |
Definition at line 33 of file PropagationModel.h.
| #define MHZ (1000.0*KHZ) |
Definition at line 29 of file PropagationModel.h.
| #define MW_TO_DBM | ( | mw | ) | (mw <= ZERO_MW?NEGATIVE_DBM:10.0*log10(mw)) |
Definition at line 24 of file PropagationModel.h.
| #define NEGATIVE_DBM -1000.0 |
Definition at line 22 of file PropagationModel.h.
| #define propagation_calculate_fadingloss | ( | h, | |
| t, | |||
| ti, | |||
| r, | |||
| ri | |||
| ) | __pragma(message(__LOC__"propagation_calculate_fadingloss function is deprcated. Use _propagation_calculate_fadingloss")) _propagation_calculate_fadingloss(get_propagation_info(h,t,ti,r,ri)) |
Definition at line 388 of file PropagationModel.h.
| #define propagation_calculate_received_power | ( | h, | |
| t, | |||
| ti, | |||
| r, | |||
| ri, | |||
| time | |||
| ) | __pragma(message(__LOC__"propagation_calculate_received_power function is deprcated. Use _propagation_calculate_received_power")) _propagation_calculate_received_power(get_propagation_info(h,t,ti,r,ri),time) |
Definition at line 328 of file PropagationModel.h.
| #define PROPAGATION_CHANNEL_CHARACTERISTICS_DEFAULT _strdup("FADING_AND_SHADOWING") |
Definition at line 40 of file PropagationModel.h.
| #define PROPAGATION_FADING_FIGURE_DEFAULT 1.0 |
Definition at line 46 of file PropagationModel.h.
| #define PROPAGATION_FADING_MODEL_DEFAULT _strdup("NONE") |
Definition at line 42 of file PropagationModel.h.
| #define propagation_get_received_power_dbm | ( | h, | |
| t, | |||
| ti, | |||
| r, | |||
| ri, | |||
| time | |||
| ) | __pragma(message(__LOC__"propagation_get_received_power_dbm function is deprcated. Use _propagation_get_received_power_dbm")) _propagation_get_received_power_dbm(get_propagation_info(h,t,ti,r,ri),time) |
Definition at line 384 of file PropagationModel.h.
| #define PROPAGATION_OMEGA_DEFAULT 2.0 |
Definition at line 48 of file PropagationModel.h.
| #define PROPAGATION_PATHLOSS_EXPONENT_DEFAULT 2.0 |
Definition at line 45 of file PropagationModel.h.
| #define PROPAGATION_PATHLOSS_MODEL_DEFAULT _strdup("Friis_Free_Space_propagation") |
Definition at line 41 of file PropagationModel.h.
| #define PROPAGATION_PROPAGATION_MEDIUM_DEFAULT _strdup("AIR") |
Definition at line 39 of file PropagationModel.h.
| #define PROPAGATION_SALINITY_DEFAULT 35 |
Definition at line 53 of file PropagationModel.h.
| #define PROPAGATION_SHADOWING_MODEL_DEFAULT _strdup("NONE") |
Definition at line 43 of file PropagationModel.h.
| #define PROPAGATION_SHAPE_PARAMETER_DEFAULT 2.0 |
Definition at line 47 of file PropagationModel.h.
| #define PROPAGATION_SHIPPING_DEFAULT 0.5 |
Definition at line 55 of file PropagationModel.h.
| #define PROPAGATION_STANDARD_DEVIATION_DEFAULT 5.0 |
Definition at line 44 of file PropagationModel.h.
| #define PROPAGATION_TEMPERATURE_DEFAULT 25.0 |
Definition at line 52 of file PropagationModel.h.
| #define PROPAGATION_TEMPERATUREZONE_COUNT_DEFAULT 0 |
Definition at line 50 of file PropagationModel.h.
| #define PROPAGATION_THORP_SPREAD_COEFF_DEFAULT 2.0 |
Definition at line 49 of file PropagationModel.h.
| #define PROPAGATION_WINDSPEED_DEFAULT 0 |
Definition at line 54 of file PropagationModel.h.
| #define PROPAGATION_Z_DEFAULT 0.0 |
Definition at line 51 of file PropagationModel.h.
| #define ZERO_MW 1.0e-100 |
Definition at line 23 of file PropagationModel.h.
| typedef struct stru_complex _COMPLEX |
| typedef struct stru_complex * _ptrCOMPLEX |
| typedef struct stru_acoutics_propagation_var ACOUTICSPROPVAR |
Definition at line 306 of file PropagationModel.h.
| typedef struct stru_complexOscillator COMPLEXOSCILLATOR |
| typedef struct stru_elevation ELEVATION |
| typedef struct stru_fading_var FADING_VAR |
| typedef bool(* fnCheckInterface) (NETSIM_ID nTxId, NETSIM_ID nTxInterface, NETSIM_ID nRxId, NETSIM_ID nRxInterface) |
Definition at line 61 of file PropagationModel.h.
| typedef void(* fnGetTxInfo) (NETSIM_ID nTxId, NETSIM_ID nTxInterface, NETSIM_ID nRxId, NETSIM_ID nRxInterface, PTX_INFO Txinfo) |
Definition at line 301 of file PropagationModel.h.
| typedef void(* fnUserPathlossModel) (PPROPAGATION_INFO pinfo, PRECV_POWER p) |
Definition at line 65 of file PropagationModel.h.
| typedef struct stru_state_looParam LOOPARAMS |
| typedef struct stru_marko_loo_fading_var MARKOVLOO_VAR |
| typedef struct stru_oscillator OSCILLATOR |
| typedef struct stru_pathloss_var PATHLOSS_VAR |
| typedef struct stru_fading_var* PFADING_VAR |
| typedef struct stru_pathloss_var* PPATHLOSS_VAR |
| typedef struct stru_propagation_model* PPROPAGATION |
| typedef struct stru_propagation_info * PPROPAGATION_INFO |
Definition at line 58 of file PropagationModel.h.
| typedef struct stru_recvpower * PRECV_POWER |
Definition at line 59 of file PropagationModel.h.
| typedef struct stru_propagation_model PROPAGATION |
| typedef void* PROPAGATION_HANDLE |
Definition at line 299 of file PropagationModel.h.
| typedef struct stru_propagation_info PROPAGATION_INFO |
Definition at line 58 of file PropagationModel.h.
| typedef struct stru_shadowloss_var* PSHADOW_VAR |
| typedef struct stru_acoutics_propagation_var * ptrACOUTICSPROPVAR |
| typedef struct stru_complexOscillator * ptrCOMPLEXOSCILLATOR |
| typedef struct stru_elevation * ptrELEVATION |
| typedef struct stru_state_looParam * ptrLOOPARAMS |
| typedef struct stru_marko_loo_fading_var * ptrMARLOVLOO_VAR |
| typedef struct stru_oscillator * ptrOSCILLATOR |
| typedef struct stru_temperature_zone * ptrTEMPERATUREZONE |
| typedef struct stru_tx_info* PTX_INFO |
| typedef struct stru_recvpower RECV_POWER |
Definition at line 59 of file PropagationModel.h.
| typedef struct stru_shadowloss_var SHADOW_VAR |
| typedef struct stru_temperature_zone TEMPERATUREZONE |
| typedef struct stru_tx_info TX_INFO |
| enum FADING_MODEL |
| Enumerator | |
|---|---|
| FADINGMODEL_NONE | |
| FADINGMODEL_RICIAN | |
| FADINGMODEL_RAYLEIGH | |
| FADINGMODEL_NAKAGAMI | |
| FADINGMODEL_MARKOV_LOO | |
Definition at line 94 of file PropagationModel.h.
| enum PATHLOSS_MODEL |
Definition at line 76 of file PropagationModel.h.
| enum PROP_MEDIUM |
| Enumerator | |
|---|---|
| PROPMEDIUM_AIR | |
| PROPMEDIUM_ACOUSTICS | |
Definition at line 110 of file PropagationModel.h.
| enum PROPAGATION_MODEL |
| Enumerator | |
|---|---|
| PROPAGATIONMODEL_NO_PATHLOSS | |
| PROPAGATIONMODEL_PATHLOSS_ONLY | |
| PROPAGATIONMODEL_PATHLOSS_AND_SHADOWING | |
| PROPAGATIONMODEL_PATHLOSS_AND_FADING_AND_SHADOWING | |
Definition at line 68 of file PropagationModel.h.
| enum SHADOW_MODEL |
| Enumerator | |
|---|---|
| SHADOWMODEL_NONE | |
| SHADOWMODEL_CONSTANT | |
| SHADOWMODEL_LOGNORMAL | |
Definition at line 103 of file PropagationModel.h.
| PTX_INFO _get_tx_info | ( | PPROPAGATION_INFO | info | ) |
Used to get the transmitter info. will be used by user code to change the transmitter information at run time.
| double _propagation_calculate_fadingloss | ( | PPROPAGATION_INFO | info | ) |
Used to calculate the fading loss. Fading model and parameter must be set in PROPAGATION structure within info.

| double _propagation_calculate_logdistancepathloss | ( | double | pathLossExponent, |
| double | dTx_Rx_Distance, | ||
| double | dCentralFrequency, | ||
| double | d0 | ||
| ) |

| double _propagation_calculate_lognormalshadow | ( | double | standardDeviation, |
| double * | Gset, | ||
| bool * | iSet | ||
| ) |

| void _propagation_calculate_received_power | ( | PPROPAGATION_INFO | info, |
| double | time | ||
| ) |

| double _propagation_get_received_power_dbm | ( | PPROPAGATION_INFO | info, |
| double | time | ||
| ) |
Used to the received power in dBm over time.

| double calculateLooFadingDB | ( | PPROPAGATION_INFO | info | ) |
| PPROPAGATION_INFO get_propagation_info | ( | PROPAGATION_HANDLE | handle, |
| NETSIM_ID | txid, | ||
| NETSIM_ID | txif, | ||
| NETSIM_ID | rxid, | ||
| NETSIM_ID | rxif | ||
| ) |
| void initLoo | ( | ptrMARLOVLOO_VAR | markovLooVar | ) |
| double propagation_acoutics_calculate_noise | ( | double | frequency_kHz, |
| double | shipping, | ||
| double | windSpeed | ||
| ) |

| double propagation_acoutics_calculate_propagationDelay | ( | NETSIM_ID | tx, |
| NETSIM_ID | rx, | ||
| PPROPAGATION | propagation | ||
| ) |

| double propagation_air_calculate_propagationDelay | ( | NETSIM_ID | tx, |
| NETSIM_ID | rx, | ||
| PPROPAGATION | propagation | ||
| ) |

| void propagation_calculate_cost231hata | ( | PPROPAGATION_INFO | pinfo, |
| PRECV_POWER | p, | ||
| double | cm | ||
| ) |
| void propagation_calculate_deterministicshadow | ( | PPROPAGATION_INFO | pinfo, |
| PRECV_POWER | p | ||
| ) |
| void propagation_calculate_hata_Suburban | ( | PPROPAGATION_INFO | pinfo, |
| PRECV_POWER | p | ||
| ) |
| void propagation_calculate_hata_urban | ( | PPROPAGATION_INFO | pinfo, |
| PRECV_POWER | p | ||
| ) |
| void propagation_calculate_logdistancepathloss | ( | PPROPAGATION_INFO | pinfo, |
| PRECV_POWER | p | ||
| ) |
| void propagation_calculate_lognormalshadow | ( | PPROPAGATION_INFO | pinfo, |
| PRECV_POWER | p | ||
| ) |
| void propagation_calculate_Matrix_Model | ( | PPROPAGATION_INFO | pinfo | ) |
| void propagation_calculate_Range_Based | ( | PPROPAGATION_INFO | pinfo, |
| PRECV_POWER | p | ||
| ) |
| void propagation_calculate_thorpPathLoss | ( | PPROPAGATION_INFO | pinfo, |
| PRECV_POWER | p | ||
| ) |
| void propagation_calculate_Two_Ray | ( | PPROPAGATION_INFO | pinfo, |
| PRECV_POWER | p | ||
| ) |
| PPROPAGATION_INFO propagation_create_propagation_info | ( | NETSIM_ID | txId, |
| NETSIM_ID | txIf, | ||
| NETSIM_ID | rxId, | ||
| NETSIM_ID | rxIf, | ||
| char * | uniqueId, | ||
| PTX_INFO | txInfo, | ||
| PPROPAGATION | propagation | ||
| ) |

| void propagation_finish | ( | PROPAGATION_HANDLE | handle | ) |
| PROPAGATION_HANDLE propagation_init | ( | MAC_LAYER_PROTOCOL | protocol, |
| __CALLBACK__ check_protocol_configure | check, | ||
| __CALLBACK__ fnGetTxInfo | fnpGetTxInfo, | ||
| __CALLBACK__ fnCheckInterface | checkInterference | ||
| ) |
