![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <foreign/fmi/fmi2Functions.h>
#include <string.h>
#include "libsumocpp2c.h"
#include "sumo2fmi_bridge.h"
Go to the source code of this file.
Macros | |
#define | UNREFERENCED_PARAMETER(P) (P) |
Functions | |
fmi2Status | sumo2fmi_getInteger (ModelInstance *comp, const fmi2ValueReference vr, int *value) |
fmi2Status | sumo2fmi_getString (ModelInstance *comp, const fmi2ValueReference vr, const char *value) |
void | sumo2fmi_logError (ModelInstance *comp, const char *message,...) |
void | sumo2fmi_logMessage (ModelInstance *comp, int status, const char *category, const char *message, va_list args) |
void | sumo2fmi_set_startValues (ModelInstance *comp) |
fmi2Status | sumo2fmi_setString (ModelInstance *comp, fmi2ValueReference vr, const char *value) |
fmi2Status | sumo2fmi_step (ModelInstance *comp, double tNext) |
Definition in file sumo2fmi_bridge.c.
#define UNREFERENCED_PARAMETER | ( | P | ) | (P) |
Definition at line 33 of file sumo2fmi_bridge.c.
fmi2Status sumo2fmi_getInteger | ( | ModelInstance * | comp, |
const fmi2ValueReference | vr, | ||
int * | value | ||
) |
Definition at line 76 of file sumo2fmi_bridge.c.
References fmi2Error, fmi2OK, libsumo_vehicle_getIDCount(), and UNREFERENCED_PARAMETER.
Referenced by fmi2GetInteger().
fmi2Status sumo2fmi_getString | ( | ModelInstance * | comp, |
const fmi2ValueReference | vr, | ||
const char * | value | ||
) |
Definition at line 90 of file sumo2fmi_bridge.c.
References fmi2Error, fmi2OK, and ModelInstance::libsumoCallOptions.
Referenced by fmi2GetString().
void sumo2fmi_logError | ( | ModelInstance * | comp, |
const char * | message, | ||
... | |||
) |
Definition at line 45 of file sumo2fmi_bridge.c.
References fmi2Error, ModelInstance::logErrors, and sumo2fmi_logMessage().
Referenced by fmi2SetDebugLogging().
void sumo2fmi_logMessage | ( | ModelInstance * | comp, |
int | status, | ||
const char * | category, | ||
const char * | message, | ||
va_list | args | ||
) |
Definition at line 55 of file sumo2fmi_bridge.c.
References ModelInstance::allocateMemory, ModelInstance::componentEnvironment, ModelInstance::freeMemory, ModelInstance::instanceName, and ModelInstance::logger.
Referenced by sumo2fmi_logError().
void sumo2fmi_set_startValues | ( | ModelInstance * | comp | ) |
Definition at line 36 of file sumo2fmi_bridge.c.
References ModelInstance::allocateMemory, ModelInstance::freeMemory, and ModelInstance::libsumoCallOptions.
Referenced by fmi2Instantiate().
fmi2Status sumo2fmi_setString | ( | ModelInstance * | comp, |
fmi2ValueReference | vr, | ||
const char * | value | ||
) |
Definition at line 101 of file sumo2fmi_bridge.c.
References ModelInstance::allocateMemory, fmi2Error, fmi2OK, ModelInstance::freeMemory, and ModelInstance::libsumoCallOptions.
Referenced by fmi2SetString().
fmi2Status sumo2fmi_step | ( | ModelInstance * | comp, |
double | tNext | ||
) |
Definition at line 114 of file sumo2fmi_bridge.c.
References fmi2OK, libsumo_step(), and UNREFERENCED_PARAMETER.
Referenced by fmi2DoStep().