Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
fmi2FunctionTypes.h File Reference
#include "fmi2TypesPlatform.h"
#include <stddef.h>
Include dependency graph for fmi2FunctionTypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  fmi2CallbackFunctions
 
struct  fmi2EventInfo
 

Typedefs

typedef void *(* fmi2CallbackAllocateMemory) (size_t nobj, size_t size)
 
typedef void(* fmi2CallbackFreeMemory) (void *obj)
 
typedef void(* fmi2CallbackLogger) (fmi2ComponentEnvironment componentEnvironment, fmi2String instanceName, fmi2Status status, fmi2String category, fmi2String message,...)
 
typedef fmi2Status fmi2CancelStepTYPE(fmi2Component c)
 
typedef fmi2Status fmi2CompletedIntegratorStepTYPE(fmi2Component c, fmi2Boolean noSetFMUStatePriorToCurrentPoint, fmi2Boolean *enterEventMode, fmi2Boolean *terminateSimulation)
 
typedef fmi2Status fmi2DeSerializeFMUstateTYPE(fmi2Component c, const fmi2Byte serializedState[], size_t size, fmi2FMUstate *FMUstate)
 
typedef fmi2Status fmi2DoStepTYPE(fmi2Component c, fmi2Real currentCommunicationPoint, fmi2Real communicationStepSize, fmi2Boolean noSetFMUStatePriorToCurrentPoint)
 
typedef fmi2Status fmi2EnterContinuousTimeModeTYPE(fmi2Component c)
 
typedef fmi2Status fmi2EnterEventModeTYPE(fmi2Component c)
 
typedef fmi2Status fmi2EnterInitializationModeTYPE(fmi2Component c)
 
typedef fmi2Status fmi2ExitInitializationModeTYPE(fmi2Component c)
 
typedef fmi2Status fmi2FreeFMUstateTYPE(fmi2Component c, fmi2FMUstate *FMUstate)
 
typedef void fmi2FreeInstanceTYPE(fmi2Component c)
 
typedef fmi2Status fmi2GetBooleanStatusTYPE(fmi2Component c, const fmi2StatusKind s, fmi2Boolean *value)
 
typedef fmi2Status fmi2GetBooleanTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2Boolean value[])
 
typedef fmi2Status fmi2GetContinuousStatesTYPE(fmi2Component c, fmi2Real x[], size_t nx)
 
typedef fmi2Status fmi2GetDerivativesTYPE(fmi2Component c, fmi2Real derivatives[], size_t nx)
 
typedef fmi2Status fmi2GetDirectionalDerivativeTYPE(fmi2Component c, const fmi2ValueReference vUnknown_ref[], size_t nUnknown, const fmi2ValueReference vKnown_ref[], size_t nKnown, const fmi2Real dvKnown[], fmi2Real dvUnknown[])
 
typedef fmi2Status fmi2GetEventIndicatorsTYPE(fmi2Component c, fmi2Real eventIndicators[], size_t ni)
 
typedef fmi2Status fmi2GetFMUstateTYPE(fmi2Component c, fmi2FMUstate *FMUstate)
 
typedef fmi2Status fmi2GetIntegerStatusTYPE(fmi2Component c, const fmi2StatusKind s, fmi2Integer *value)
 
typedef fmi2Status fmi2GetIntegerTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2Integer value[])
 
typedef fmi2Status fmi2GetNominalsOfContinuousStatesTYPE(fmi2Component c, fmi2Real x_nominal[], size_t nx)
 
typedef fmi2Status fmi2GetRealOutputDerivativesTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Integer order[], fmi2Real value[])
 
typedef fmi2Status fmi2GetRealStatusTYPE(fmi2Component c, const fmi2StatusKind s, fmi2Real *value)
 
typedef fmi2Status fmi2GetRealTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2Real value[])
 
typedef fmi2Status fmi2GetStatusTYPE(fmi2Component c, const fmi2StatusKind s, fmi2Status *value)
 
typedef fmi2Status fmi2GetStringStatusTYPE(fmi2Component c, const fmi2StatusKind s, fmi2String *value)
 
typedef fmi2Status fmi2GetStringTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2String value[])
 
typedef const char * fmi2GetTypesPlatformTYPE(void)
 
typedef const char * fmi2GetVersionTYPE(void)
 
typedef fmi2Component fmi2InstantiateTYPE(fmi2String instanceName, fmi2Type fmuType, fmi2String fmuGUID, fmi2String fmuResourceLocation, const fmi2CallbackFunctions *functions, fmi2Boolean visible, fmi2Boolean loggingOn)
 
