OMSimulatorLib
The OMSimulator project is a FMI-based co-simulation environment that supports ordinary (i.e., non-delayed) and TLM connections.
OMSimulator.h
Go to the documentation of this file.
1 /*
2  * This file is part of OpenModelica.
3  *
4  * Copyright (c) 1998-CurrentYear, Open Source Modelica Consortium (OSMC),
5  * c/o Linköpings universitet, Department of Computer and Information Science,
6  * SE-58183 Linköping, Sweden.
7  *
8  * All rights reserved.
9  *
10  * THIS PROGRAM IS PROVIDED UNDER THE TERMS OF GPL VERSION 3 LICENSE OR
11  * THIS OSMC PUBLIC LICENSE (OSMC-PL) VERSION 1.2.
12  * ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES
13  * RECIPIENT'S ACCEPTANCE OF THE OSMC PUBLIC LICENSE OR THE GPL VERSION 3,
14  * ACCORDING TO RECIPIENTS CHOICE.
15  *
16  * The OpenModelica software and the Open Source Modelica
17  * Consortium (OSMC) Public License (OSMC-PL) are obtained
18  * from OSMC, either from the above address,
19  * from the URLs: http://www.ida.liu.se/projects/OpenModelica or
20  * http://www.openmodelica.org, and in the OpenModelica distribution.
21  * GNU version 3 is obtained from: http://www.gnu.org/copyleft/gpl.html.
22  *
23  * This program is distributed WITHOUT ANY WARRANTY; without
24  * even the implied warranty of MERCHANTABILITY or FITNESS
25  * FOR A PARTICULAR PURPOSE, EXCEPT AS EXPRESSLY SET FORTH
26  * IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE CONDITIONS OF OSMC-PL.
27  *
28  * See the full OSMC Public License conditions for more details.
29  *
30  */
31 
32 #ifndef _OMSIMULATOR_H_
33 #define _OMSIMULATOR_H_
34 
35 #include "Types.h"
36 
37 /* define OMSimulatorLib_EXPORTS *only* when building the DLL */
38 #if defined(OMS_STATIC)
39  #define OMSAPI
40  #define OMSCALL
41 #else
42  #if defined(_MSC_VER) || defined(__MINGW32__)
43  #ifdef OMSimulatorLib_EXPORTS
44  #define OMSAPI __declspec(dllexport)
45  #define OMSCALL __cdecl
46  #else
47  #define OMSAPI __declspec(dllimport)
48  #define OMSCALL __cdecl
49  #endif
50  #else
51  #define OMSAPI
52  #define OMSCALL
53  #endif
54 #endif
55 
56 #ifdef __cplusplus
57 extern "C"
58 {
59 #endif
60 
61 OMSAPI oms_status_enu_t OMSCALL oms_activateVariant(const char* crefA, const char* crefB);
62 OMSAPI oms_status_enu_t OMSCALL oms_addBus(const char* cref);
63 OMSAPI oms_status_enu_t OMSCALL oms_addConnection(const char* crefA, const char* crefB, bool suppressUnitConversion);
65 OMSAPI oms_status_enu_t OMSCALL oms_addConnectorToBus(const char* busCref, const char* connectorCref);
66 OMSAPI oms_status_enu_t OMSCALL oms_addConnectorToTLMBus(const char* busCref, const char* connectorCref, const char *type);
67 OMSAPI oms_status_enu_t OMSCALL oms_addDynamicValueIndicator(const char* signal, const char* lower, const char* upper, double stepSize);
69 OMSAPI oms_status_enu_t OMSCALL oms_addExternalModel(const char* cref, const char* path, const char* startscript);
70 OMSAPI oms_status_enu_t OMSCALL oms_addResources(const char* cref, const char* path);
71 OMSAPI oms_status_enu_t OMSCALL oms_addSignalsToResults(const char* cref, const char* regex);
72 OMSAPI oms_status_enu_t OMSCALL oms_addStaticValueIndicator(const char* signal, double lower, double upper, double stepSize);
73 OMSAPI oms_status_enu_t OMSCALL oms_addSubModel(const char* cref, const char* fmuPath);
76 OMSAPI oms_status_enu_t OMSCALL oms_addTLMBus(const char* cref, oms_tlm_domain_t domain, const int dimensions, const oms_tlm_interpolation_t interpolation);
77 OMSAPI oms_status_enu_t OMSCALL oms_addTLMConnection(const char* crefA, const char* crefB, double delay, double alpha, double linearimpedance, double angularimpedance);
78 OMSAPI int OMSCALL oms_compareSimulationResults(const char* filenameA, const char* filenameB, const char* var, double relTol, double absTol);
79 OMSAPI oms_status_enu_t OMSCALL oms_copySystem(const char* source, const char* target);
80 OMSAPI oms_status_enu_t OMSCALL oms_delete(const char* cref);
81 OMSAPI oms_status_enu_t OMSCALL oms_deleteConnection(const char* crefA, const char* crefB);
82 OMSAPI oms_status_enu_t OMSCALL oms_deleteConnectorFromBus(const char* busCref, const char* connectorCref);
83 OMSAPI oms_status_enu_t OMSCALL oms_deleteConnectorFromTLMBus(const char* busCref, const char* connectorCref);
85 OMSAPI oms_status_enu_t OMSCALL oms_doStep(const char* cref);
86 OMSAPI oms_status_enu_t OMSCALL oms_duplicateVariant(const char* crefA, const char* crefB);
87 OMSAPI oms_status_enu_t OMSCALL oms_export(const char* cref, const char* filename);
88 OMSAPI oms_status_enu_t OMSCALL oms_exportDependencyGraphs(const char* cref, const char* initialization, const char* event, const char* simulation);
89 OMSAPI oms_status_enu_t OMSCALL oms_exportSnapshot(const char* cref, char** contents);
90 OMSAPI oms_status_enu_t OMSCALL oms_exportSSMTemplate(const char * cref, const char * filename);
91 OMSAPI oms_status_enu_t OMSCALL oms_exportSSVTemplate(const char* cref, const char* filename);
93 OMSAPI oms_status_enu_t OMSCALL oms_fetchExternalModelInterfaces(const char* cref, char*** names, char*** domains, int** dimensions);
94 OMSAPI void OMSCALL oms_freeMemory(void* obj);
95 OMSAPI oms_status_enu_t OMSCALL oms_getBoolean(const char* cref, bool* value);
96 OMSAPI oms_status_enu_t OMSCALL oms_getBus(const char* cref, oms_busconnector_t** busConnector);
100 OMSAPI oms_status_enu_t OMSCALL oms_getDirectionalDerivative(const char* unknownCref, const char* knownCref, double* value);
101 OMSAPI oms_status_enu_t OMSCALL oms_getElement(const char* cref, oms_element_t** element);
103 OMSAPI oms_status_enu_t OMSCALL oms_getExternalModelInfo(const char* cref, const oms_external_tlm_model_info_t** externalModelInfo);
104 OMSAPI oms_status_enu_t OMSCALL oms_getFixedStepSize(const char* cref, double* stepSize);
105 OMSAPI oms_status_enu_t OMSCALL oms_getFMUInfo(const char* cref, const oms_fmu_info_t** fmuInfo);
106 OMSAPI oms_status_enu_t OMSCALL oms_getInteger(const char* cref, int* value);
108 OMSAPI oms_status_enu_t OMSCALL oms_getReal(const char* cref, double* value);
109 OMSAPI oms_status_enu_t OMSCALL oms_getResultFile(const char* cref, char** filename, int* bufferSize);
111 OMSAPI oms_status_enu_t OMSCALL oms_getStartTime(const char* cref, double* startTime);
112 OMSAPI oms_status_enu_t OMSCALL oms_getStopTime(const char* cref, double* stopTime);
113 OMSAPI oms_status_enu_t OMSCALL oms_getString(const char* cref, char** value);
114 OMSAPI oms_status_enu_t OMSCALL oms_getSubModelPath(const char* cref, char** path);
116 OMSAPI oms_status_enu_t OMSCALL oms_getTime(const char* cref, double* time);
117 OMSAPI oms_status_enu_t OMSCALL oms_getTLMBus(const char* cref, oms_tlmbusconnector_t** tlmBusConnector);
118 OMSAPI oms_status_enu_t OMSCALL oms_getTLMVariableTypes(oms_tlm_domain_t domain, const int dimensions, const oms_tlm_interpolation_t interpolation, char ***types, char ***descriptions);
119 OMSAPI oms_status_enu_t OMSCALL oms_getTolerance(const char* cref, double* absoluteTolerance, double* relativeTolerance);
120 OMSAPI oms_status_enu_t OMSCALL oms_getVariableStepSize(const char* cref, double* initialStepSize, double* minimumStepSize, double* maximumStepSize);
121 OMSAPI const char* OMSCALL oms_getVersion();
122 OMSAPI oms_status_enu_t OMSCALL oms_faultInjection(const char* signal, oms_fault_type_enu_t faultType, double faultValue);
123 OMSAPI oms_status_enu_t OMSCALL oms_importFile(const char* filename, char** cref);
124 OMSAPI oms_status_enu_t OMSCALL oms_importSnapshot(const char* cref, const char* snapshot, char** newCref);
127 OMSAPI oms_status_enu_t OMSCALL oms_list(const char* cref, char** contents);
128 OMSAPI oms_status_enu_t OMSCALL oms_listUnconnectedConnectors(const char* cref, char** contents);
129 OMSAPI oms_status_enu_t OMSCALL oms_loadSnapshot(const char* cref, const char* snapshot, char** newCref);
130 OMSAPI oms_status_enu_t OMSCALL oms_listVariants(const char* cref, char** contents);
131 OMSAPI oms_status_enu_t OMSCALL oms_newModel(const char* cref);
133 OMSAPI oms_status_enu_t OMSCALL oms_reduceSSV(const char* cref, const char* ssvfile, const char* ssmfile, const char* filepath);
134 OMSAPI oms_status_enu_t OMSCALL oms_removeSignalsFromResults(const char* cref, const char* regex);
135 OMSAPI oms_status_enu_t OMSCALL oms_rename(const char* cref, const char* newCref);
136 OMSAPI oms_status_enu_t OMSCALL oms_replaceSubModel(const char* cref, const char* fmuPath, bool dryRun, int* warningCount);
137 OMSAPI oms_status_enu_t OMSCALL oms_reset(const char* cref);
138 OMSAPI oms_status_enu_t OMSCALL oms_referenceResources(const char* cref, const char* ssmFile);
139 OMSAPI oms_status_enu_t OMSCALL oms_RunFile(const char* filename);
140 OMSAPI oms_status_enu_t OMSCALL oms_setBoolean(const char* cref, bool value);
143 OMSAPI oms_status_enu_t OMSCALL oms_setConnectionGeometry(const char* crefA, const char* crefB, const ssd_connection_geometry_t* geometry);
146 OMSAPI oms_status_enu_t OMSCALL oms_setFixedStepSize(const char* cref, double stepSize);
147 OMSAPI oms_status_enu_t OMSCALL oms_setInteger(const char* cref, int value);
148 OMSAPI oms_status_enu_t OMSCALL oms_setLogFile(const char* filename);
149 OMSAPI void OMSCALL oms_setLoggingCallback(void (*cb)(oms_message_type_enu_t type, const char* message));
150 OMSAPI oms_status_enu_t OMSCALL oms_setLoggingInterval(const char* cref, double loggingInterval);
152 OMSAPI void OMSCALL oms_setMaxLogFileSize(const unsigned long size);
153 OMSAPI oms_status_enu_t OMSCALL oms_setReal(const char* cref, double value);
154 OMSAPI oms_status_enu_t OMSCALL oms_setRealInputDerivative(const char* cref, double value);
155 OMSAPI oms_status_enu_t OMSCALL oms_setResultFile(const char* cref, const char* filename, int bufferSize);
157 OMSAPI oms_status_enu_t OMSCALL oms_setStartTime(const char* cref, double startTime);
158 OMSAPI oms_status_enu_t OMSCALL oms_setStopTime(const char* cref, double stopTime);
159 OMSAPI oms_status_enu_t OMSCALL oms_setString(const char* cref, const char* value);
160 OMSAPI oms_status_enu_t OMSCALL oms_setTempDirectory(const char* newTempDir);
163 OMSAPI oms_status_enu_t OMSCALL oms_setTLMPositionAndOrientation(const char *cref, double x1, double x2, double x3, double A11, double A12, double A13, double A21, double A22, double A23, double A31, double A32, double A33);
164 OMSAPI oms_status_enu_t OMSCALL oms_setTLMSocketData(const char* cref, const char* address, int managerPort, int monitorPort);
165 OMSAPI oms_status_enu_t OMSCALL oms_setTolerance(const char* cref, double absoluteTolerance, double relativeTolerance);
166 OMSAPI oms_status_enu_t OMSCALL oms_setVariableStepSize(const char* cref, double initialStepSize, double minimumStepSize, double maximumStepSize);
167 OMSAPI oms_status_enu_t OMSCALL oms_setWorkingDirectory(const char* newWorkingDir);
168 OMSAPI oms_status_enu_t OMSCALL oms_simulate(const char* cref);
169 OMSAPI oms_status_enu_t OMSCALL oms_setUnit(const char* cref, const char* value);
170 OMSAPI oms_status_enu_t OMSCALL oms_stepUntil(const char* cref, double stopTime);
171 OMSAPI oms_status_enu_t OMSCALL oms_terminate(const char* cref);
172 
173 #ifdef __cplusplus
174 }
175 #endif
176 
177 #endif
OMSAPI oms_status_enu_t OMSCALL oms_getFixedStepSize(const char *cref, double *stepSize)
Definition: OMSimulator.cpp:401
OMSAPI oms_status_enu_t OMSCALL oms_getConnector(const char *cref, oms_connector_t **connector)
Definition: OMSimulator.cpp:470
OMSAPI oms_status_enu_t OMSCALL oms_setInteger(const char *cref, int value)
Definition: OMSimulator.cpp:1485
OMSAPI oms_status_enu_t OMSCALL oms_RunFile(const char *filename)
Definition: OMSimulator.cpp:1172
OMSAPI oms_status_enu_t OMSCALL oms_getDirectionalDerivative(const char *unknownCref, const char *knownCref, double *value)
Definition: OMSimulator.cpp:1362
oms_solver_enu_t
Definition: Types.h:96
OMSAPI void OMSCALL oms_freeMemory(void *obj)
Definition: OMSimulator.cpp:384
OMSAPI oms_status_enu_t OMSCALL oms_setStartTime(const char *cref, double startTime)
Definition: OMSimulator.cpp:1572
OMSAPI oms_status_enu_t OMSCALL oms_addResources(const char *cref, const char *path)
Definition: OMSimulator.cpp:353
OMSAPI oms_status_enu_t OMSCALL oms_addConnectorToTLMBus(const char *busCref, const char *connectorCref, const char *type)
Definition: OMSimulator.cpp:789
OMSAPI oms_status_enu_t OMSCALL oms_listUnconnectedConnectors(const char *cref, char **contents)
Definition: OMSimulator.cpp:313
OMSAPI oms_status_enu_t OMSCALL oms_addTimeIndicator(const char *signal)
Definition: OMSimulator.cpp:1927
OMSAPI oms_status_enu_t OMSCALL oms_setTLMConnectionParameters(const char *crefA, const char *crefB, const oms_tlm_connection_parameters_t *parameters)
Definition: OMSimulator.cpp:599
OMSAPI oms_status_enu_t OMSCALL oms_reset(const char *cref)
Definition: OMSimulator.cpp:1127
OMSAPI oms_status_enu_t OMSCALL oms_deleteConnectorFromTLMBus(const char *busCref, const char *connectorCref)
Definition: OMSimulator.cpp:814
OMSAPI oms_status_enu_t OMSCALL oms_setTLMPositionAndOrientation(const char *cref, double x1, double x2, double x3, double A11, double A12, double A13, double A21, double A22, double A23, double A31, double A32, double A33)
Definition: OMSimulator.cpp:1301
OMSAPI oms_status_enu_t OMSCALL oms_setTLMBusGeometry(const char *bus, const ssd_connector_geometry_t *geometry)
Definition: OMSimulator.cpp:840
OMSAPI oms_status_enu_t OMSCALL oms_getModelState(const char *cref, oms_modelState_enu_t *modelState)
Definition: OMSimulator.cpp:1717
OMSAPI oms_status_enu_t OMSCALL oms_deleteConnectorFromBus(const char *busCref, const char *connectorCref)
Definition: OMSimulator.cpp:767
OMSAPI oms_status_enu_t OMSCALL oms_addConnectorToBus(const char *busCref, const char *connectorCref)
Definition: OMSimulator.cpp:746
OMSAPI oms_status_enu_t OMSCALL oms_setElementGeometry(const char *cref, const ssd_element_geometry_t *geometry)
Definition: OMSimulator.cpp:419
OMSAPI oms_status_enu_t OMSCALL oms_getBus(const char *cref, oms_busconnector_t **busConnector)
Definition: OMSimulator.cpp:661
OMSAPI oms_status_enu_t OMSCALL oms_addBus(const char *cref)
Definition: OMSimulator.cpp:645
#define OMSAPI
Definition: OMSimulator.h:51
FMU specific attributes.
Definition: Types.h:412
Connection between two connectors.
Definition: Types.h:346
OMSAPI oms_status_enu_t OMSCALL oms_exportSSVTemplate(const char *cref, const char *filename)
Definition: OMSimulator.cpp:291
OMSAPI oms_status_enu_t OMSCALL oms_setResultFile(const char *cref, const char *filename, int bufferSize)
Definition: OMSimulator.cpp:1519
OMSAPI oms_status_enu_t OMSCALL oms_faultInjection(const char *signal, oms_fault_type_enu_t faultType, double faultValue)
Definition: OMSimulator.cpp:230
OMSAPI oms_status_enu_t OMSCALL oms_setReal(const char *cref, double value)
Definition: OMSimulator.cpp:1447
OMSAPI oms_status_enu_t OMSCALL oms_setCommandLineOption(const char *cmd)
Definition: OMSimulator.cpp:491
#define OMSCALL
Definition: OMSimulator.h:52
OMSAPI oms_status_enu_t OMSCALL oms_simulate(const char *cref)
Definition: OMSimulator.cpp:1094
oms_causality_enu_t
Definition: Types.h:61
OMSAPI oms_status_enu_t OMSCALL oms_deleteConnection(const char *crefA, const char *crefB)
Definition: OMSimulator.cpp:538
oms_tlm_interpolation_t
Definition: Types.h:70
OMSAPI oms_status_enu_t OMSCALL oms_addSubModel(const char *cref, const char *fmuPath)
Definition: OMSimulator.cpp:913
OMSAPI oms_status_enu_t OMSCALL oms_addStaticValueIndicator(const char *signal, double lower, double upper, double stepSize)
Definition: OMSimulator.cpp:1948
OMSAPI oms_status_enu_t OMSCALL oms_instantiate(const char *cref)
Definition: OMSimulator.cpp:1072
OMSAPI oms_status_enu_t OMSCALL oms_getExternalModelInfo(const char *cref, const oms_external_tlm_model_info_t **externalModelInfo)
Definition: OMSimulator.cpp:1014
OMSAPI oms_status_enu_t OMSCALL oms_addEventIndicator(const char *signal)
Definition: OMSimulator.cpp:1906
OMSAPI oms_status_enu_t OMSCALL oms_reduceSSV(const char *cref, const char *ssvfile, const char *ssmfile, const char *filepath)
Definition: OMSimulator.cpp:216
OMSAPI oms_status_enu_t OMSCALL oms_getInteger(const char *cref, int *value)
Definition: OMSimulator.cpp:1413
OMSAPI oms_status_enu_t OMSCALL oms_exportSnapshot(const char *cref, char **contents)
Definition: OMSimulator.cpp:274
OMSAPI oms_status_enu_t OMSCALL oms_setTempDirectory(const char *newTempDir)
Definition: OMSimulator.cpp:115
oms_status_enu_t
Definition: Types.h:43
OMSAPI oms_status_enu_t OMSCALL oms_setString(const char *cref, const char *value)
Definition: OMSimulator.cpp:1638
OMSAPI oms_status_enu_t OMSCALL oms_getSolver(const char *cref, oms_solver_enu_t *solver)
Definition: OMSimulator.cpp:1395
OMSAPI oms_status_enu_t OMSCALL oms_setLoggingInterval(const char *cref, double loggingInterval)
Definition: OMSimulator.cpp:89
OMSAPI oms_status_enu_t OMSCALL oms_getTLMVariableTypes(oms_tlm_domain_t domain, const int dimensions, const oms_tlm_interpolation_t interpolation, char ***types, char ***descriptions)
Definition: OMSimulator.cpp:1730
OMSAPI oms_status_enu_t OMSCALL oms_terminate(const char *cref)
Definition: OMSimulator.cpp:1265
OMSAPI int OMSCALL oms_compareSimulationResults(const char *filenameA, const char *filenameB, const char *var, double relTol, double absTol)
Definition: OMSimulator.cpp:143
OMSAPI oms_status_enu_t OMSCALL oms_setBoolean(const char *cref, bool value)
Definition: OMSimulator.cpp:1502
oms_modelState_enu_t
Definition: Types.h:52
OMSAPI oms_status_enu_t OMSCALL oms_removeSignalsFromResults(const char *cref, const char *regex)
Definition: OMSimulator.cpp:1547
OMSAPI oms_status_enu_t OMSCALL oms_setConnectionGeometry(const char *crefA, const char *crefB, const ssd_connection_geometry_t *geometry)
Definition: OMSimulator.cpp:578
OMSAPI void OMSCALL oms_setLoggingCallback(void(*cb)(oms_message_type_enu_t type, const char *message))
Definition: OMSimulator.cpp:79
OMSAPI oms_status_enu_t OMSCALL oms_initialize(const char *cref)
Definition: OMSimulator.cpp:1083
OMSAPI oms_status_enu_t OMSCALL oms_export(const char *cref, const char *filename)
Definition: OMSimulator.cpp:225
OMSAPI oms_status_enu_t OMSCALL oms_setLoggingLevel(int logLevel)
Definition: OMSimulator.cpp:105
OMSAPI void OMSCALL oms_setMaxLogFileSize(const unsigned long size)
Definition: OMSimulator.cpp:110
const char * connections
Definition: Tags.cpp:48
OMSAPI oms_status_enu_t OMSCALL oms_replaceSubModel(const char *cref, const char *fmuPath, bool dryRun, int *warningCount)
Definition: OMSimulator.cpp:954
OMSAPI oms_status_enu_t OMSCALL oms_addConnector(const char *cref, oms_causality_enu_t causality, oms_signal_type_enu_t type)
Definition: OMSimulator.cpp:451
Bus connector.
Definition: Types.h:369
const char * elements
Definition: Tags.cpp:54
OMSAPI oms_status_enu_t OMSCALL oms_addTLMBus(const char *cref, oms_tlm_domain_t domain, const int dimensions, const oms_tlm_interpolation_t interpolation)
Definition: OMSimulator.cpp:701
OMSAPI oms_status_enu_t OMSCALL oms_setBusGeometry(const char *bus, const ssd_connector_geometry_t *geometry)
Definition: OMSimulator.cpp:682
5.2.1.1 ssd:ConnectorGeometry
Definition: Types.h:178
OMSAPI oms_status_enu_t OMSCALL oms_exportSSMTemplate(const char *cref, const char *filename)
Definition: OMSimulator.cpp:302
OMSAPI oms_status_enu_t OMSCALL oms_addSignalsToResults(const char *cref, const char *regex)
Definition: OMSimulator.cpp:1535
OMSAPI oms_status_enu_t OMSCALL oms_addSystem(const char *cref, oms_system_enu_t type)
Definition: OMSimulator.cpp:368
OMSAPI oms_status_enu_t OMSCALL oms_duplicateVariant(const char *crefA, const char *crefB)
Definition: OMSimulator.cpp:942
OMSAPI oms_status_enu_t OMSCALL oms_activateVariant(const char *crefA, const char *crefB)
Definition: OMSimulator.cpp:930
OMSAPI oms_status_enu_t OMSCALL oms_setWorkingDirectory(const char *newWorkingDir)
Definition: OMSimulator.cpp:120
OMSAPI oms_status_enu_t OMSCALL oms_addConnection(const char *crefA, const char *crefB, bool suppressUnitConversion)
Definition: OMSimulator.cpp:515
oms_system_enu_t
Definition: Types.h:121
const char * parameters
Definition: Tags.cpp:80
OMSAPI oms_status_enu_t OMSCALL oms_getSystemType(const char *cref, oms_system_enu_t *type)
Definition: OMSimulator.cpp:496
OMSAPI oms_status_enu_t OMSCALL oms_getStopTime(const char *cref, double *stopTime)
Definition: OMSimulator.cpp:1584
OMSAPI oms_status_enu_t OMSCALL oms_setConnectorGeometry(const char *cref, const ssd_connector_geometry_t *geometry)
Definition: OMSimulator.cpp:561
OMSAPI oms_status_enu_t OMSCALL oms_getVariableStepSize(const char *cref, double *initialStepSize, double *minimumStepSize, double *maximumStepSize)
Definition: OMSimulator.cpp:1773
oms_component_enu_t
Definition: Types.h:128
OMSAPI oms_status_enu_t OMSCALL oms_newModel(const char *cref)
Definition: OMSimulator.cpp:125
OMSAPI oms_status_enu_t OMSCALL oms_copySystem(const char *source, const char *target)
Definition: OMSimulator.cpp:379
OMSAPI oms_status_enu_t OMSCALL oms_stepUntil(const char *cref, double stopTime)
Definition: OMSimulator.cpp:1116
OMSAPI oms_status_enu_t OMSCALL oms_exportDependencyGraphs(const char *cref, const char *initialization, const char *event, const char *simulation)
Definition: OMSimulator.cpp:1328
5.3.2.1 ssd:ConnectionGeometry
Definition: Types.h:277
OMSAPI oms_status_enu_t OMSCALL oms_setTolerance(const char *cref, double absoluteTolerance, double relativeTolerance)
Definition: OMSimulator.cpp:1890
oms_message_type_enu_t
Message types used by the logging mechanism.
Definition: Types.h:156
OMSAPI const char *OMSCALL oms_getVersion()
Definition: OMSimulator.cpp:74
OMSAPI oms_status_enu_t OMSCALL oms_setTLMSocketData(const char *cref, const char *address, int managerPort, int monitorPort)
Definition: OMSimulator.cpp:1276
oms_signal_type_enu_t
Definition: Types.h:135
OMSAPI oms_status_enu_t OMSCALL oms_getTolerance(const char *cref, double *absoluteTolerance, double *relativeTolerance)
Definition: OMSimulator.cpp:1755
OMSAPI oms_status_enu_t OMSCALL oms_importFile(const char *filename, char **cref)
Definition: OMSimulator.cpp:247
OMSAPI oms_status_enu_t OMSCALL oms_delete(const char *cref)
Definition: OMSimulator.cpp:167
OMSAPI oms_status_enu_t OMSCALL oms_getBoolean(const char *cref, bool *value)
Definition: OMSimulator.cpp:1430
OMSAPI oms_status_enu_t OMSCALL oms_listVariants(const char *cref, char **contents)
Definition: OMSimulator.cpp:263
OMSAPI oms_status_enu_t OMSCALL oms_addTLMConnection(const char *crefA, const char *crefB, double delay, double alpha, double linearimpedance, double angularimpedance)
Definition: OMSimulator.cpp:863
OMSAPI oms_status_enu_t OMSCALL oms_addDynamicValueIndicator(const char *signal, const char *lower, const char *upper, double stepSize)
Definition: OMSimulator.cpp:1969
OMSAPI oms_status_enu_t OMSCALL oms_setRealInputDerivative(const char *cref, double value)
Definition: OMSimulator.cpp:1464
const char * bus
Definition: Tags.cpp:36
oms_fault_type_enu_t
Definition: Types.h:76
Signal: input, output, and parameter.
Definition: Types.h:358
Parameters for TLM connection.
Definition: Types.h:336
oms_fmi_kind_enu_t
Definition: Types.h:402
OMSAPI oms_status_enu_t OMSCALL oms_getComponentType(const char *cref, oms_component_enu_t *type)
Definition: OMSimulator.cpp:970
OMSAPI oms_status_enu_t OMSCALL oms_setStopTime(const char *cref, double stopTime)
Definition: OMSimulator.cpp:1626
OMSAPI oms_status_enu_t OMSCALL oms_loadSnapshot(const char *cref, const char *snapshot, char **newCref)
Definition: OMSimulator.cpp:328
oms_tlm_domain_t
Definition: Types.h:87
OMSAPI oms_status_enu_t OMSCALL oms_getElements(const char *cref, oms_element_t ***elements)
Definition: OMSimulator.cpp:396
OMSAPI oms_status_enu_t OMSCALL oms_getSubModelPath(const char *cref, char **path)
Definition: OMSimulator.cpp:992
OMSAPI oms_status_enu_t OMSCALL oms_setLogFile(const char *filename)
Definition: OMSimulator.cpp:84
const char * signal
Definition: Tags.cpp:38
OMSAPI oms_status_enu_t OMSCALL oms_getReal(const char *cref, double *value)
Definition: OMSimulator.cpp:1345
OMSAPI oms_status_enu_t OMSCALL oms_getFMUInfo(const char *cref, const oms_fmu_info_t **fmuInfo)
Definition: OMSimulator.cpp:1045
OMSAPI oms_status_enu_t OMSCALL oms_doStep(const char *cref)
Definition: OMSimulator.cpp:1105
OMSAPI oms_status_enu_t OMSCALL oms_importSnapshot(const char *cref, const char *snapshot, char **newCref)
Definition: OMSimulator.cpp:333
OMSAPI oms_status_enu_t OMSCALL oms_list(const char *cref, char **contents)
Definition: OMSimulator.cpp:252
TLM Bus connector.
Definition: Types.h:378
OMSAPI oms_status_enu_t OMSCALL oms_getElement(const char *cref, oms_element_t **element)
Definition: OMSimulator.cpp:391
OMSAPI oms_status_enu_t OMSCALL oms_addExternalModel(const char *cref, const char *path, const char *startscript)
Definition: OMSimulator.cpp:890
Element (aka ssd:Component)
Definition: Types.h:392
OMSAPI oms_status_enu_t OMSCALL oms_getConnections(const char *cref, oms_connection_t ***connections)
Definition: OMSimulator.cpp:624
OMSAPI oms_status_enu_t OMSCALL oms_getTime(const char *cref, double *time)
Definition: OMSimulator.cpp:1672
OMSAPI oms_status_enu_t OMSCALL oms_setVariableStepSize(const char *cref, double initialStepSize, double minimumStepSize, double maximumStepSize)
Definition: OMSimulator.cpp:1701
OMSAPI oms_status_enu_t OMSCALL oms_getResultFile(const char *cref, char **filename, int *bufferSize)
Definition: OMSimulator.cpp:1379
OMSAPI oms_status_enu_t OMSCALL oms_setFixedStepSize(const char *cref, double stepSize)
Definition: OMSimulator.cpp:1685
OMSAPI oms_status_enu_t OMSCALL oms_getTLMBus(const char *cref, oms_tlmbusconnector_t **tlmBusConnector)
Definition: OMSimulator.cpp:721
OMSAPI oms_status_enu_t OMSCALL oms_setUnit(const char *cref, const char *value)
Definition: OMSimulator.cpp:1655
const char * connector
Definition: Tags.cpp:49
5.2.2 ssd:ElementGeometry
Definition: Types.h:212
OMSAPI oms_status_enu_t OMSCALL oms_setSolver(const char *cref, oms_solver_enu_t solver)
Definition: OMSimulator.cpp:1874
OMSAPI oms_status_enu_t OMSCALL oms_deleteResources(const char *cref)
Definition: OMSimulator.cpp:181
OMSAPI oms_status_enu_t OMSCALL oms_getString(const char *cref, char **value)
Definition: OMSimulator.cpp:1597
OMSAPI oms_status_enu_t OMSCALL oms_newResources(const char *cref)
Definition: OMSimulator.cpp:338
OMSAPI oms_status_enu_t OMSCALL oms_getStartTime(const char *cref, double *startTime)
Definition: OMSimulator.cpp:1559
External model specific attributes.
Definition: Types.h:538
OMSAPI oms_status_enu_t OMSCALL oms_extractFMIKind(const char *filename, oms_fmi_kind_enu_t *kind)
Definition: OMSimulator.cpp:1791
OMSAPI oms_status_enu_t OMSCALL oms_referenceResources(const char *cref, const char *ssmFile)
Definition: OMSimulator.cpp:201
OMSAPI oms_status_enu_t OMSCALL oms_rename(const char *cref, const char *newCref)
Definition: OMSimulator.cpp:132
OMSAPI oms_status_enu_t OMSCALL oms_fetchExternalModelInterfaces(const char *cref, char ***names, char ***domains, int **dimensions)
Definition: OMSimulator.cpp:1825