summaryrefslogtreecommitdiff
path: root/opendc-core/src/test
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2017-09-06 10:56:20 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2017-09-06 10:56:20 +0200
commit5a4d74ec372e8315a43e12499d6a777207550b73 (patch)
tree7b5eabbec84f4a8de9157b29b0f91963908a4b48 /opendc-core/src/test
parent89d38062bf439c7cf6f731ab6305ccc0e118d9e1 (diff)
Separate Simulator interface and implementation
This change separates the Simulator interface from one of its possible implementations. This allows us to easily swap simulators between experiments.
Diffstat (limited to 'opendc-core/src/test')
-rw-r--r--opendc-core/src/test/kotlin/nl/atlarge/opendc/SmokeTest.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/opendc-core/src/test/kotlin/nl/atlarge/opendc/SmokeTest.kt b/opendc-core/src/test/kotlin/nl/atlarge/opendc/SmokeTest.kt
index f18e62bd..3af0f8f3 100644
--- a/opendc-core/src/test/kotlin/nl/atlarge/opendc/SmokeTest.kt
+++ b/opendc-core/src/test/kotlin/nl/atlarge/opendc/SmokeTest.kt
@@ -24,7 +24,7 @@
package nl.atlarge.opendc
-import nl.atlarge.opendc.kernel.Simulator
+import nl.atlarge.opendc.kernel.DefaultSimulator
import nl.atlarge.opendc.topology.AdjacencyListTopologyBuilder
import nl.atlarge.opendc.topology.container.Rack
import nl.atlarge.opendc.topology.machine.Cpu
@@ -51,7 +51,7 @@ internal class SmokeTest {
}
}
- val simulator = Simulator(topology)
+ val simulator = DefaultSimulator(topology)
while (simulator.hasNext()) {
simulator.next()
}