typedef fmi2Status fmi2NewDiscreteStatesTYPE(fmi2Component c, fmi2EventInfo *fmi2eventInfo)
 
typedef fmi2Status fmi2ResetTYPE(fmi2Component c)
 
typedef fmi2Status fmi2SerializedFMUstateSizeTYPE(fmi2Component c, fmi2FMUstate FMUstate, size_t *size)
 
typedef fmi2Status fmi2SerializeFMUstateTYPE(fmi2Component c, fmi2FMUstate FMUstate, fmi2Byte[], size_t size)
 
typedef fmi2Status fmi2SetBooleanTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Boolean value[])
 
typedef fmi2Status fmi2SetContinuousStatesTYPE(fmi2Component c, const fmi2Real x[], size_t nx)
 
typedef fmi2Status fmi2SetDebugLoggingTYPE(fmi2Component c, fmi2Boolean loggingOn, size_t nCategories, const fmi2String categories[])
 
typedef fmi2Status fmi2SetFMUstateTYPE(fmi2Component c, fmi2FMUstate FMUstate)
 
typedef fmi2Status fmi2SetIntegerTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Integer value[])
 
typedef fmi2Status fmi2SetRealInputDerivativesTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Integer order[], const fmi2Real value[])
 
typedef fmi2Status fmi2SetRealTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Real value[])
 
typedef fmi2Status fmi2SetStringTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2String value[])
 
typedef fmi2Status fmi2SetTimeTYPE(fmi2Component c, fmi2Real time)
 
typedef fmi2Status fmi2SetupExperimentTYPE(fmi2Component c, fmi2Boolean toleranceDefined, fmi2Real tolerance, fmi2Real startTime, fmi2Boolean stopTimeDefined, fmi2Real stopTime)
 
typedef void(* fmi2StepFinished) (fmi2ComponentEnvironment componentEnvironment, fmi2Status status)
 
typedef fmi2Status fmi2TerminateTYPE(fmi2Component c)
 

Enumerations

enum  fmi2Status {
  fmi2OK , fmi2Warning , fmi2Discard , fmi2Error ,
  fmi2Fatal , fmi2Pending
}
 
enum  fmi2StatusKind { fmi2DoStepStatus , fmi2PendingStatus , fmi2LastSuccessfulTime , fmi2Terminated }
 
enum  fmi2Type { fmi2ModelExchange , fmi2CoSimulation }
 

Typedef Documentation

◆ fmi2CallbackAllocateMemory

typedef void *(* fmi2CallbackAllocateMemory) (size_t nobj, size_t size)

Definition at line 125 of file fmi2FunctionTypes.h.

◆ fmi2CallbackFreeMemory

typedef void(* fmi2CallbackFreeMemory) (void *obj)

Definition at line 126 of file fmi2FunctionTypes.h.

◆ fmi2CallbackLogger

typedef void(* fmi2CallbackLogger) (fmi2ComponentEnvironment componentEnvironment, fmi2String instanceName, fmi2Status status, fmi2String category, fmi2String message,...)

Definition at line 119 of file fmi2FunctionTypes.h.

◆ fmi2CancelStepTYPE

typedef fmi2Status fmi2CancelStepTYPE(fmi2Component c)

Definition at line 257 of file fmi2FunctionTypes.h.

◆ fmi2CompletedIntegratorStepTYPE

typedef fmi2Status fmi2CompletedIntegratorStepTYPE(fmi2Component c, fmi2Boolean noSetFMUStatePriorToCurrentPoint, fmi2Boolean *enterEventMode, fmi2Boolean *terminateSimulation)

Definition at line 224 of file fmi2FunctionTypes.h.

◆ fmi2DeSerializeFMUstateTYPE

typedef fmi2Status fmi2DeSerializeFMUstateTYPE(fmi2Component c, const fmi2Byte serializedState[], size_t size, fmi2FMUstate *FMUstate)

Definition at line 207 of file fmi2FunctionTypes.h.

◆ fmi2DoStepTYPE

typedef fmi2Status fmi2DoStepTYPE(fmi2Component c, fmi2Real currentCommunicationPoint, fmi2Real communicationStepSize, fmi2Boolean noSetFMUStatePriorToCurrentPoint)

Definition at line 253 of file fmi2FunctionTypes.h.

◆ fmi2EnterContinuousTimeModeTYPE

typedef fmi2Status fmi2EnterContinuousTimeModeTYPE(fmi2Component c)

Definition at line 223 of file fmi2FunctionTypes.h.

◆ fmi2EnterEventModeTYPE

typedef fmi2Status fmi2EnterEventModeTYPE(fmi2Component c)

Definition at line 221 of file fmi2FunctionTypes.h.

