From 5a4d74ec372e8315a43e12499d6a777207550b73 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Wed, 6 Sep 2017 10:56:20 +0200 Subject: 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. --- opendc-core/src/test/kotlin/nl/atlarge/opendc/SmokeTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opendc-core/src/test') 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() } -- cgit v1.2.3