struct AttributesThe attributes for the EnergyScenarioAnalysisTrait.
-
Cumulative estimated savings across simulated history. The period grows as more history accrues. Written by the batch pipeline and refreshed on each EnergyScenarioAnalysisEvent. Not populated until the structure has been simulated at least once.
Declaration
Swift
let cumulativeEstimatedSavings: Google.EnergyScenarioAnalysisTrait.EstimatedSavings? -
The latest energy tariff snapshots used for simulations, one per active fuel type.
Declaration
Swift
let latestEnergyTariffSnapshotsArray: [Google.EnergyScenarioAnalysisTrait.EnergyTariffSnapshot]? -
The latest HVAC system size snapshots used for simulations.
Declaration
Swift
let latestHvacSystemSizeSnapshotsArray: [Google.EnergyScenarioAnalysisTrait.HvacSystemSizeSnapshot]? -
The latest per-device settings changes (including comfort target overrides) used for simulating a counterfactual from which we derive energy savings.
Declaration
Swift
let latestEnergySavingsCounterfactualArray: [Google.EnergyScenarioAnalysisTrait.DeviceSettingsChanges]? -
Returns a Boolean value indicating whether two values are equal.
Equality is the inverse of inequality. For any values
aandb,a == bimplies thata != bisfalse.Declaration
Swift
static func == (lhs: Google.EnergyScenarioAnalysisTrait.Attributes, rhs: Google.EnergyScenarioAnalysisTrait.Attributes) -> BoolParameters
lhsA value to compare.
rhsAnother value to compare.
-
Hashes the essential components of this value by feeding them into the given hasher.
Implement this method to conform to the
Hashableprotocol. The components used for hashing must be the same as the components compared in your type’s==operator implementation. Callhasher.combine(_:)with each of these components.Important
In your implementation of
hash(into:), don’t callfinalize()on thehasherinstance provided, or replace it with a different instance. Doing so may become a compile-time error in the future.Declaration
Swift
func hash(into hasher: inout Hasher)