From 90e0d1d8c6ab94e020dd4cb4831a369b270a69b7 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Wed, 20 Sep 2017 00:37:13 +0200 Subject: Implement standard task schedulers This change implements default tasks scheduling algorithms like FIFO or SRTF and adds them to to the standard library. --- .../src/main/kotlin/nl/atlarge/opendc/topology/container/Room.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'opendc-stdlib/src/main/kotlin/nl/atlarge/opendc/topology/container/Room.kt') diff --git a/opendc-stdlib/src/main/kotlin/nl/atlarge/opendc/topology/container/Room.kt b/opendc-stdlib/src/main/kotlin/nl/atlarge/opendc/topology/container/Room.kt index 3b338899..109a5629 100644 --- a/opendc-stdlib/src/main/kotlin/nl/atlarge/opendc/topology/container/Room.kt +++ b/opendc-stdlib/src/main/kotlin/nl/atlarge/opendc/topology/container/Room.kt @@ -31,4 +31,9 @@ import nl.atlarge.opendc.topology.Entity * * @author Fabian Mastenbroek (f.s.mastenbroek@student.tudelft.nl) */ -interface Room : Entity +class Room : Entity { + /** + * The initial state of the entity. + */ + override val initialState = Unit +} -- cgit v1.2.3