◆ fmi2EnterInitializationModeTYPE

typedef fmi2Status fmi2EnterInitializationModeTYPE(fmi2Component c)

Definition at line 185 of file fmi2FunctionTypes.h.

◆ fmi2ExitInitializationModeTYPE

typedef fmi2Status fmi2ExitInitializationModeTYPE(fmi2Component c)

Definition at line 186 of file fmi2FunctionTypes.h.

◆ fmi2FreeFMUstateTYPE

typedef fmi2Status fmi2FreeFMUstateTYPE(fmi2Component c, fmi2FMUstate *FMUstate)

Definition at line 204 of file fmi2FunctionTypes.h.

◆ fmi2FreeInstanceTYPE

typedef void fmi2FreeInstanceTYPE(fmi2Component c)

Definition at line 176 of file fmi2FunctionTypes.h.

◆ fmi2GetBooleanStatusTYPE

typedef fmi2Status fmi2GetBooleanStatusTYPE(fmi2Component c, const fmi2StatusKind s, fmi2Boolean *value)

Definition at line 263 of file fmi2FunctionTypes.h.

◆ fmi2GetBooleanTYPE

typedef fmi2Status fmi2GetBooleanTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2Boolean value[])

Definition at line 193 of file fmi2FunctionTypes.h.

◆ fmi2GetContinuousStatesTYPE

typedef fmi2Status fmi2GetContinuousStatesTYPE(fmi2Component c, fmi2Real x[], size_t nx)

Definition at line 236 of file fmi2FunctionTypes.h.

◆ fmi2GetDerivativesTYPE

typedef fmi2Status fmi2GetDerivativesTYPE(fmi2Component c, fmi2Real derivatives[], size_t nx)

Definition at line 234 of file fmi2FunctionTypes.h.

◆ fmi2GetDirectionalDerivativeTYPE

typedef fmi2Status fmi2GetDirectionalDerivativeTYPE(fmi2Component c, const fmi2ValueReference vUnknown_ref[], size_t nUnknown, const fmi2ValueReference vKnown_ref[], size_t nKnown, const fmi2Real dvKnown[], fmi2Real dvUnknown[])

Definition at line 210 of file fmi2FunctionTypes.h.

◆ fmi2GetEventIndicatorsTYPE

typedef fmi2Status fmi2GetEventIndicatorsTYPE(fmi2Component c, fmi2Real eventIndicators[], size_t ni)

Definition at line 235 of file fmi2FunctionTypes.h.

◆ fmi2GetFMUstateTYPE

typedef fmi2Status fmi2GetFMUstateTYPE(fmi2Component c, fmi2FMUstate *FMUstate)

Definition at line 202 of file fmi2FunctionTypes.h.

◆ fmi2GetIntegerStatusTYPE

typedef fmi2Status fmi2GetIntegerStatusTYPE(fmi2Component c, const fmi2StatusKind s, fmi2Integer *value)

Definition at line 262 of file fmi2FunctionTypes.h.

◆ fmi2GetIntegerTYPE

typedef fmi2Status fmi2GetIntegerTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2Integer value[])

Definition at line 192 of file fmi2FunctionTypes.h.

◆ fmi2GetNominalsOfContinuousStatesTYPE

typedef fmi2Status fmi2GetNominalsOfContinuousStatesTYPE(fmi2Component c, fmi2Real x_nominal[], size_t nx)

Definition at line 237 of file fmi2FunctionTypes.h.

◆ fmi2GetRealOutputDerivativesTYPE

typedef fmi2Status fmi2GetRealOutputDerivativesTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Integer order[], fmi2Real value[])

Definition at line 249 of file fmi2FunctionTypes.h.

◆ fmi2GetRealStatusTYPE

typedef fmi2Status fmi2GetRealStatusTYPE(fmi2Component c, const fmi2StatusKind s, fmi2Real *value)

Definition at line 261 of file fmi2FunctionTypes.h.

◆ fmi2GetRealTYPE

typedef fmi2Status fmi2GetRealTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2Real value[])

Definition at line 191 of file fmi2FunctionTypes.h.

◆ fmi2GetStatusTYPE

typedef fmi2Status fmi2GetStatusTYPE(fmi2Component c, const fmi2StatusKind s, fmi2Status *value)

Definition at line 260 of file fmi2FunctionTypes.h.

◆ fmi2GetStringStatusTYPE

typedef fmi2Status fmi2GetStringStatusTYPE(fmi2Component c, const fmi2StatusKind s, fmi2String *value)

Definition at line 264 of file fmi2FunctionTypes.h.

◆ fmi2GetStringTYPE

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

Definition at line 194 of file fmi2FunctionTypes.h.

