Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
fmi2Functions.c File Reference
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <foreign/fmi/fmi2Functions.h>
#include "sumo2fmi_bridge.h"
#include "libsumocpp2c.h"
Include dependency graph for fmi2Functions.c:

Go to the source code of this file.

Macros

#define UNREFERENCED_PARAMETER(P)   (P)
 

Functions

fmi2Status fmi2CancelStep (fmi2Component c)
 
fmi2Status fmi2DeSerializeFMUstate (fmi2Component c, const fmi2Byte serializedState[], size_t size, fmi2FMUstate *FMUstate)
 
fmi2Status fmi2DoStep (fmi2Component c, fmi2Real currentCommunicationPoint, fmi2Real communicationStepSize, fmi2Boolean noSetFMUStatePriorToCurrentPoint)
 
fmi2Status fmi2EnterInitializationMode (fmi2Component c)
 
fmi2Status fmi2ExitInitializationMode (fmi2Component c)
 
fmi2Status fmi2FreeFMUstate (fmi2Component c, fmi2FMUstate *FMUstate)
 
void fmi2FreeInstance (fmi2Component c)
 
fmi2Status fmi2GetBoolean (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2Boolean value[])
 
fmi2Status fmi2GetBooleanStatus (fmi2Component c, const fmi2StatusKind s, fmi2Boolean *value)
 
fmi2Status fmi2GetDirectionalDerivative (fmi2Component c, const fmi2ValueReference vUnknown_ref[], size_t nUnknown, const fmi2ValueReference vKnown_ref[], size_t nKnown, const fmi2Real dvKnown[], fmi2Real dvUnknown[])
 
fmi2Status fmi2GetFMUstate (fmi2Component c, fmi2FMUstate *FMUstate)
 
fmi2Status fmi2GetInteger (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2Integer value[])
 
fmi2Status fmi2GetIntegerStatus (fmi2Component c, const fmi2StatusKind s, fmi2Integer *value)
 
fmi2Status fmi2GetReal (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2Real value[])
 
fmi2Status fmi2GetRealOutputDerivatives (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Integer order[], fmi2Real value[])
 
fmi2Status fmi2GetRealStatus (fmi2Component c, const fmi2StatusKind s, fmi2Real *value)
 
fmi2Status fmi2GetStatus (fmi2Component c, const fmi2StatusKind s, fmi2Status *value)
 
fmi2Status fmi2GetString (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2String value[])
 
fmi2Status fmi2GetStringStatus (fmi2Component c, const fmi2StatusKind s, fmi2String *value)
 
const char * fmi2GetTypesPlatform (void)
 
const char * fmi2GetVersion (void)
 
fmi2Component fmi2Instantiate (fmi2String instanceName, fmi2Type fmuType, fmi2String fmuGUID, fmi2String fmuResourceLocation, const fmi2CallbackFunctions *functions, fmi2Boolean visible, fmi2Boolean loggingOn)
 
fmi2Status fmi2Reset (fmi2Component c)
 
fmi2Status fmi2SerializedFMUstateSize (fmi2Component c, fmi2FMUstate FMUstate, size_t *size)
 
fmi2Status fmi2SerializeFMUstate (fmi2Component c, fmi2FMUstate FMUstate, fmi2Byte state[], size_t size)
 
fmi2Status fmi2SetBoolean (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Boolean value[])
 
fmi2Status fmi2SetDebugLogging (fmi2Component c, fmi2Boolean loggingOn, size_t nCategories, const fmi2String categories[])
 
fmi2Status fmi2SetFMUstate (fmi2Component c, fmi2FMUstate FMUstate)
 
fmi2Status fmi2SetInteger (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Integer value[])
 
fmi2Status fmi2SetReal (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Real value[])
 
fmi2Status fmi2SetRealInputDerivatives (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Integer order[], const fmi2Real value[])
 
fmi2Status fmi2SetString (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2String value[])
 
fmi2Status fmi2SetupExperiment (fmi2Component c, fmi2Boolean toleranceDefined, fmi2Real tolerance, fmi2Real startTime, fmi2Boolean stopTimeDefined, fmi2Real stopTime)
 
fmi2Status fmi2Terminate (fmi2Component c)
 

Detailed Description

Author
Robert Hilbrich
Matthias Schwamborn
Date
Tue, 03 Mar 2020

Definition in file fmi2Functions.c.

Macro Definition Documentation

◆ UNREFERENCED_PARAMETER

#define UNREFERENCED_PARAMETER (   P)    (P)

Definition at line 37 of file fmi2Functions.c.

Function Documentation

◆ fmi2CancelStep()

fmi2Status fmi2CancelStep ( fmi2Component  c)

Definition at line 439 of file fmi2Functions.c.

References fmi2Error, and UNREFERENCED_PARAMETER.

◆ fmi2DeSerializeFMUstate()

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.

◆ fmi2DoStep()

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.

◆ fmi2EnterInitializationMode()

fmi2Status fmi2EnterInitializationMode ( fmi2Component  c)

Definition at line 169 of file fmi2Functions.c.

References fmi2OK, and UNREFERENCED_PARAMETER.

