25#define _CRT_SECURE_NO_WARNINGS
26#pragma warning(disable:4820 4514 5045 4710)
35#define UNREFERENCED_PARAMETER(P) (P)
37#define BUFFER_SIZE 256
43 if (!getenv(
"SUMO_HOME")) {
56 snprintf(defaultCallOptions,
BUFFER_SIZE * 2,
"-c %s/tools/game/grid6.sumocfg", sumoHomePath);
68 va_start(args, message);
80 va_start(args, message);
92 len = vsnprintf(buf, len, message, args1);
97 vsnprintf(buf, len + 1, message, args);
void libsumo_vehicle_moveToXY(const char *paramString)
void libsumo_vehicle_getLaneID(ModelInstance *comp, const char **result)
void libsumo_vehicle_getPosition(ModelInstance *comp, const char **result)
void libsumo_vehicle_getParameterWithKey(ModelInstance *comp, const char **result)
void libsumo_step(double time)
int libsumo_vehicle_getIDCount(void)
void * componentEnvironment
char * getterParameters
Parameters stored for the next (libsumo) getter call. Workaround for FMIv2 not allowing input values ...
allocateMemoryType allocateMemory
const char * instanceName
freeMemoryType freeMemory
char * libsumoCallOptions
fmi2Status sumo2fmi_getString(ModelInstance *comp, const fmi2ValueReference vr, fmi2String *value)
void sumo2fmi_set_startValues(ModelInstance *comp)
fmi2Status sumo2fmi_step(ModelInstance *comp, double tNext)
fmi2Status sumo2fmi_getInteger(ModelInstance *comp, const fmi2ValueReference vr, int *value)
void sumo2fmi_logError(ModelInstance *comp, const char *message,...)
#define UNREFERENCED_PARAMETER(P)
fmi2Status sumo2fmi_setString(ModelInstance *comp, fmi2ValueReference vr, fmi2String value)
void sumo2fmi_logMessage(ModelInstance *comp, int status, const char *category, const char *message, va_list args)
void sumo2fmi_logEvent(ModelInstance *comp, const char *message,...)