-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo.main.kts
58 lines (44 loc) · 1.47 KB
/
demo.main.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@file:DependsOn("info.laht.sspgen:dsl:0.5.2")
import no.ntnu.ihb.sspgen.dsl.ssp
ssp("TestSsdGen") {
resources {
file("path/to/FMU1.fmu")
file("path/to/FMU2.fmu")
url("example.com/someFile.txt")
}
ssd("A simple CLI test") {
author = "John Doe"
description = "A simple description"
system("Test") {
description = "An even simpler description"
elements {
component("FMU1", "resources/FMU1.fmu") {
connectors {
real("output", output) {
unit("m/s")
}
real("input", input)
integer("counter", output)
}
parameterBindings {
parameterSet("initialValues") {
real("input", 2.0)
integer("counter", 99)
}
}
}
component("FMU2", "resources/FMU2.fmu") {
connectors {
real("input", input)
real("output", output)
}
}
}
connections {
"FMU2.output" to "FMU1.input"
("FMU1.output" to "FMU2.input").linearTransformation(factor = 1.5)
}
}
defaultExperiment(startTime = 1.0)
}
}