struct ScenarioA scenario to be simulated.
-
Returns the field corresponding to the given field ID.
Declaration
Swift
static func structField(id: UInt32) -> (any Field)? -
Start time of the simulation period, represented as midnight (00:00:00) UTC on the start date.
Declaration
Swift
let startTime: Date? -
Duration of the simulation in days.
Declaration
Swift
let durationDays: Int32? -
If this is a standard scenario, the type of scenario.
Declaration
Swift
let standardScenarioType: Google.EnergyScenarioAnalysisTrait.StandardScenarioType? -
Settings changes applied per device.
Declaration
Swift
let deviceSettingsChangesArray: [Google.EnergyScenarioAnalysisTrait.DeviceSettingsChanges] -
Source of weather data used (e.g., historical vs typical).
Declaration
Swift
let weatherModelInfo: Google.EnergyScenarioAnalysisTrait.ModelInfo? -
The Home/Away presence model used.
Declaration
Swift
let structureModeModelInfo: Google.EnergyScenarioAnalysisTrait.ModelInfo? -
The user comfort tolerance model used.
Declaration
Swift
let comfortModelInfo: Google.EnergyScenarioAnalysisTrait.ModelInfo? -
The model of the home’s thermal characteristics used.
Declaration
Swift
let thermalModelInfo: Google.EnergyScenarioAnalysisTrait.ModelInfo? -
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