Skip to content
Snippets Groups Projects
Commit 433f9788 authored by dgelessus's avatar dgelessus
Browse files

Remove section about co-simulation (no longer part of ProB 2)

parent a7a623c2
No related branches found
No related tags found
No related merge requests found
Pipeline #112717 passed
[[co-simulation]]
= Co-Simulation
ProB 2.0 contains some classes for cosimulating discrete models specified in one of the formalisms that are supported by ProB, and continuous models that are implemented using the https://fmi-standard.org/[functional mockup interface] standard. A so called functional mockup unit (FMU) can, for example, be created in C using the FMI SDK or exported from third party tools such as Dymola. The framework is built on top of https://ptolemy.berkeley.edu/java/jfmi//[JFMI] from the Ptolemy Project. In fact, we only added a thin wrapper on top of the JFMI library.
The `de.prob.cosimulation.FMU` class can be used to load a .fmu file and to control the continuous part of the simulation.
[source, groovy]
----
starttime = 0.0
endtime = 5.0
f = new FMU("/path/to/model.fmu")
f.initialize(starttime, endtime)
v = f.getDouble("some_portname")
f.set("some_other_portname", foo)
time = f.doStep(time, timedelta)
----
...@@ -49,8 +49,6 @@ include::chapter/Java_API/06_animation.adoc[] ...@@ -49,8 +49,6 @@ include::chapter/Java_API/06_animation.adoc[]
include::chapter/Java_API/07_evaluation.adoc[] include::chapter/Java_API/07_evaluation.adoc[]
include::chapter/Java_API/08_cosimulation.adoc[]
include::chapter/Java_API/09_dependencyinjection.adoc[] include::chapter/Java_API/09_dependencyinjection.adoc[]
include::chapter/Java_API/10_program_synthesis.adoc[] include::chapter/Java_API/10_program_synthesis.adoc[]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment