struct ScenarioResultResults of a scenario simulation.
-
Returns the field corresponding to the given field ID.
Declaration
Swift
static func structField(id: UInt32) -> (any Field)? -
The scenario that generated these results.
Declaration
Swift
let scenarioDefinition: Google.EnergyScenarioAnalysisTrait.Scenario? -
Fuel consumption estimates by fuel type.
Declaration
Swift
let totalFuelConsumptionByType: Google.MultiFuelQuantity? -
Estimated cost of energy consumed.
Declaration
Swift
let totalEnergyCost: Money? -
Runtimes aggregated over the simulation period.
Declaration
Swift
let runtimesArray: [Google.EnergyScenarioAnalysisTrait.AggregatedRuntime] -
Creates a new Struct instance using data read from the given
TraitDecoder.Throws
HomeError.parseErrorwhen parsing fails.Declaration
Swift
init(decoder: TraitDecoder) throwsParameters
decoderThe raw data representing this Struct.
-
Writes this Struct to the given
TraitEncoder. ThrowsHomeError.parseErrorif the data could not be encoded.Declaration
Swift
func encode(with encoder: TraitEncoder) throws