◆ fmi2ExitInitializationMode()

fmi2Status fmi2ExitInitializationMode ( fmi2Component  c)

◆ fmi2FreeFMUstate()

fmi2Status fmi2FreeFMUstate ( fmi2Component  c,
fmi2FMUstate FMUstate 
)

Definition at line 354 of file fmi2Functions.c.

References fmi2Error, and UNREFERENCED_PARAMETER.

◆ fmi2FreeInstance()

◆ fmi2GetBoolean()

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.

◆ fmi2GetBooleanStatus()

fmi2Status fmi2GetBooleanStatus ( fmi2Component  c,
const fmi2StatusKind  s,
fmi2Boolean value 
)

Definition at line 474 of file fmi2Functions.c.

References fmi2Discard, and UNREFERENCED_PARAMETER.

◆ fmi2GetDirectionalDerivative()

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.

◆ fmi2GetFMUstate()

fmi2Status fmi2GetFMUstate ( fmi2Component  c,
fmi2FMUstate FMUstate 
)

Definition at line 340 of file fmi2Functions.c.

References fmi2Error, and UNREFERENCED_PARAMETER.

◆ fmi2GetInteger()

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().

◆ fmi2GetIntegerStatus()

fmi2Status fmi2GetIntegerStatus ( fmi2Component  c,
const fmi2StatusKind  s,
fmi2Integer value 
)

Definition at line 465 of file fmi2Functions.c.

References fmi2Discard, and UNREFERENCED_PARAMETER.

◆ fmi2GetReal()

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.

◆ fmi2GetRealOutputDerivatives()

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.

◆ fmi2GetRealStatus()

fmi2Status fmi2GetRealStatus ( fmi2Component  c,
const fmi2StatusKind  s,
fmi2Real value 
)

Definition at line 456 of file fmi2Functions.c.

References fmi2Discard, and UNREFERENCED_PARAMETER.

◆ fmi2GetStatus()

fmi2Status fmi2GetStatus ( fmi2Component  c,
const fmi2StatusKind  s,
fmi2Status value 
)

Definition at line 447 of file fmi2Functions.c.

References fmi2Discard, and UNREFERENCED_PARAMETER.

◆ fmi2GetString()

fmi2Status fmi2GetString ( fmi2Component  c,
const fmi2ValueReference  vr[],
size_t  nvr,
fmi2String  value[] 
)

◆ fmi2GetStringStatus()

fmi2Status fmi2GetStringStatus ( fmi2Component  c,
const fmi2StatusKind  s,
fmi2String value 
)

Definition at line 483 of file fmi2Functions.c.

References fmi2Discard, and UNREFERENCED_PARAMETER.

◆ fmi2GetTypesPlatform()

const char * fmi2GetTypesPlatform ( void  )

Definition at line 42 of file fmi2Functions.c.

References fmi2TypesPlatform.

◆ fmi2GetVersion()

const char * fmi2GetVersion ( void  )

Definition at line 46 of file fmi2Functions.c.

References fmi2Version.

◆ fmi2Instantiate()

◆ fmi2Reset()

fmi2Status fmi2Reset ( fmi2Component  c)

Definition at line 198 of file fmi2Functions.c.

References fmi2OK, and UNREFERENCED_PARAMETER.

◆ fmi2SerializedFMUstateSize()

fmi2Status fmi2SerializedFMUstateSize ( fmi2Component  c,
fmi2FMUstate  FMUstate,
size_t *  size 
)

Definition at line 361 of file fmi2Functions.c.

References fmi2Error, and UNREFERENCED_PARAMETER.

◆ fmi2SerializeFMUstate()

fmi2Status fmi2SerializeFMUstate ( fmi2Component  c,
fmi2FMUstate  FMUstate,
fmi2Byte  state[],
size_t  size 
)

Definition at line 369 of file fmi2Functions.c.

References fmi2Error, and UNREFERENCED_PARAMETER.

◆ fmi2SetBoolean()

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.

◆ fmi2SetDebugLogging()

fmi2Status fmi2SetDebugLogging ( fmi2Component  c,
fmi2Boolean  loggingOn,
size_t  nCategories,
const fmi2String  categories[] 
)

◆ fmi2SetFMUstate()

fmi2Status fmi2SetFMUstate ( fmi2Component  c,
fmi2FMUstate  FMUstate 
)

Definition at line 347 of file fmi2Functions.c.

References fmi2Error, and UNREFERENCED_PARAMETER.

◆ fmi2SetInteger()

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.

◆ fmi2SetReal()

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.

◆ fmi2SetRealInputDerivatives()

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.

◆ fmi2SetString()

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().

◆ fmi2SetupExperiment()

fmi2Status fmi2SetupExperiment ( fmi2Component  c,
fmi2Boolean  toleranceDefined,
fmi2Real  tolerance,
fmi2Real  startTime,
fmi2Boolean  stopTimeDefined,
fmi2Real  stopTime 
)

◆ fmi2Terminate()

fmi2Status fmi2Terminate ( fmi2Component  c)

Definition at line 189 of file fmi2Functions.c.

References fmi2OK, libsumo_close(), and UNREFERENCED_PARAMETER.