diff options
| author | Dante Niewenhuis <d.niewenhuis@hotmail.com> | 2025-03-24 14:07:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-24 14:07:01 +0100 |
| commit | ea45406229c8349e44c88f4112fe25435b59e4e9 (patch) | |
| tree | ba701816711f7a5e30cef8d1d5ad990248d43a05 /opendc-compute/opendc-compute-topology | |
| parent | 24f89ae21df182bb91d92e4a60b4049829ac4d9e (diff) | |
Added embodied carbon to hosts (#326)
Diffstat (limited to 'opendc-compute/opendc-compute-topology')
2 files changed, 4 insertions, 2 deletions
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, ) |
