Record Class DesignObjectives
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.spec.DesignObjectives
- Record Components:
profile- a named weight profile to start from (for examplebalanced,latency_first,cost_first,redundancy_first,provider_coverage_first); may benullweights- explicit weights by objective id, applied on top ofprofile; nevernull
What "better" means for this design: a weight per objective id. Weights are relative (they are
normalised to sum to 1) and only objectives with a positive weight influence the recommended
option; every evaluated objective is still reported so trade-offs are visible.
Built-in objective ids are the constants on com.eqixiac.equinix.design.spi.Objective
(latency, cost, provider_coverage, resilience, compliance);
a plug-in objective is weighted by its own id (for example carbon).
-
Constructor Summary
ConstructorsConstructorDescriptionDesignObjectives(String profile, Map<String, Double> weights) Normalisesweightsto an immutable, non-null, insertion-ordered map. -
Method Summary
Modifier and TypeMethodDescriptionstatic DesignObjectivesbalanced()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.profile()Returns the value of theprofilerecord component.final StringtoString()Returns a string representation of this record class.weights()Returns the value of theweightsrecord component.
-
Constructor Details
-
DesignObjectives
-
-
Method Details
-
balanced
- Returns:
- the
balancedprofile with no overrides
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
profile
-
weights
-