NMPB08 Shared Libraries
|
Go to the source code of this file.
Defines | |
#define | TRACE_DEBUG GetOptions(OPTION_TRACE_DEBUG) |
Functions | |
char * | my_strdup (const char *s) |
template<class T > | |
T | MIN (T const &x, T const &y) |
template<class T > | |
T | MAX (T const &x, T const &y) |
std::string | getID (const char *s) |
void * | NMPB08_CreateRailwayTraffic (double nb_hours) |
create a context for converting railway traffic into an equivalent source model | |
int | NMPB08_ClearRailwayTraffic (void *id) |
empties the traffic associated with the source model | |
int | NMPB08_AddRailwayTraffic (void *id, const char *unit_or_train, double number, double speed) |
adds a traffic component to the source model | |
RailwayEmission const * | NMPB08_GetRailwayEmission (void *id, ScreenBodyInteraction *screenBodyInteraction) |
returns the equivalent source model for the current traffic state | |
int | NMPB08_DeleteRailwayTraffic (void *id) |
destroys the internal data structure used for converting railway traffic data into an equivalent source model. | |
unsigned int | NMPB08_SetRailwayOptions (void *id, unsigned int option, bool on_off) |
enables or disables selected options | |
unsigned int | NMPB08_GetRailwayOptions (void *id, unsigned int option) |
return the currently selected options | |
int | NMPB08_SetRailwayEmissionAngles (void *id, double sin_h, double sin_v) |
sets de emission angles for the equivalent source model | |
unsigned int | NMPB08_SetRailCorrection (void *id, NMPB_RailCorrectionType corr) |
set the rail correction | |
NMPB_RailCorrectionType | NMPB08_GetRailwayOptions (void *id) |
Variables | |
const double | PI = 3.1415926 |
#define TRACE_DEBUG GetOptions(OPTION_TRACE_DEBUG) |
Definition at line 26 of file RailwayEmission.cpp.
std::string getID | ( | const char * | s | ) |
Definition at line 64 of file RailwayDatabase.cpp.
T MAX | ( | T const & | x, |
T const & | y | ||
) | [inline] |
Definition at line 52 of file RailwayEmission.cpp.
T MIN | ( | T const & | x, |
T const & | y | ||
) | [inline] |
Definition at line 47 of file RailwayEmission.cpp.
char* my_strdup | ( | const char * | s | ) |
Definition at line 28 of file RailwayEmission.cpp.
int NMPB08_AddRailwayTraffic | ( | void * | id, |
const char * | unit_or_train, | ||
double | number, | ||
double | speed | ||
) |
adds a traffic component to the source model
id | handle to the internal structure used by the traffic model |
unit_or_train | identification of the type of unit or train |
number | number of units or trains passing during the reference period |
speed | speed in km/h |
Definition at line 681 of file RailwayEmission.cpp.
int NMPB08_ClearRailwayTraffic | ( | void * | id | ) |
empties the traffic associated with the source model
id | handle to the internal structure used by the traffic model |
Definition at line 670 of file RailwayEmission.cpp.
void* NMPB08_CreateRailwayTraffic | ( | double | nb_hours | ) |
create a context for converting railway traffic into an equivalent source model
nb_hours | duration of the period of reference in hours |
Definition at line 659 of file RailwayEmission.cpp.
int NMPB08_DeleteRailwayTraffic | ( | void * | id | ) |
destroys the internal data structure used for converting railway traffic data into an equivalent source model.
id | handle to an internal data structure as returned by /ref NMPB08_CreateRailwayTraffic. |
Definition at line 703 of file RailwayEmission.cpp.
RailwayEmission const* NMPB08_GetRailwayEmission | ( | void * | id, |
ScreenBodyInteraction * | screenBodyInteraction = 0 |
||
) |
returns the equivalent source model for the current traffic state
id | handle to the internal structure used by the traffic model |
screenBodyInteraction | configuration of interaction between the train body and a nearby screen One interaction corresponds to a double reflection, once on the barrier, once on the car body. The equivalent reflection coefficient of the car bodies is encoded in the database and will modify the equivalent sound power of the image sources created through reflection. Absorption on the inner side of the barrier is also taken into account (see NF S 31-133, section 7.4.6). |
Definition at line 692 of file RailwayEmission.cpp.
unsigned int NMPB08_GetRailwayOptions | ( | void * | id, |
unsigned int | option | ||
) |
return the currently selected options
id | handle to the internal structure used by the traffic model |
option | options to be reported |
Definition at line 726 of file RailwayEmission.cpp.
NMPB_RailCorrectionType NMPB08_GetRailwayOptions | ( | void * | id | ) |
Definition at line 759 of file RailwayEmission.cpp.
unsigned int NMPB08_SetRailCorrection | ( | void * | id, |
NMPB_RailCorrectionType | corr | ||
) |
set the rail correction
id | handle to the internal structure used by the traffic model |
corr | new correction for the rail / mounting condition |
Definition at line 748 of file RailwayEmission.cpp.
int NMPB08_SetRailwayEmissionAngles | ( | void * | id, |
double | sin_h, | ||
double | sin_v | ||
) |
sets de emission angles for the equivalent source model
id | handle to the internal structure used by the traffic model |
sin_h | sinus of the angle of the propagation direction with the vertical plane perpendicular to the track |
sin_v | sinus of the angle of the propagation direction with the horizontal plane containing the track |
Definition at line 737 of file RailwayEmission.cpp.
unsigned int NMPB08_SetRailwayOptions | ( | void * | id, |
unsigned int | option, | ||
bool | on_off | ||
) |
enables or disables selected options
id | handle to the internal structure used by the traffic model |
option | options to be set or cleared |
on_off | if true, options will be set, otherwise options will be cleared |
Definition at line 715 of file RailwayEmission.cpp.
const double PI = 3.1415926 |
Definition at line 476 of file RailwayEmission.cpp.