![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <string.h>#include <stdio.h>#include <stdarg.h>#include <foreign/fmi/fmi2Functions.h>#include "sumo2fmi_bridge.h"#include "libsumocpp2c.h"Go to the source code of this file.
Macros | |
| #define | UNUSED_PARAMETER(x) ((void)(x)) |
Definition in file fmi2Functions.c.
| #define UNUSED_PARAMETER | ( | x | ) | ((void)(x)) |
Definition at line 37 of file fmi2Functions.c.
| fmi2Status fmi2CancelStep | ( | fmi2Component | c | ) |
Definition at line 432 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2DeSerializeFMUstate | ( | fmi2Component | c, |
| const fmi2Byte | serializedState[], | ||
| size_t | size, | ||
| fmi2FMUstate * | FMUstate | ||
| ) |
Definition at line 372 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2DoStep | ( | fmi2Component | c, |
| fmi2Real | currentCommunicationPoint, | ||
| fmi2Real | communicationStepSize, | ||
| fmi2Boolean | noSetFMUStatePriorToCurrentPoint | ||
| ) |
Definition at line 419 of file fmi2Functions.c.
References fmi2Error, sumo2fmi_step(), and UNUSED_PARAMETER.
| fmi2Status fmi2EnterInitializationMode | ( | fmi2Component | c | ) |
Definition at line 167 of file fmi2Functions.c.
References fmi2OK, and UNUSED_PARAMETER.
| fmi2Status fmi2ExitInitializationMode | ( | fmi2Component | c | ) |
Definition at line 175 of file fmi2Functions.c.
References fmi2OK, libsumo_load(), ModelInstance::libsumoCallOptions, and sumo2fmi_logEvent().
| fmi2Status fmi2FreeFMUstate | ( | fmi2Component | c, |
| fmi2FMUstate * | FMUstate | ||
| ) |
Definition at line 348 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| void fmi2FreeInstance | ( | fmi2Component | c | ) |
Definition at line 126 of file fmi2Functions.c.
References ModelInstance::bufferArray, ModelInstance::bufferArrayLength, ModelInstance::freeMemory, ModelInstance::getterParameters, ModelInstance::instanceName, ModelInstance::libsumoCallOptions, and ModelInstance::resourceLocation.
| fmi2Status fmi2GetBoolean | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| fmi2Boolean | value[] | ||
| ) |
Definition at line 240 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2GetBooleanStatus | ( | fmi2Component | c, |
| const fmi2StatusKind | s, | ||
| fmi2Boolean * | value | ||
| ) |
Definition at line 467 of file fmi2Functions.c.
References fmi2Discard, and UNUSED_PARAMETER.
| fmi2Status fmi2GetDirectionalDerivative | ( | fmi2Component | c, |
| const fmi2ValueReference | vUnknown_ref[], | ||
| size_t | nUnknown, | ||
| const fmi2ValueReference | vKnown_ref[], | ||
| size_t | nKnown, | ||
| const fmi2Real | dvKnown[], | ||
| fmi2Real | dvUnknown[] | ||
| ) |
Definition at line 381 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2GetFMUstate | ( | fmi2Component | c, |
| fmi2FMUstate * | FMUstate | ||
| ) |
Definition at line 334 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2GetInteger | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| fmi2Integer | value[] | ||
| ) |
Definition at line 215 of file fmi2Functions.c.
References fmi2Error, fmi2OK, fmi2Warning, and sumo2fmi_getInteger().
| fmi2Status fmi2GetIntegerStatus | ( | fmi2Component | c, |
| const fmi2StatusKind | s, | ||
| fmi2Integer * | value | ||
| ) |
Definition at line 458 of file fmi2Functions.c.
References fmi2Discard, and UNUSED_PARAMETER.
| fmi2Status fmi2GetReal | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| fmi2Real | value[] | ||
| ) |
Definition at line 205 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2GetRealOutputDerivatives | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| const fmi2Integer | order[], | ||
| fmi2Real | value[] | ||
| ) |
Definition at line 406 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2GetRealStatus | ( | fmi2Component | c, |
| const fmi2StatusKind | s, | ||
| fmi2Real * | value | ||
| ) |
Definition at line 449 of file fmi2Functions.c.
References fmi2Discard, and UNUSED_PARAMETER.
| fmi2Status fmi2GetStatus | ( | fmi2Component | c, |
| const fmi2StatusKind | s, | ||
| fmi2Status * | value | ||
| ) |
Definition at line 440 of file fmi2Functions.c.
References fmi2Discard, and UNUSED_PARAMETER.
| fmi2Status fmi2GetString | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| fmi2String | value[] | ||
| ) |
Clear value array buffer before reuse
Definition at line 250 of file fmi2Functions.c.
References ModelInstance::allocateMemory, ModelInstance::bufferArray, ModelInstance::bufferArrayLength, fmi2Error, fmi2OK, fmi2Warning, ModelInstance::freeMemory, and sumo2fmi_getString().
| fmi2Status fmi2GetStringStatus | ( | fmi2Component | c, |
| const fmi2StatusKind | s, | ||
| fmi2String * | value | ||
| ) |
Definition at line 476 of file fmi2Functions.c.
References fmi2Discard, and UNUSED_PARAMETER.
| const char * fmi2GetTypesPlatform | ( | void | ) |
Definition at line 42 of file fmi2Functions.c.
References fmi2TypesPlatform.
| const char * fmi2GetVersion | ( | void | ) |
Definition at line 46 of file fmi2Functions.c.
References fmi2Version.
| fmi2Component fmi2Instantiate | ( | fmi2String | instanceName, |
| fmi2Type | fmuType, | ||
| fmi2String | fmuGUID, | ||
| fmi2String | fmuResourceLocation, | ||
| const fmi2CallbackFunctions * | functions, | ||
| fmi2Boolean | visible, | ||
| fmi2Boolean | loggingOn | ||
| ) |
Definition at line 86 of file fmi2Functions.c.
References ModelInstance::allocateMemory, fmi2CallbackFunctions::allocateMemory, ModelInstance::componentEnvironment, fmi2CallbackFunctions::componentEnvironment, ModelInstance::freeMemory, fmi2CallbackFunctions::freeMemory, ModelInstance::instanceName, ModelInstance::logErrors, ModelInstance::logEvents, ModelInstance::logger, fmi2CallbackFunctions::logger, ModelInstance::resourceLocation, and UNUSED_PARAMETER.
| fmi2Status fmi2Reset | ( | fmi2Component | c | ) |
Definition at line 196 of file fmi2Functions.c.
References fmi2OK, and UNUSED_PARAMETER.
| fmi2Status fmi2SerializedFMUstateSize | ( | fmi2Component | c, |
| fmi2FMUstate | FMUstate, | ||
| size_t * | size | ||
| ) |
Definition at line 355 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2SerializeFMUstate | ( | fmi2Component | c, |
| fmi2FMUstate | FMUstate, | ||
| fmi2Byte | state[], | ||
| size_t | size | ||
| ) |
Definition at line 363 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2SetBoolean | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| const fmi2Boolean | value[] | ||
| ) |
Definition at line 307 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2SetDebugLogging | ( | fmi2Component | c, |
| fmi2Boolean | loggingOn, | ||
| size_t | nCategories, | ||
| const fmi2String | categories[] | ||
| ) |
Definition at line 56 of file fmi2Functions.c.
References fmi2Error, fmi2OK, ModelInstance::logErrors, ModelInstance::logEvents, and sumo2fmi_logError().
| fmi2Status fmi2SetFMUstate | ( | fmi2Component | c, |
| fmi2FMUstate | FMUstate | ||
| ) |
Definition at line 341 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2SetInteger | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| const fmi2Integer | value[] | ||
| ) |
Definition at line 297 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2SetReal | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| const fmi2Real | value[] | ||
| ) |
Definition at line 288 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2SetRealInputDerivatives | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| const fmi2Integer | order[], | ||
| const fmi2Real | value[] | ||
| ) |
Definition at line 395 of file fmi2Functions.c.
References fmi2Error, and UNUSED_PARAMETER.
| fmi2Status fmi2SetString | ( | fmi2Component | c, |
| const fmi2ValueReference | vr[], | ||
| size_t | nvr, | ||
| const fmi2String | value[] | ||
| ) |
Definition at line 317 of file fmi2Functions.c.
References fmi2OK, fmi2Warning, and sumo2fmi_setString().
| fmi2Status fmi2SetupExperiment | ( | fmi2Component | c, |
| fmi2Boolean | toleranceDefined, | ||
| fmi2Real | tolerance, | ||
| fmi2Real | startTime, | ||
| fmi2Boolean | stopTimeDefined, | ||
| fmi2Real | stopTime | ||
| ) |
Definition at line 146 of file fmi2Functions.c.
References fmi2OK, ModelInstance::startTime, ModelInstance::stopTime, sumo2fmi_set_startValues(), and UNUSED_PARAMETER.
| fmi2Status fmi2Terminate | ( | fmi2Component | c | ) |
Definition at line 187 of file fmi2Functions.c.
References fmi2OK, libsumo_close(), and UNUSED_PARAMETER.