diff options
| author | Dante Niewenhuis <d.niewenhuis@hotmail.com> | 2025-09-25 21:16:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-25 21:16:16 +0200 |
| commit | 21ff6b03685a21977fa131f4c3b6cadb8b29ac9f (patch) | |
| tree | 110208d7bb2b519b5eb4a59107a087541acd16f9 /opendc-compute/opendc-compute-topology/src | |
| parent | e84bb565d16b59a4e4fd3d48e025853ca03ed18e (diff) | |
Updated FilterScheduler for performance (#371)
* Updated FilterScheduler for performance
Diffstat (limited to 'opendc-compute/opendc-compute-topology/src')
2 files changed, 2 insertions, 0 deletions
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, |
