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 | UNREFERENCED_PARAMETER(P) (P) |
Definition in file fmi2Functions.c.
#define UNREFERENCED_PARAMETER | ( | P | ) | (P) |
Definition at line 37 of file fmi2Functions.c.
fmi2Status fmi2CancelStep | ( | fmi2Component | c | ) |
Definition at line 439 of file fmi2Functions.c.
References fmi2Error, and UNREFERENCED_PARAMETER.
fmi2Status fmi2DeSerializeFMUstate | ( | fmi2Component | c, |
const fmi2Byte | serializedState[], | ||
size_t | size, | ||
fmi2FMUstate * | FMUstate | ||
) |
Definition at line 378 of file fmi2Functions.c.
References fmi2Error, and UNREFERENCED_PARAMETER.
fmi2Status fmi2DoStep | ( | fmi2Component | c, |
fmi2Real | currentCommunicationPoint, | ||
fmi2Real | communicationStepSize, | ||
fmi2Boolean | noSetFMUStatePriorToCurrentPoint | ||
) |
Definition at line 426 of file fmi2Functions.c.
References fmi2Error, sumo2fmi_step(), and UNREFERENCED_PARAMETER.
fmi2Status fmi2EnterInitializationMode | ( | fmi2Component | c | ) |
Definition at line 169 of file fmi2Functions.c.
References fmi2OK, and UNREFERENCED_PARAMETER.
fmi2Status fmi2ExitInitializationMode | ( | fmi2Component | c | ) |
Definition at line 177 of file fmi2Functions.c.
References fmi2OK, libsumo_load(), ModelInstance::libsumoCallOptions, and sumo2fmi_logEvent().
fmi2Status fmi2FreeFMUstate | ( | fmi2Component | c, |
fmi2FMUstate * | FMUstate | ||
) |
Definition at line 354 of file fmi2Functions.c.
References fmi2Error, and UNREFERENCED_PARAMETER.
void fmi2FreeInstance | ( | fmi2Component | c | ) |
Definition at line 127 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 243 of file fmi2Functions.c.
References fmi2Error, and UNREFERENCED_PARAMETER.
fmi2Status fmi2GetBooleanStatus | ( | fmi2Component | c, |
const fmi2StatusKind | s, | ||
fmi2Boolean * | value | ||
) |
Definition at line 474 of file fmi2Functions.c.
References fmi2Discard, and UNREFERENCED_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 387 of file fmi2Functions.c.
References fmi2Error, and UNREFERENCED_PARAMETER.
fmi2Status fmi2GetFMUstate | ( | fmi2Component | c, |
fmi2FMUstate * | FMUstate | ||
) |
Definition at line 340 of file fmi2Functions.c.
References fmi2Error, and UNREFERENCED_PARAMETER.
fmi2Status fmi2GetInteger | ( | fmi2Component | c, |
const fmi2ValueReference | vr[], | ||
size_t | nvr, | ||
fmi2Integer | value[] | ||
) |
Definition at line 217 of file fmi2Functions.c.
References fmi2Error, fmi2OK, fmi2Warning, and sumo2fmi_getInteger().
fmi2Status fmi2GetIntegerStatus | ( | fmi2Component | c, |
const fmi2StatusKind | s, | ||
fmi2Integer * | value | ||
) |
Definition at line 465 of file fmi2Functions.c.
References fmi2Discard, and UNREFERENCED_PARAMETER.
fmi2Status fmi2GetReal | ( | fmi2Component | c, |
const fmi2ValueReference | vr[], | ||
size_t | nvr, | ||
fmi2Real | value[] | ||
) |
Definition at line 207 of file fmi2Functions.c.
References fmi2Error, and UNREFERENCED_PARAMETER.
fmi2Status fmi2GetRealOutputDerivatives | ( | fmi2Component | c, |
const fmi2ValueReference | vr[], | ||
size_t | nvr, | ||
const fmi2Integer | order[], | ||
fmi2Real | value[] | ||
) |
Definition at line 412 of file fmi2Functions.c.
References fmi2Error, and UNREFERENCED_PARAMETER.
fmi2Status fmi2GetRealStatus | ( | fmi2Component | c, |
const fmi2StatusKind | s, | ||
fmi2Real * | value | ||
) |
Definition at line 456 of file fmi2Functions.c.
References fmi2Discard, and UNREFERENCED_PARAMETER.
fmi2Status fmi2GetStatus | ( | fmi2Component | c, |
const fmi2StatusKind | s, | ||
fmi2Status * | value | ||
) |
Definition at line 447 of file fmi2Functions.c.
References fmi2Discard, and UNREFERENCED_PARAMETER.
fmi2Status fmi2GetString | ( | fmi2Component | c, |
const fmi2ValueReference | vr[], | ||
size_t | nvr, | ||
fmi2String | value[] | ||
) |
Clear value array buffer before reuse
Definition at line 253 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 483 of file fmi2Functions.c.
References fmi2Discard, and UNREFERENCED_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 87 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 UNREFERENCED_PARAMETER.
fmi2Status fmi2Reset | ( | fmi2Component | c | ) |
Definition at line 198 of file fmi2Functions.c.
References fmi2OK, and UNREFERENCED_PARAMETER.
fmi2Status fmi2SerializedFMUstateSize | ( | fmi2Component | c, |
fmi2FMUstate | FMUstate, | ||
size_t * | size | ||
) |
Definition at line 361 of file fmi2Functions.c.
References fmi2Error, and UNREFERENCED_PARAMETER.
fmi2Status fmi2SerializeFMUstate | ( | fmi2Component | c, |
fmi2FMUstate | FMUstate, | ||
fmi2Byte | state[], | ||
size_t | size | ||
) |
Definition at line 369 of file fmi2Functions.c.
References fmi2Error, and UNREFERENCED_PARAMETER.
fmi2Status fmi2SetBoolean | ( | fmi2Component | c, |
const fmi2ValueReference | vr[], | ||
size_t | nvr, | ||
const fmi2Boolean | value[] | ||
) |
Definition at line 312 of file fmi2Functions.c.
References fmi2Error, and UNREFERENCED_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 347 of file fmi2Functions.c.
References fmi2Error, and UNREFERENCED_PARAMETER.
fmi2Status fmi2SetInteger | ( | fmi2Component | c, |
const fmi2ValueReference | vr[], | ||
size_t | nvr, | ||
const fmi2Integer | value[] | ||
) |
Definition at line 302 of file fmi2Functions.c.
References fmi2Error, and UNREFERENCED_PARAMETER.
fmi2Status fmi2SetReal | ( | fmi2Component | c, |
const fmi2ValueReference | vr[], | ||
size_t | nvr, | ||
const fmi2Real | value[] | ||
) |
Definition at line 293 of file fmi2Functions.c.
References fmi2Error, and UNREFERENCED_PARAMETER.
fmi2Status fmi2SetRealInputDerivatives | ( | fmi2Component | c, |
const fmi2ValueReference | vr[], | ||
size_t | nvr, | ||
const fmi2Integer | order[], | ||
const fmi2Real | value[] | ||
) |
Definition at line 401 of file fmi2Functions.c.
References fmi2Error, and UNREFERENCED_PARAMETER.
fmi2Status fmi2SetString | ( | fmi2Component | c, |
const fmi2ValueReference | vr[], | ||
size_t | nvr, | ||
const fmi2String | value[] | ||
) |
Definition at line 322 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 148 of file fmi2Functions.c.
References fmi2OK, ModelInstance::startTime, ModelInstance::stopTime, sumo2fmi_set_startValues(), and UNREFERENCED_PARAMETER.
fmi2Status fmi2Terminate | ( | fmi2Component | c | ) |
Definition at line 189 of file fmi2Functions.c.
References fmi2OK, libsumo_close(), and UNREFERENCED_PARAMETER.