summaryrefslogtreecommitdiff
path: root/opendc-stdlib/src/main/kotlin/com
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2018-02-14 12:32:57 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2018-02-14 12:32:57 +0100
commit157d30beb52c75831e29a1a22c199b95d6d30b42 (patch)
treec425bd9c5c6c76aa675634dd8c21590055f26f65 /opendc-stdlib/src/main/kotlin/com
parent2e819d59934b5308bc58d6c69709112e2a6af402 (diff)
refactor(#18): Create distinction between kernel and simulation
This change creates a distinction between a kernel and a simulation. A single simulation is represented by a `Simulation` object which provides control over the simulation, while the `Kernel` interface allows users to create a new simulation using that kernel as backend.
Diffstat (limited to 'opendc-stdlib/src/main/kotlin/com')
-rw-r--r--opendc-stdlib/src/main/kotlin/com/atlarge/opendc/model/topology/Bootstrap.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-stdlib/src/main/kotlin/com/atlarge/opendc/model/topology/Bootstrap.kt b/opendc-stdlib/src/main/kotlin/com/atlarge/opendc/model/topology/Bootstrap.kt
index 1a5bbcaf..e0b54a28 100644
--- a/opendc-stdlib/src/main/kotlin/com/atlarge/opendc/model/topology/Bootstrap.kt
+++ b/opendc-stdlib/src/main/kotlin/com/atlarge/opendc/model/topology/Bootstrap.kt
@@ -6,7 +6,7 @@ import com.atlarge.opendc.simulator.Entity
/**
* Create a [Bootstrap] procedure for the given [Topology].
*
- * @return A bootstrap procedure for the topology.
+ * @return A apply procedure for the topology.
*/
fun <T : Topology> T.bootstrap(): Bootstrap<T> = Bootstrap.create { ctx ->
forEach { ctx.register(it) }