Class WorkloadSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResolves the effective workload profile by merging the type's defaults with any user-supplied overrides.
-
Constructor Details
-
WorkloadSpec
public WorkloadSpec()
-
-
Method Details
-
resolvedProfile
Resolves the effective workload profile by merging the type's defaults with any user-supplied overrides.Every field resolves by the same precedence: a non-null field on
profileOverridewins, then the dedicated single-field override (latencySensitivity), then theWorkloadType's default profile. The boolean facility flags are unioned, because a stated requirement is never cancelled by a profile that simply does not mention it.latencySensitivityused to be consulted only when there was noprofileOverrideat all. Every single-field setter onMetroOptimizer.WorkloadBuilder-maxLatencyToleranceMs,requiresHighPowerDensity,requiresLiquidCooling- synthesizes aprofileOverride, so the common call shape.latencySensitivity(CRITICAL).maxLatencyToleranceMs(20)(and the equivalentdesign_optimize_placementpayload, which sets both from one workload object) silently discarded the stated sensitivity and fell back to the workload type's default. The merge branch now consults it, so the two levers compose instead of one deleting the other.A null
typeresolves as if it carried no default profile, rather than throwing:WorkloadSpecis a public builder-built value and the optimizer reads this method for every workload during validation.- Returns:
- the effective profile; its latency sensitivity is never null
-