|
coral
A C++ library for distributed co-simulation
|
A class which represents an imported FMI 1.0 FMU. More...
#include "coral/fmi/fmu1.hpp"
Public Member Functions | |
| coral::fmi::FMIVersion | FMIVersion () const override |
| Which FMI standard version is used in this FMU. | |
| const coral::model::SlaveTypeDescription & | Description () const override |
| A description of this FMU. | |
| std::shared_ptr< coral::fmi::SlaveInstance > | InstantiateSlave () override |
| Creates a co-simulation slave instance of this FMU. | |
| std::shared_ptr< coral::fmi::Importer > | Importer () const override |
| Returns the coral::fmi::Importer which was used to import this FMU. | |
| std::shared_ptr< SlaveInstance1 > | InstantiateSlave1 () |
| Creates a new co-simulation slave instance. More... | |
| const boost::filesystem::path & | Directory () const |
| Returns the path to the directory in which this FMU was unpacked. | |
| fmi1_value_reference_t | FMIValueReference (coral::model::VariableID variable) const |
| Returns the FMI value reference for the variable with the given ID. More... | |
| fmi1_import_t * | FmilibHandle () const |
| Returns the underlying C API handle (for FMI Library) | |
A class which represents an imported FMI 1.0 FMU.
This class is an implementation of coral::fmi::FMU specialised for FMUs that implement FMI v1.0.
| fmi1_value_reference_t coral::fmi::FMU1::FMIValueReference | ( | coral::model::VariableID | variable | ) | const |
Returns the FMI value reference for the variable with the given ID.
| [in] | variable | The ID of a variable. Valid variable IDs are obtained by inspecting the variable list in the coral::model::SlaveTypeDescription returned by Description(). |
| std::out_of_range | If there is no variable with the given ID. |
| std::shared_ptr<SlaveInstance1> coral::fmi::FMU1::InstantiateSlave1 | ( | ) |
Creates a new co-simulation slave instance.
This is equivalent to InstantiateSlave(), except that the returned object is statically typed as an FMI 1.0 slave.
1.8.11