From 21ff6b03685a21977fa131f4c3b6cadb8b29ac9f Mon Sep 17 00:00:00 2001 From: Dante Niewenhuis Date: Thu, 25 Sep 2025 21:16:16 +0200 Subject: Updated FilterScheduler for performance (#371) * Updated FilterScheduler for performance --- .../src/main/kotlin/org/opendc/compute/topology/TopologyFactories.kt | 1 + .../src/main/kotlin/org/opendc/compute/topology/specs/HostSpec.kt | 1 + 2 files changed, 2 insertions(+) (limited to 'opendc-compute/opendc-compute-topology/src') diff --git a/opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/TopologyFactories.kt b/opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/TopologyFactories.kt index fd66ca11..0a44d318 100644 --- a/opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/TopologyFactories.kt +++ b/opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/TopologyFactories.kt @@ -224,6 +224,7 @@ private fun HostJSONSpec.toHostSpec(clusterName: String): HostSpec { val hostSpec = HostSpec( createUniqueName(this.name, hostNames), + this.name, clusterName, machineModel, cpuPowerModel, diff --git a/opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/specs/HostSpec.kt b/opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/specs/HostSpec.kt index 8bfef464..42be2daf 100644 --- a/opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/specs/HostSpec.kt +++ b/opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/specs/HostSpec.kt @@ -35,6 +35,7 @@ import org.opendc.simulator.engine.graph.distributionPolicies.FlowDistributorFac */ public data class HostSpec( val name: String, + val type: String, val clusterName: String, val model: MachineModel, val cpuPowerModel: PowerModel, -- cgit v1.2.3