summaryrefslogtreecommitdiff
path: root/opendc-compute/opendc-compute-simulator/src/main
diff options
context:
space:
mode:
authormjkwiatkowski <mati.rewa@gmail.com>2026-02-10 08:14:41 +0100
committermjkwiatkowski <mati.rewa@gmail.com>2026-02-10 08:14:41 +0100
commit4d37bbed4a1f745c331ba996fc860d79e3e51e8f (patch)
tree69d4e530f1f5a5192f98bb422d46618afb291c23 /opendc-compute/opendc-compute-simulator/src/main
parent7a078fac132d10933e52edafd0f2527c50c9b1b6 (diff)
feat: added the entry point to experiment listenerHEADmaster
Diffstat (limited to 'opendc-compute/opendc-compute-simulator/src/main')
-rw-r--r--opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/scheduler/SmartScheduler.kt60
1 files changed, 60 insertions, 0 deletions
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<SchedulingRequest>): 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