From 4d37bbed4a1f745c331ba996fc860d79e3e51e8f Mon Sep 17 00:00:00 2001 From: mjkwiatkowski Date: Tue, 10 Feb 2026 08:14:41 +0100 Subject: feat: added the entry point to experiment listener --- .../compute/simulator/scheduler/SmartScheduler.kt | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/scheduler/SmartScheduler.kt (limited to 'opendc-compute/opendc-compute-simulator/src/main') diff --git a/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/scheduler/SmartScheduler.kt b/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/scheduler/SmartScheduler.kt new file mode 100644 index 00000000..bf8b7825 --- /dev/null +++ b/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/scheduler/SmartScheduler.kt @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2021 AtLarge Research + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +package org.opendc.compute.simulator.scheduler + +import org.opendc.compute.simulator.service.HostView +import org.opendc.compute.simulator.service.ServiceTask + +public class SmartScheduler() : ComputeScheduler { + override fun addHost(host: HostView) { + TODO("Not yet implemented") + } + + override fun removeHost(host: HostView) { + TODO("Not yet implemented") + } + + override fun updateHost(host: HostView) { + TODO("Not yet implemented") + } + + override fun setHostEmpty(hostView: HostView) { + TODO("Not yet implemented") + } + + override fun select(iter: MutableIterator): SchedulingResult { + TODO("Not yet implemented") + // Here be the API calls using HTTP between the other OpenDC + // You need to specify how much time do you have to make the prediction between receiving a time and putting onto a host + return SchedulingResult(SchedulingResultType.EMPTY) + } + // Benefits of a digital twin: during operations you make sure what is happening in the real world. + // The use-case is making split-second automated decisions before operators can make them. + // Make a strong case for making a Digital Twin. + override fun removeTask( + task: ServiceTask, + host: HostView? + ) { + TODO("Not yet implemented") + } +} \ No newline at end of file -- cgit v1.2.3