◆ fmi2GetTypesPlatformTYPE

typedef const char * fmi2GetTypesPlatformTYPE(void)

Definition at line 161 of file fmi2FunctionTypes.h.

◆ fmi2GetVersionTYPE

typedef const char * fmi2GetVersionTYPE(void)

Definition at line 162 of file fmi2FunctionTypes.h.

◆ fmi2InstantiateTYPE

typedef fmi2Component fmi2InstantiateTYPE(fmi2String instanceName, fmi2Type fmuType, fmi2String fmuGUID, fmi2String fmuResourceLocation, const fmi2CallbackFunctions *functions, fmi2Boolean visible, fmi2Boolean loggingOn)

Definition at line 169 of file fmi2FunctionTypes.h.

◆ fmi2NewDiscreteStatesTYPE

typedef fmi2Status fmi2NewDiscreteStatesTYPE(fmi2Component c, fmi2EventInfo *fmi2eventInfo)

Definition at line 222 of file fmi2FunctionTypes.h.

◆ fmi2ResetTYPE

typedef fmi2Status fmi2ResetTYPE(fmi2Component c)

Definition at line 188 of file fmi2FunctionTypes.h.

◆ fmi2SerializedFMUstateSizeTYPE

typedef fmi2Status fmi2SerializedFMUstateSizeTYPE(fmi2Component c, fmi2FMUstate FMUstate, size_t *size)

Definition at line 205 of file fmi2FunctionTypes.h.

◆ fmi2SerializeFMUstateTYPE

typedef fmi2Status fmi2SerializeFMUstateTYPE(fmi2Component c, fmi2FMUstate FMUstate, fmi2Byte[], size_t size)

Definition at line 206 of file fmi2FunctionTypes.h.

◆ fmi2SetBooleanTYPE

typedef fmi2Status fmi2SetBooleanTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Boolean value[])

Definition at line 198 of file fmi2FunctionTypes.h.

◆ fmi2SetContinuousStatesTYPE

typedef fmi2Status fmi2SetContinuousStatesTYPE(fmi2Component c, const fmi2Real x[], size_t nx)

Definition at line 231 of file fmi2FunctionTypes.h.

◆ fmi2SetDebugLoggingTYPE

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

Definition at line 163 of file fmi2FunctionTypes.h.

◆ fmi2SetFMUstateTYPE

typedef fmi2Status fmi2SetFMUstateTYPE(fmi2Component c, fmi2FMUstate FMUstate)

Definition at line 203 of file fmi2FunctionTypes.h.

◆ fmi2SetIntegerTYPE

typedef fmi2Status fmi2SetIntegerTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Integer value[])

Definition at line 197 of file fmi2FunctionTypes.h.

◆ fmi2SetRealInputDerivativesTYPE

typedef fmi2Status fmi2SetRealInputDerivativesTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Integer order[], const fmi2Real value[])

Definition at line 245 of file fmi2FunctionTypes.h.

◆ fmi2SetRealTYPE

typedef fmi2Status fmi2SetRealTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Real value[])

Definition at line 196 of file fmi2FunctionTypes.h.

◆ fmi2SetStringTYPE

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

Definition at line 199 of file fmi2FunctionTypes.h.

◆ fmi2SetTimeTYPE

typedef fmi2Status fmi2SetTimeTYPE(fmi2Component c, fmi2Real time)

Definition at line 230 of file fmi2FunctionTypes.h.

◆ fmi2SetupExperimentTYPE

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

Definition at line 179 of file fmi2FunctionTypes.h.

◆ fmi2StepFinished

typedef void(* fmi2StepFinished) (fmi2ComponentEnvironment componentEnvironment, fmi2Status status)

Definition at line 127 of file fmi2FunctionTypes.h.

◆ fmi2TerminateTYPE

typedef fmi2Status fmi2TerminateTYPE(fmi2Component c)

Definition at line 187 of file fmi2FunctionTypes.h.

Enumeration Type Documentation

◆ fmi2Status

enum fmi2Status
Enumerator
fmi2OK 
fmi2Warning 
fmi2Discard 
fmi2Error 
fmi2Fatal 
fmi2Pending 

Definition at line 98 of file fmi2FunctionTypes.h.

◆ fmi2StatusKind

Enumerator
fmi2DoStepStatus 
fmi2PendingStatus 
fmi2LastSuccessfulTime 
fmi2Terminated 

Definition at line 112 of file fmi2FunctionTypes.h.

◆ fmi2Type

enum fmi2Type
Enumerator
fmi2ModelExchange 
fmi2CoSimulation 

Definition at line 107 of file fmi2FunctionTypes.h.