summaryrefslogtreecommitdiff
path: root/opendc-model-odc/setup/src/main
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-model-odc/setup/src/main
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-model-odc/setup/src/main')
-rw-r--r--opendc-model-odc/setup/src/main/kotlin/com/atlarge/opendc/model/odc/platform/JpaPlatformRunner.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/opendc-model-odc/setup/src/main/kotlin/com/atlarge/opendc/model/odc/platform/JpaPlatformRunner.kt b/opendc-model-odc/setup/src/main/kotlin/com/atlarge/opendc/model/odc/platform/JpaPlatformRunner.kt
index eb819a5b..13f322bc 100644
--- a/opendc-model-odc/setup/src/main/kotlin/com/atlarge/opendc/model/odc/platform/JpaPlatformRunner.kt
+++ b/opendc-model-odc/setup/src/main/kotlin/com/atlarge/opendc/model/odc/platform/JpaPlatformRunner.kt
@@ -24,8 +24,7 @@
package com.atlarge.opendc.model.odc.platform
-import com.atlarge.opendc.model.odc.platform.JpaExperimentManager
-import com.atlarge.opendc.omega.OmegaKernelFactory
+import com.atlarge.opendc.omega.OmegaKernel
import mu.KotlinLogging
import java.util.concurrent.Executors
import javax.persistence.Persistence
@@ -50,7 +49,7 @@ fun main(args: Array<String>) {
val threads = 4
val executorService = Executors.newFixedThreadPool(threads)
val experiments = JpaExperimentManager(factory)
- val kernel = OmegaKernelFactory
+ val kernel = OmegaKernel
logger.info { "Waiting for enqueued experiments..." }
while (true) {