From ea45406229c8349e44c88f4112fe25435b59e4e9 Mon Sep 17 00:00:00 2001 From: Dante Niewenhuis Date: Mon, 24 Mar 2025 14:07:01 +0100 Subject: Added embodied carbon to hosts (#326) --- .../src/main/kotlin/org/opendc/compute/topology/specs/BatterySpec.kt | 4 ++-- .../src/main/kotlin/org/opendc/compute/topology/specs/HostSpec.kt | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'opendc-compute/opendc-compute-topology/src') diff --git a/opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/specs/BatterySpec.kt b/opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/specs/BatterySpec.kt index b5fc98d5..4a0a5921 100644 --- a/opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/specs/BatterySpec.kt +++ b/opendc-compute/opendc-compute-topology/src/main/kotlin/org/opendc/compute/topology/specs/BatterySpec.kt @@ -28,6 +28,6 @@ public data class BatterySpec( val chargingSpeed: Double, val batteryPolicy: BatteryPolicyJSONSpec, val initialCharge: Double, - val embodiedCarbon: Double, - val expectedLifetime: Double, + val embodiedCarbon: Double = 1000.0, + val expectedLifetime: Double = 10.0, ) 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 0c614658..e4ec89e1 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 @@ -37,4 +37,6 @@ public data class HostSpec( val clusterName: String, val model: MachineModel, val cpuPowerModel: CpuPowerModel, + val embodiedCarbon: Double = 1000.0, + val expectedLifetime: Double = 5.0, ) -- cgit v1.2.3