diff --git a/src/descriptors/power_system_structs.json b/src/descriptors/power_system_structs.json index d987a18136..03bbf558ae 100644 --- a/src/descriptors/power_system_structs.json +++ b/src/descriptors/power_system_structs.json @@ -257,6 +257,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -296,6 +303,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -348,6 +362,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -661,6 +682,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -779,6 +807,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -915,6 +950,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -1030,6 +1072,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -1136,6 +1185,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -1221,6 +1277,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -1307,6 +1370,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -1484,6 +1554,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -1547,6 +1624,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -1624,6 +1708,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -1717,6 +1808,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -1870,6 +1968,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -1985,6 +2090,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -2742,6 +2854,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -3103,6 +3222,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -3251,6 +3377,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -3524,6 +3657,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -3644,6 +3784,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -3753,6 +3900,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -4128,6 +4282,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -4291,6 +4452,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -4468,6 +4636,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -4817,6 +4992,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -4921,6 +5103,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -5025,6 +5214,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", @@ -5140,6 +5336,13 @@ "data_type": "InfrastructureSystems.TimeSeriesContainer", "default": "InfrastructureSystems.TimeSeriesContainer()" }, + { + "name": "supplemental_attributes_container", + "comment": "container for supplemental attributes", + "null_value": "InfrastructureSystems.SupplementalAttributesContainer()", + "data_type": "InfrastructureSystems.SupplementalAttributesContainer", + "default": "InfrastructureSystems.SupplementalAttributesContainer()" + }, { "name": "internal", "comment": "power system internal reference, do not modify", diff --git a/src/models/generated/Area.jl b/src/models/generated/Area.jl index 1fd0a33e4a..6b2fba51f0 100644 --- a/src/models/generated/Area.jl +++ b/src/models/generated/Area.jl @@ -11,6 +11,7 @@ This file is auto-generated. Do not edit. peak_reactive_power::Float64 load_response::Float64 time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -22,6 +23,7 @@ A collection of buses for control purposes. - `peak_reactive_power::Float64` - `load_response::Float64` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct Area <: AggregationTopology @@ -31,16 +33,18 @@ mutable struct Area <: AggregationTopology load_response::Float64 "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function Area(name, peak_active_power=0.0, peak_reactive_power=0.0, load_response=0.0, time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - Area(name, peak_active_power, peak_reactive_power, load_response, time_series_container, InfrastructureSystemsInternal(), ) +function Area(name, peak_active_power=0.0, peak_reactive_power=0.0, load_response=0.0, time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + Area(name, peak_active_power, peak_reactive_power, load_response, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function Area(; name, peak_active_power=0.0, peak_reactive_power=0.0, load_response=0.0, time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - Area(name, peak_active_power, peak_reactive_power, load_response, time_series_container, internal, ) +function Area(; name, peak_active_power=0.0, peak_reactive_power=0.0, load_response=0.0, time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + Area(name, peak_active_power, peak_reactive_power, load_response, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -51,6 +55,7 @@ function Area(::Nothing) peak_reactive_power=0.0, load_response=0.0, time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -64,6 +69,8 @@ get_peak_reactive_power(value::Area) = get_value(value, value.peak_reactive_powe get_load_response(value::Area) = value.load_response """Get [`Area`](@ref) `time_series_container`.""" get_time_series_container(value::Area) = value.time_series_container +"""Get [`Area`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::Area) = value.supplemental_attributes_container """Get [`Area`](@ref) `internal`.""" get_internal(value::Area) = value.internal @@ -75,3 +82,5 @@ set_peak_reactive_power!(value::Area, val) = value.peak_reactive_power = set_val set_load_response!(value::Area, val) = value.load_response = val """Set [`Area`](@ref) `time_series_container`.""" set_time_series_container!(value::Area, val) = value.time_series_container = val +"""Set [`Area`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::Area, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/BatteryEMS.jl b/src/models/generated/BatteryEMS.jl index f37de2913d..24f370d2f1 100644 --- a/src/models/generated/BatteryEMS.jl +++ b/src/models/generated/BatteryEMS.jl @@ -27,6 +27,7 @@ This file is auto-generated. Do not edit. dynamic_injector::Union{Nothing, DynamicInjection} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -54,6 +55,7 @@ Data structure for a battery compatible with energy management formulations. - `dynamic_injector::Union{Nothing, DynamicInjection}`: corresponding dynamic injection device - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct BatteryEMS <: Storage @@ -87,16 +89,18 @@ mutable struct BatteryEMS <: Storage ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function BatteryEMS(name, available, bus, prime_mover_type, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost=Union{StorageManagementCost, MarketBidCost}, storage_target=0.0, cycle_limits=1e4, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - BatteryEMS(name, available, bus, prime_mover_type, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost, storage_target, cycle_limits, services, dynamic_injector, ext, time_series_container, InfrastructureSystemsInternal(), ) +function BatteryEMS(name, available, bus, prime_mover_type, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost=Union{StorageManagementCost, MarketBidCost}, storage_target=0.0, cycle_limits=1e4, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + BatteryEMS(name, available, bus, prime_mover_type, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost, storage_target, cycle_limits, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function BatteryEMS(; name, available, bus, prime_mover_type, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost=Union{StorageManagementCost, MarketBidCost}, storage_target=0.0, cycle_limits=1e4, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - BatteryEMS(name, available, bus, prime_mover_type, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost, storage_target, cycle_limits, services, dynamic_injector, ext, time_series_container, internal, ) +function BatteryEMS(; name, available, bus, prime_mover_type, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost=Union{StorageManagementCost, MarketBidCost}, storage_target=0.0, cycle_limits=1e4, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + BatteryEMS(name, available, bus, prime_mover_type, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost, storage_target, cycle_limits, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -123,6 +127,7 @@ function BatteryEMS(::Nothing) dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -168,6 +173,8 @@ get_dynamic_injector(value::BatteryEMS) = value.dynamic_injector get_ext(value::BatteryEMS) = value.ext """Get [`BatteryEMS`](@ref) `time_series_container`.""" get_time_series_container(value::BatteryEMS) = value.time_series_container +"""Get [`BatteryEMS`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::BatteryEMS) = value.supplemental_attributes_container """Get [`BatteryEMS`](@ref) `internal`.""" get_internal(value::BatteryEMS) = value.internal @@ -209,3 +216,5 @@ set_services!(value::BatteryEMS, val) = value.services = val set_ext!(value::BatteryEMS, val) = value.ext = val """Set [`BatteryEMS`](@ref) `time_series_container`.""" set_time_series_container!(value::BatteryEMS, val) = value.time_series_container = val +"""Set [`BatteryEMS`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::BatteryEMS, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/ExponentialLoad.jl b/src/models/generated/ExponentialLoad.jl index 06ad3a4ced..ccddd4e4d2 100644 --- a/src/models/generated/ExponentialLoad.jl +++ b/src/models/generated/ExponentialLoad.jl @@ -20,6 +20,7 @@ This file is auto-generated. Do not edit. dynamic_injector::Union{Nothing, DynamicInjection} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -40,6 +41,7 @@ Data structure for a static exponential load. - `dynamic_injector::Union{Nothing, DynamicInjection}`: corresponding dynamic injection device - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct ExponentialLoad <: StaticLoad @@ -63,16 +65,18 @@ mutable struct ExponentialLoad <: StaticLoad ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function ExponentialLoad(name, available, bus, active_power, reactive_power, active_power_coefficient, reactive_power_coefficient, base_power, max_active_power, max_reactive_power, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - ExponentialLoad(name, available, bus, active_power, reactive_power, active_power_coefficient, reactive_power_coefficient, base_power, max_active_power, max_reactive_power, services, dynamic_injector, ext, time_series_container, InfrastructureSystemsInternal(), ) +function ExponentialLoad(name, available, bus, active_power, reactive_power, active_power_coefficient, reactive_power_coefficient, base_power, max_active_power, max_reactive_power, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + ExponentialLoad(name, available, bus, active_power, reactive_power, active_power_coefficient, reactive_power_coefficient, base_power, max_active_power, max_reactive_power, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function ExponentialLoad(; name, available, bus, active_power, reactive_power, active_power_coefficient, reactive_power_coefficient, base_power, max_active_power, max_reactive_power, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - ExponentialLoad(name, available, bus, active_power, reactive_power, active_power_coefficient, reactive_power_coefficient, base_power, max_active_power, max_reactive_power, services, dynamic_injector, ext, time_series_container, internal, ) +function ExponentialLoad(; name, available, bus, active_power, reactive_power, active_power_coefficient, reactive_power_coefficient, base_power, max_active_power, max_reactive_power, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + ExponentialLoad(name, available, bus, active_power, reactive_power, active_power_coefficient, reactive_power_coefficient, base_power, max_active_power, max_reactive_power, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -92,6 +96,7 @@ function ExponentialLoad(::Nothing) dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -123,6 +128,8 @@ get_dynamic_injector(value::ExponentialLoad) = value.dynamic_injector get_ext(value::ExponentialLoad) = value.ext """Get [`ExponentialLoad`](@ref) `time_series_container`.""" get_time_series_container(value::ExponentialLoad) = value.time_series_container +"""Get [`ExponentialLoad`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::ExponentialLoad) = value.supplemental_attributes_container """Get [`ExponentialLoad`](@ref) `internal`.""" get_internal(value::ExponentialLoad) = value.internal @@ -150,3 +157,5 @@ set_services!(value::ExponentialLoad, val) = value.services = val set_ext!(value::ExponentialLoad, val) = value.ext = val """Set [`ExponentialLoad`](@ref) `time_series_container`.""" set_time_series_container!(value::ExponentialLoad, val) = value.time_series_container = val +"""Set [`ExponentialLoad`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::ExponentialLoad, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/FixedAdmittance.jl b/src/models/generated/FixedAdmittance.jl index fc345a50ae..a709b4ebcc 100644 --- a/src/models/generated/FixedAdmittance.jl +++ b/src/models/generated/FixedAdmittance.jl @@ -14,6 +14,7 @@ This file is auto-generated. Do not edit. services::Vector{Service} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -28,6 +29,7 @@ This file is auto-generated. Do not edit. - `services::Vector{Service}`: Services that this device contributes to - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct FixedAdmittance <: ElectricLoad @@ -43,16 +45,18 @@ mutable struct FixedAdmittance <: ElectricLoad ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function FixedAdmittance(name, available, bus, Y, dynamic_injector=nothing, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - FixedAdmittance(name, available, bus, Y, dynamic_injector, services, ext, time_series_container, InfrastructureSystemsInternal(), ) +function FixedAdmittance(name, available, bus, Y, dynamic_injector=nothing, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + FixedAdmittance(name, available, bus, Y, dynamic_injector, services, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function FixedAdmittance(; name, available, bus, Y, dynamic_injector=nothing, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - FixedAdmittance(name, available, bus, Y, dynamic_injector, services, ext, time_series_container, internal, ) +function FixedAdmittance(; name, available, bus, Y, dynamic_injector=nothing, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + FixedAdmittance(name, available, bus, Y, dynamic_injector, services, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -66,6 +70,7 @@ function FixedAdmittance(::Nothing) services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -85,6 +90,8 @@ get_services(value::FixedAdmittance) = value.services get_ext(value::FixedAdmittance) = value.ext """Get [`FixedAdmittance`](@ref) `time_series_container`.""" get_time_series_container(value::FixedAdmittance) = value.time_series_container +"""Get [`FixedAdmittance`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::FixedAdmittance) = value.supplemental_attributes_container """Get [`FixedAdmittance`](@ref) `internal`.""" get_internal(value::FixedAdmittance) = value.internal @@ -100,3 +107,5 @@ set_services!(value::FixedAdmittance, val) = value.services = val set_ext!(value::FixedAdmittance, val) = value.ext = val """Set [`FixedAdmittance`](@ref) `time_series_container`.""" set_time_series_container!(value::FixedAdmittance, val) = value.time_series_container = val +"""Set [`FixedAdmittance`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::FixedAdmittance, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/GenericBattery.jl b/src/models/generated/GenericBattery.jl index 0a095ed4e9..c75e560c4a 100644 --- a/src/models/generated/GenericBattery.jl +++ b/src/models/generated/GenericBattery.jl @@ -25,6 +25,7 @@ This file is auto-generated. Do not edit. dynamic_injector::Union{Nothing, DynamicInjection} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -50,6 +51,7 @@ Data structure for a generic battery - `dynamic_injector::Union{Nothing, DynamicInjection}`: corresponding dynamic injection device - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct GenericBattery <: Storage @@ -79,16 +81,18 @@ mutable struct GenericBattery <: Storage ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function GenericBattery(name, available, bus, prime_mover_type, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost=StorageManagementCost(), services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - GenericBattery(name, available, bus, prime_mover_type, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost, services, dynamic_injector, ext, time_series_container, InfrastructureSystemsInternal(), ) +function GenericBattery(name, available, bus, prime_mover_type, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost=StorageManagementCost(), services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + GenericBattery(name, available, bus, prime_mover_type, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function GenericBattery(; name, available, bus, prime_mover_type, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost=StorageManagementCost(), services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - GenericBattery(name, available, bus, prime_mover_type, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost, services, dynamic_injector, ext, time_series_container, internal, ) +function GenericBattery(; name, available, bus, prime_mover_type, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost=StorageManagementCost(), services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + GenericBattery(name, available, bus, prime_mover_type, initial_energy, state_of_charge_limits, rating, active_power, input_active_power_limits, output_active_power_limits, efficiency, reactive_power, reactive_power_limits, base_power, operation_cost, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -113,6 +117,7 @@ function GenericBattery(::Nothing) dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -154,6 +159,8 @@ get_dynamic_injector(value::GenericBattery) = value.dynamic_injector get_ext(value::GenericBattery) = value.ext """Get [`GenericBattery`](@ref) `time_series_container`.""" get_time_series_container(value::GenericBattery) = value.time_series_container +"""Get [`GenericBattery`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::GenericBattery) = value.supplemental_attributes_container """Get [`GenericBattery`](@ref) `internal`.""" get_internal(value::GenericBattery) = value.internal @@ -191,3 +198,5 @@ set_services!(value::GenericBattery, val) = value.services = val set_ext!(value::GenericBattery, val) = value.ext = val """Set [`GenericBattery`](@ref) `time_series_container`.""" set_time_series_container!(value::GenericBattery, val) = value.time_series_container = val +"""Set [`GenericBattery`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::GenericBattery, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/HydroDispatch.jl b/src/models/generated/HydroDispatch.jl index 8b0a9e8d7f..fc728bb8c0 100644 --- a/src/models/generated/HydroDispatch.jl +++ b/src/models/generated/HydroDispatch.jl @@ -23,6 +23,7 @@ This file is auto-generated. Do not edit. dynamic_injector::Union{Nothing, DynamicInjection} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -46,6 +47,7 @@ This file is auto-generated. Do not edit. - `dynamic_injector::Union{Nothing, DynamicInjection}`: corresponding dynamic injection device - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct HydroDispatch <: HydroGen @@ -75,16 +77,18 @@ mutable struct HydroDispatch <: HydroGen ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function HydroDispatch(name, available, bus, active_power, reactive_power, rating, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, base_power, operation_cost=TwoPartCost(LinearFunctionData(0.0), 0.0), services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - HydroDispatch(name, available, bus, active_power, reactive_power, rating, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, base_power, operation_cost, services, dynamic_injector, ext, time_series_container, InfrastructureSystemsInternal(), ) +function HydroDispatch(name, available, bus, active_power, reactive_power, rating, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, base_power, operation_cost=TwoPartCost(LinearFunctionData(0.0), 0.0), services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + HydroDispatch(name, available, bus, active_power, reactive_power, rating, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, base_power, operation_cost, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function HydroDispatch(; name, available, bus, active_power, reactive_power, rating, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, base_power, operation_cost=TwoPartCost(LinearFunctionData(0.0), 0.0), services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - HydroDispatch(name, available, bus, active_power, reactive_power, rating, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, base_power, operation_cost, services, dynamic_injector, ext, time_series_container, internal, ) +function HydroDispatch(; name, available, bus, active_power, reactive_power, rating, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, base_power, operation_cost=TwoPartCost(LinearFunctionData(0.0), 0.0), services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + HydroDispatch(name, available, bus, active_power, reactive_power, rating, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, base_power, operation_cost, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -107,6 +111,7 @@ function HydroDispatch(::Nothing) dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -144,6 +149,8 @@ get_dynamic_injector(value::HydroDispatch) = value.dynamic_injector get_ext(value::HydroDispatch) = value.ext """Get [`HydroDispatch`](@ref) `time_series_container`.""" get_time_series_container(value::HydroDispatch) = value.time_series_container +"""Get [`HydroDispatch`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::HydroDispatch) = value.supplemental_attributes_container """Get [`HydroDispatch`](@ref) `internal`.""" get_internal(value::HydroDispatch) = value.internal @@ -177,3 +184,5 @@ set_services!(value::HydroDispatch, val) = value.services = val set_ext!(value::HydroDispatch, val) = value.ext = val """Set [`HydroDispatch`](@ref) `time_series_container`.""" set_time_series_container!(value::HydroDispatch, val) = value.time_series_container = val +"""Set [`HydroDispatch`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::HydroDispatch, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/HydroEnergyReservoir.jl b/src/models/generated/HydroEnergyReservoir.jl index 137e5842e8..addf1f9779 100644 --- a/src/models/generated/HydroEnergyReservoir.jl +++ b/src/models/generated/HydroEnergyReservoir.jl @@ -29,6 +29,7 @@ This file is auto-generated. Do not edit. dynamic_injector::Union{Nothing, DynamicInjection} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -58,6 +59,7 @@ This file is auto-generated. Do not edit. - `dynamic_injector::Union{Nothing, DynamicInjection}`: corresponding dynamic injection device - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct HydroEnergyReservoir <: HydroGen @@ -98,16 +100,18 @@ mutable struct HydroEnergyReservoir <: HydroGen ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function HydroEnergyReservoir(name, available, bus, active_power, reactive_power, rating, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, base_power, storage_capacity, inflow, initial_storage, operation_cost=TwoPartCost(LinearFunctionData(0.0), 0.0), storage_target=1.0, conversion_factor=1.0, time_at_status=INFINITE_TIME, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - HydroEnergyReservoir(name, available, bus, active_power, reactive_power, rating, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, base_power, storage_capacity, inflow, initial_storage, operation_cost, storage_target, conversion_factor, time_at_status, services, dynamic_injector, ext, time_series_container, InfrastructureSystemsInternal(), ) +function HydroEnergyReservoir(name, available, bus, active_power, reactive_power, rating, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, base_power, storage_capacity, inflow, initial_storage, operation_cost=TwoPartCost(LinearFunctionData(0.0), 0.0), storage_target=1.0, conversion_factor=1.0, time_at_status=INFINITE_TIME, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + HydroEnergyReservoir(name, available, bus, active_power, reactive_power, rating, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, base_power, storage_capacity, inflow, initial_storage, operation_cost, storage_target, conversion_factor, time_at_status, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function HydroEnergyReservoir(; name, available, bus, active_power, reactive_power, rating, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, base_power, storage_capacity, inflow, initial_storage, operation_cost=TwoPartCost(LinearFunctionData(0.0), 0.0), storage_target=1.0, conversion_factor=1.0, time_at_status=INFINITE_TIME, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - HydroEnergyReservoir(name, available, bus, active_power, reactive_power, rating, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, base_power, storage_capacity, inflow, initial_storage, operation_cost, storage_target, conversion_factor, time_at_status, services, dynamic_injector, ext, time_series_container, internal, ) +function HydroEnergyReservoir(; name, available, bus, active_power, reactive_power, rating, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, base_power, storage_capacity, inflow, initial_storage, operation_cost=TwoPartCost(LinearFunctionData(0.0), 0.0), storage_target=1.0, conversion_factor=1.0, time_at_status=INFINITE_TIME, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + HydroEnergyReservoir(name, available, bus, active_power, reactive_power, rating, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, base_power, storage_capacity, inflow, initial_storage, operation_cost, storage_target, conversion_factor, time_at_status, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -136,6 +140,7 @@ function HydroEnergyReservoir(::Nothing) dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -185,6 +190,8 @@ get_dynamic_injector(value::HydroEnergyReservoir) = value.dynamic_injector get_ext(value::HydroEnergyReservoir) = value.ext """Get [`HydroEnergyReservoir`](@ref) `time_series_container`.""" get_time_series_container(value::HydroEnergyReservoir) = value.time_series_container +"""Get [`HydroEnergyReservoir`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::HydroEnergyReservoir) = value.supplemental_attributes_container """Get [`HydroEnergyReservoir`](@ref) `internal`.""" get_internal(value::HydroEnergyReservoir) = value.internal @@ -230,3 +237,5 @@ set_services!(value::HydroEnergyReservoir, val) = value.services = val set_ext!(value::HydroEnergyReservoir, val) = value.ext = val """Set [`HydroEnergyReservoir`](@ref) `time_series_container`.""" set_time_series_container!(value::HydroEnergyReservoir, val) = value.time_series_container = val +"""Set [`HydroEnergyReservoir`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::HydroEnergyReservoir, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/HydroPumpedStorage.jl b/src/models/generated/HydroPumpedStorage.jl index d8f64c2a24..29fae571b4 100644 --- a/src/models/generated/HydroPumpedStorage.jl +++ b/src/models/generated/HydroPumpedStorage.jl @@ -36,6 +36,7 @@ This file is auto-generated. Do not edit. dynamic_injector::Union{Nothing, DynamicInjection} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -72,6 +73,7 @@ This file is auto-generated. Do not edit. - `dynamic_injector::Union{Nothing, DynamicInjection}`: corresponding dynamic injection device - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct HydroPumpedStorage <: HydroGen @@ -124,16 +126,18 @@ mutable struct HydroPumpedStorage <: HydroGen ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function HydroPumpedStorage(name, available, bus, active_power, reactive_power, rating, base_power, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, rating_pump, active_power_limits_pump, reactive_power_limits_pump, ramp_limits_pump, time_limits_pump, storage_capacity, inflow, outflow, initial_storage, storage_target=(up=1.0, down=1.0), operation_cost=TwoPartCost(LinearFunctionData(0.0), 0.0), pump_efficiency=1.0, conversion_factor=1.0, time_at_status=INFINITE_TIME, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - HydroPumpedStorage(name, available, bus, active_power, reactive_power, rating, base_power, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, rating_pump, active_power_limits_pump, reactive_power_limits_pump, ramp_limits_pump, time_limits_pump, storage_capacity, inflow, outflow, initial_storage, storage_target, operation_cost, pump_efficiency, conversion_factor, time_at_status, services, dynamic_injector, ext, time_series_container, InfrastructureSystemsInternal(), ) +function HydroPumpedStorage(name, available, bus, active_power, reactive_power, rating, base_power, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, rating_pump, active_power_limits_pump, reactive_power_limits_pump, ramp_limits_pump, time_limits_pump, storage_capacity, inflow, outflow, initial_storage, storage_target=(up=1.0, down=1.0), operation_cost=TwoPartCost(LinearFunctionData(0.0), 0.0), pump_efficiency=1.0, conversion_factor=1.0, time_at_status=INFINITE_TIME, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + HydroPumpedStorage(name, available, bus, active_power, reactive_power, rating, base_power, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, rating_pump, active_power_limits_pump, reactive_power_limits_pump, ramp_limits_pump, time_limits_pump, storage_capacity, inflow, outflow, initial_storage, storage_target, operation_cost, pump_efficiency, conversion_factor, time_at_status, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function HydroPumpedStorage(; name, available, bus, active_power, reactive_power, rating, base_power, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, rating_pump, active_power_limits_pump, reactive_power_limits_pump, ramp_limits_pump, time_limits_pump, storage_capacity, inflow, outflow, initial_storage, storage_target=(up=1.0, down=1.0), operation_cost=TwoPartCost(LinearFunctionData(0.0), 0.0), pump_efficiency=1.0, conversion_factor=1.0, time_at_status=INFINITE_TIME, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - HydroPumpedStorage(name, available, bus, active_power, reactive_power, rating, base_power, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, rating_pump, active_power_limits_pump, reactive_power_limits_pump, ramp_limits_pump, time_limits_pump, storage_capacity, inflow, outflow, initial_storage, storage_target, operation_cost, pump_efficiency, conversion_factor, time_at_status, services, dynamic_injector, ext, time_series_container, internal, ) +function HydroPumpedStorage(; name, available, bus, active_power, reactive_power, rating, base_power, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, rating_pump, active_power_limits_pump, reactive_power_limits_pump, ramp_limits_pump, time_limits_pump, storage_capacity, inflow, outflow, initial_storage, storage_target=(up=1.0, down=1.0), operation_cost=TwoPartCost(LinearFunctionData(0.0), 0.0), pump_efficiency=1.0, conversion_factor=1.0, time_at_status=INFINITE_TIME, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + HydroPumpedStorage(name, available, bus, active_power, reactive_power, rating, base_power, prime_mover_type, active_power_limits, reactive_power_limits, ramp_limits, time_limits, rating_pump, active_power_limits_pump, reactive_power_limits_pump, ramp_limits_pump, time_limits_pump, storage_capacity, inflow, outflow, initial_storage, storage_target, operation_cost, pump_efficiency, conversion_factor, time_at_status, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -169,6 +173,7 @@ function HydroPumpedStorage(::Nothing) dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -232,6 +237,8 @@ get_dynamic_injector(value::HydroPumpedStorage) = value.dynamic_injector get_ext(value::HydroPumpedStorage) = value.ext """Get [`HydroPumpedStorage`](@ref) `time_series_container`.""" get_time_series_container(value::HydroPumpedStorage) = value.time_series_container +"""Get [`HydroPumpedStorage`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::HydroPumpedStorage) = value.supplemental_attributes_container """Get [`HydroPumpedStorage`](@ref) `internal`.""" get_internal(value::HydroPumpedStorage) = value.internal @@ -291,3 +298,5 @@ set_services!(value::HydroPumpedStorage, val) = value.services = val set_ext!(value::HydroPumpedStorage, val) = value.ext = val """Set [`HydroPumpedStorage`](@ref) `time_series_container`.""" set_time_series_container!(value::HydroPumpedStorage, val) = value.time_series_container = val +"""Set [`HydroPumpedStorage`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::HydroPumpedStorage, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/InterconnectingConverter.jl b/src/models/generated/InterconnectingConverter.jl index 8f54312309..d850ecd3c3 100644 --- a/src/models/generated/InterconnectingConverter.jl +++ b/src/models/generated/InterconnectingConverter.jl @@ -20,6 +20,7 @@ This file is auto-generated. Do not edit. dynamic_injector::Union{Nothing, DynamicInjection} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -40,6 +41,7 @@ Interconnecting Power Converter (IPC) for transforming power from an ACBus to a - `dynamic_injector::Union{Nothing, DynamicInjection}`: corresponding dynamic injection device - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct InterconnectingConverter <: StaticInjection @@ -65,16 +67,18 @@ mutable struct InterconnectingConverter <: StaticInjection ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function InterconnectingConverter(name, available, bus, dc_bus, active_power, rating, active_power_limits, base_power, operation_cost=TwoPartCost(LinearFunctionData(0.0), 0.0), efficiency=1.0, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - InterconnectingConverter(name, available, bus, dc_bus, active_power, rating, active_power_limits, base_power, operation_cost, efficiency, services, dynamic_injector, ext, time_series_container, InfrastructureSystemsInternal(), ) +function InterconnectingConverter(name, available, bus, dc_bus, active_power, rating, active_power_limits, base_power, operation_cost=TwoPartCost(LinearFunctionData(0.0), 0.0), efficiency=1.0, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + InterconnectingConverter(name, available, bus, dc_bus, active_power, rating, active_power_limits, base_power, operation_cost, efficiency, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function InterconnectingConverter(; name, available, bus, dc_bus, active_power, rating, active_power_limits, base_power, operation_cost=TwoPartCost(LinearFunctionData(0.0), 0.0), efficiency=1.0, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - InterconnectingConverter(name, available, bus, dc_bus, active_power, rating, active_power_limits, base_power, operation_cost, efficiency, services, dynamic_injector, ext, time_series_container, internal, ) +function InterconnectingConverter(; name, available, bus, dc_bus, active_power, rating, active_power_limits, base_power, operation_cost=TwoPartCost(LinearFunctionData(0.0), 0.0), efficiency=1.0, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + InterconnectingConverter(name, available, bus, dc_bus, active_power, rating, active_power_limits, base_power, operation_cost, efficiency, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -94,6 +98,7 @@ function InterconnectingConverter(::Nothing) dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -125,6 +130,8 @@ get_dynamic_injector(value::InterconnectingConverter) = value.dynamic_injector get_ext(value::InterconnectingConverter) = value.ext """Get [`InterconnectingConverter`](@ref) `time_series_container`.""" get_time_series_container(value::InterconnectingConverter) = value.time_series_container +"""Get [`InterconnectingConverter`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::InterconnectingConverter) = value.supplemental_attributes_container """Get [`InterconnectingConverter`](@ref) `internal`.""" get_internal(value::InterconnectingConverter) = value.internal @@ -152,3 +159,5 @@ set_services!(value::InterconnectingConverter, val) = value.services = val set_ext!(value::InterconnectingConverter, val) = value.ext = val """Set [`InterconnectingConverter`](@ref) `time_series_container`.""" set_time_series_container!(value::InterconnectingConverter, val) = value.time_series_container = val +"""Set [`InterconnectingConverter`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::InterconnectingConverter, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/InterruptiblePowerLoad.jl b/src/models/generated/InterruptiblePowerLoad.jl index d7cbf20393..ae477d9db8 100644 --- a/src/models/generated/InterruptiblePowerLoad.jl +++ b/src/models/generated/InterruptiblePowerLoad.jl @@ -19,6 +19,7 @@ This file is auto-generated. Do not edit. dynamic_injector::Union{Nothing, DynamicInjection} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -38,6 +39,7 @@ This file is auto-generated. Do not edit. - `dynamic_injector::Union{Nothing, DynamicInjection}`: corresponding dynamic injection device - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct InterruptiblePowerLoad <: ControllableLoad @@ -59,16 +61,18 @@ mutable struct InterruptiblePowerLoad <: ControllableLoad ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function InterruptiblePowerLoad(name, available, bus, active_power, reactive_power, max_active_power, max_reactive_power, base_power, operation_cost, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - InterruptiblePowerLoad(name, available, bus, active_power, reactive_power, max_active_power, max_reactive_power, base_power, operation_cost, services, dynamic_injector, ext, time_series_container, InfrastructureSystemsInternal(), ) +function InterruptiblePowerLoad(name, available, bus, active_power, reactive_power, max_active_power, max_reactive_power, base_power, operation_cost, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + InterruptiblePowerLoad(name, available, bus, active_power, reactive_power, max_active_power, max_reactive_power, base_power, operation_cost, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function InterruptiblePowerLoad(; name, available, bus, active_power, reactive_power, max_active_power, max_reactive_power, base_power, operation_cost, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - InterruptiblePowerLoad(name, available, bus, active_power, reactive_power, max_active_power, max_reactive_power, base_power, operation_cost, services, dynamic_injector, ext, time_series_container, internal, ) +function InterruptiblePowerLoad(; name, available, bus, active_power, reactive_power, max_active_power, max_reactive_power, base_power, operation_cost, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + InterruptiblePowerLoad(name, available, bus, active_power, reactive_power, max_active_power, max_reactive_power, base_power, operation_cost, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -87,6 +91,7 @@ function InterruptiblePowerLoad(::Nothing) dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -116,6 +121,8 @@ get_dynamic_injector(value::InterruptiblePowerLoad) = value.dynamic_injector get_ext(value::InterruptiblePowerLoad) = value.ext """Get [`InterruptiblePowerLoad`](@ref) `time_series_container`.""" get_time_series_container(value::InterruptiblePowerLoad) = value.time_series_container +"""Get [`InterruptiblePowerLoad`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::InterruptiblePowerLoad) = value.supplemental_attributes_container """Get [`InterruptiblePowerLoad`](@ref) `internal`.""" get_internal(value::InterruptiblePowerLoad) = value.internal @@ -141,3 +148,5 @@ set_services!(value::InterruptiblePowerLoad, val) = value.services = val set_ext!(value::InterruptiblePowerLoad, val) = value.ext = val """Set [`InterruptiblePowerLoad`](@ref) `time_series_container`.""" set_time_series_container!(value::InterruptiblePowerLoad, val) = value.time_series_container = val +"""Set [`InterruptiblePowerLoad`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::InterruptiblePowerLoad, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/Line.jl b/src/models/generated/Line.jl index f945238646..30f00db137 100644 --- a/src/models/generated/Line.jl +++ b/src/models/generated/Line.jl @@ -19,6 +19,7 @@ This file is auto-generated. Do not edit. services::Vector{Service} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -38,6 +39,7 @@ This file is auto-generated. Do not edit. - `services::Vector{Service}`: Services that this device contributes to - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct Line <: ACBranch @@ -59,16 +61,18 @@ mutable struct Line <: ACBranch ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function Line(name, available, active_power_flow, reactive_power_flow, arc, r, x, b, rate, angle_limits, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - Line(name, available, active_power_flow, reactive_power_flow, arc, r, x, b, rate, angle_limits, services, ext, time_series_container, InfrastructureSystemsInternal(), ) +function Line(name, available, active_power_flow, reactive_power_flow, arc, r, x, b, rate, angle_limits, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + Line(name, available, active_power_flow, reactive_power_flow, arc, r, x, b, rate, angle_limits, services, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function Line(; name, available, active_power_flow, reactive_power_flow, arc, r, x, b, rate, angle_limits, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - Line(name, available, active_power_flow, reactive_power_flow, arc, r, x, b, rate, angle_limits, services, ext, time_series_container, internal, ) +function Line(; name, available, active_power_flow, reactive_power_flow, arc, r, x, b, rate, angle_limits, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + Line(name, available, active_power_flow, reactive_power_flow, arc, r, x, b, rate, angle_limits, services, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -87,6 +91,7 @@ function Line(::Nothing) services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -116,6 +121,8 @@ get_services(value::Line) = value.services get_ext(value::Line) = value.ext """Get [`Line`](@ref) `time_series_container`.""" get_time_series_container(value::Line) = value.time_series_container +"""Get [`Line`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::Line) = value.supplemental_attributes_container """Get [`Line`](@ref) `internal`.""" get_internal(value::Line) = value.internal @@ -143,3 +150,5 @@ set_services!(value::Line, val) = value.services = val set_ext!(value::Line, val) = value.ext = val """Set [`Line`](@ref) `time_series_container`.""" set_time_series_container!(value::Line, val) = value.time_series_container = val +"""Set [`Line`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::Line, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/LoadZone.jl b/src/models/generated/LoadZone.jl index 730224d5ce..6dbc24f358 100644 --- a/src/models/generated/LoadZone.jl +++ b/src/models/generated/LoadZone.jl @@ -10,6 +10,7 @@ This file is auto-generated. Do not edit. peak_active_power::Float64 peak_reactive_power::Float64 time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -20,6 +21,7 @@ A collection of buses for electricity price analysis. - `peak_active_power::Float64` - `peak_reactive_power::Float64` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct LoadZone <: AggregationTopology @@ -28,16 +30,18 @@ mutable struct LoadZone <: AggregationTopology peak_reactive_power::Float64 "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function LoadZone(name, peak_active_power, peak_reactive_power, time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - LoadZone(name, peak_active_power, peak_reactive_power, time_series_container, InfrastructureSystemsInternal(), ) +function LoadZone(name, peak_active_power, peak_reactive_power, time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + LoadZone(name, peak_active_power, peak_reactive_power, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function LoadZone(; name, peak_active_power, peak_reactive_power, time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - LoadZone(name, peak_active_power, peak_reactive_power, time_series_container, internal, ) +function LoadZone(; name, peak_active_power, peak_reactive_power, time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + LoadZone(name, peak_active_power, peak_reactive_power, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -47,6 +51,7 @@ function LoadZone(::Nothing) peak_active_power=0.0, peak_reactive_power=0.0, time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -58,6 +63,8 @@ get_peak_active_power(value::LoadZone) = get_value(value, value.peak_active_powe get_peak_reactive_power(value::LoadZone) = get_value(value, value.peak_reactive_power) """Get [`LoadZone`](@ref) `time_series_container`.""" get_time_series_container(value::LoadZone) = value.time_series_container +"""Get [`LoadZone`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::LoadZone) = value.supplemental_attributes_container """Get [`LoadZone`](@ref) `internal`.""" get_internal(value::LoadZone) = value.internal @@ -67,3 +74,5 @@ set_peak_active_power!(value::LoadZone, val) = value.peak_active_power = set_val set_peak_reactive_power!(value::LoadZone, val) = value.peak_reactive_power = set_value(value, val) """Set [`LoadZone`](@ref) `time_series_container`.""" set_time_series_container!(value::LoadZone, val) = value.time_series_container = val +"""Set [`LoadZone`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::LoadZone, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/MonitoredLine.jl b/src/models/generated/MonitoredLine.jl index 0d7d30d943..9fdd181f32 100644 --- a/src/models/generated/MonitoredLine.jl +++ b/src/models/generated/MonitoredLine.jl @@ -20,6 +20,7 @@ This file is auto-generated. Do not edit. services::Vector{Service} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -40,6 +41,7 @@ This file is auto-generated. Do not edit. - `services::Vector{Service}`: Services that this device contributes to - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct MonitoredLine <: ACBranch @@ -64,16 +66,18 @@ mutable struct MonitoredLine <: ACBranch ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function MonitoredLine(name, available, active_power_flow, reactive_power_flow, arc, r, x, b, flow_limits, rate, angle_limits, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - MonitoredLine(name, available, active_power_flow, reactive_power_flow, arc, r, x, b, flow_limits, rate, angle_limits, services, ext, time_series_container, InfrastructureSystemsInternal(), ) +function MonitoredLine(name, available, active_power_flow, reactive_power_flow, arc, r, x, b, flow_limits, rate, angle_limits, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + MonitoredLine(name, available, active_power_flow, reactive_power_flow, arc, r, x, b, flow_limits, rate, angle_limits, services, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function MonitoredLine(; name, available, active_power_flow, reactive_power_flow, arc, r, x, b, flow_limits, rate, angle_limits, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - MonitoredLine(name, available, active_power_flow, reactive_power_flow, arc, r, x, b, flow_limits, rate, angle_limits, services, ext, time_series_container, internal, ) +function MonitoredLine(; name, available, active_power_flow, reactive_power_flow, arc, r, x, b, flow_limits, rate, angle_limits, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + MonitoredLine(name, available, active_power_flow, reactive_power_flow, arc, r, x, b, flow_limits, rate, angle_limits, services, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -93,6 +97,7 @@ function MonitoredLine(::Nothing) services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -124,6 +129,8 @@ get_services(value::MonitoredLine) = value.services get_ext(value::MonitoredLine) = value.ext """Get [`MonitoredLine`](@ref) `time_series_container`.""" get_time_series_container(value::MonitoredLine) = value.time_series_container +"""Get [`MonitoredLine`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::MonitoredLine) = value.supplemental_attributes_container """Get [`MonitoredLine`](@ref) `internal`.""" get_internal(value::MonitoredLine) = value.internal @@ -153,3 +160,5 @@ set_services!(value::MonitoredLine, val) = value.services = val set_ext!(value::MonitoredLine, val) = value.ext = val """Set [`MonitoredLine`](@ref) `time_series_container`.""" set_time_series_container!(value::MonitoredLine, val) = value.time_series_container = val +"""Set [`MonitoredLine`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::MonitoredLine, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/PhaseShiftingTransformer.jl b/src/models/generated/PhaseShiftingTransformer.jl index 0cd3017b36..23ac764a45 100644 --- a/src/models/generated/PhaseShiftingTransformer.jl +++ b/src/models/generated/PhaseShiftingTransformer.jl @@ -21,6 +21,7 @@ This file is auto-generated. Do not edit. services::Vector{Service} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -42,6 +43,7 @@ This file is auto-generated. Do not edit. - `services::Vector{Service}`: Services that this device contributes to - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct PhaseShiftingTransformer <: ACBranch @@ -64,16 +66,18 @@ mutable struct PhaseShiftingTransformer <: ACBranch ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function PhaseShiftingTransformer(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, tap, α, rate, phase_angle_limits=(min=-1.571, max=1.571), services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - PhaseShiftingTransformer(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, tap, α, rate, phase_angle_limits, services, ext, time_series_container, InfrastructureSystemsInternal(), ) +function PhaseShiftingTransformer(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, tap, α, rate, phase_angle_limits=(min=-1.571, max=1.571), services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + PhaseShiftingTransformer(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, tap, α, rate, phase_angle_limits, services, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function PhaseShiftingTransformer(; name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, tap, α, rate, phase_angle_limits=(min=-1.571, max=1.571), services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - PhaseShiftingTransformer(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, tap, α, rate, phase_angle_limits, services, ext, time_series_container, internal, ) +function PhaseShiftingTransformer(; name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, tap, α, rate, phase_angle_limits=(min=-1.571, max=1.571), services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + PhaseShiftingTransformer(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, tap, α, rate, phase_angle_limits, services, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -94,6 +98,7 @@ function PhaseShiftingTransformer(::Nothing) services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -127,6 +132,8 @@ get_services(value::PhaseShiftingTransformer) = value.services get_ext(value::PhaseShiftingTransformer) = value.ext """Get [`PhaseShiftingTransformer`](@ref) `time_series_container`.""" get_time_series_container(value::PhaseShiftingTransformer) = value.time_series_container +"""Get [`PhaseShiftingTransformer`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::PhaseShiftingTransformer) = value.supplemental_attributes_container """Get [`PhaseShiftingTransformer`](@ref) `internal`.""" get_internal(value::PhaseShiftingTransformer) = value.internal @@ -158,3 +165,5 @@ set_services!(value::PhaseShiftingTransformer, val) = value.services = val set_ext!(value::PhaseShiftingTransformer, val) = value.ext = val """Set [`PhaseShiftingTransformer`](@ref) `time_series_container`.""" set_time_series_container!(value::PhaseShiftingTransformer, val) = value.time_series_container = val +"""Set [`PhaseShiftingTransformer`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::PhaseShiftingTransformer, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/PowerLoad.jl b/src/models/generated/PowerLoad.jl index 25412d1159..7a202e270a 100644 --- a/src/models/generated/PowerLoad.jl +++ b/src/models/generated/PowerLoad.jl @@ -18,6 +18,7 @@ This file is auto-generated. Do not edit. dynamic_injector::Union{Nothing, DynamicInjection} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -36,6 +37,7 @@ Data structure for a static power load. - `dynamic_injector::Union{Nothing, DynamicInjection}`: corresponding dynamic injection device - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct PowerLoad <: StaticLoad @@ -55,16 +57,18 @@ mutable struct PowerLoad <: StaticLoad ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function PowerLoad(name, available, bus, active_power, reactive_power, base_power, max_active_power, max_reactive_power, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - PowerLoad(name, available, bus, active_power, reactive_power, base_power, max_active_power, max_reactive_power, services, dynamic_injector, ext, time_series_container, InfrastructureSystemsInternal(), ) +function PowerLoad(name, available, bus, active_power, reactive_power, base_power, max_active_power, max_reactive_power, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + PowerLoad(name, available, bus, active_power, reactive_power, base_power, max_active_power, max_reactive_power, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function PowerLoad(; name, available, bus, active_power, reactive_power, base_power, max_active_power, max_reactive_power, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - PowerLoad(name, available, bus, active_power, reactive_power, base_power, max_active_power, max_reactive_power, services, dynamic_injector, ext, time_series_container, internal, ) +function PowerLoad(; name, available, bus, active_power, reactive_power, base_power, max_active_power, max_reactive_power, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + PowerLoad(name, available, bus, active_power, reactive_power, base_power, max_active_power, max_reactive_power, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -82,6 +86,7 @@ function PowerLoad(::Nothing) dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -109,6 +114,8 @@ get_dynamic_injector(value::PowerLoad) = value.dynamic_injector get_ext(value::PowerLoad) = value.ext """Get [`PowerLoad`](@ref) `time_series_container`.""" get_time_series_container(value::PowerLoad) = value.time_series_container +"""Get [`PowerLoad`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::PowerLoad) = value.supplemental_attributes_container """Get [`PowerLoad`](@ref) `internal`.""" get_internal(value::PowerLoad) = value.internal @@ -132,3 +139,5 @@ set_services!(value::PowerLoad, val) = value.services = val set_ext!(value::PowerLoad, val) = value.ext = val """Set [`PowerLoad`](@ref) `time_series_container`.""" set_time_series_container!(value::PowerLoad, val) = value.time_series_container = val +"""Set [`PowerLoad`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::PowerLoad, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/RenewableDispatch.jl b/src/models/generated/RenewableDispatch.jl index 3871442745..48be24be3d 100644 --- a/src/models/generated/RenewableDispatch.jl +++ b/src/models/generated/RenewableDispatch.jl @@ -21,6 +21,7 @@ This file is auto-generated. Do not edit. dynamic_injector::Union{Nothing, DynamicInjection} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -42,6 +43,7 @@ This file is auto-generated. Do not edit. - `dynamic_injector::Union{Nothing, DynamicInjection}`: corresponding dynamic injection device - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct RenewableDispatch <: RenewableGen @@ -67,16 +69,18 @@ mutable struct RenewableDispatch <: RenewableGen ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function RenewableDispatch(name, available, bus, active_power, reactive_power, rating, prime_mover_type, reactive_power_limits, power_factor, operation_cost, base_power, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - RenewableDispatch(name, available, bus, active_power, reactive_power, rating, prime_mover_type, reactive_power_limits, power_factor, operation_cost, base_power, services, dynamic_injector, ext, time_series_container, InfrastructureSystemsInternal(), ) +function RenewableDispatch(name, available, bus, active_power, reactive_power, rating, prime_mover_type, reactive_power_limits, power_factor, operation_cost, base_power, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + RenewableDispatch(name, available, bus, active_power, reactive_power, rating, prime_mover_type, reactive_power_limits, power_factor, operation_cost, base_power, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function RenewableDispatch(; name, available, bus, active_power, reactive_power, rating, prime_mover_type, reactive_power_limits, power_factor, operation_cost, base_power, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - RenewableDispatch(name, available, bus, active_power, reactive_power, rating, prime_mover_type, reactive_power_limits, power_factor, operation_cost, base_power, services, dynamic_injector, ext, time_series_container, internal, ) +function RenewableDispatch(; name, available, bus, active_power, reactive_power, rating, prime_mover_type, reactive_power_limits, power_factor, operation_cost, base_power, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + RenewableDispatch(name, available, bus, active_power, reactive_power, rating, prime_mover_type, reactive_power_limits, power_factor, operation_cost, base_power, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -97,6 +101,7 @@ function RenewableDispatch(::Nothing) dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -130,6 +135,8 @@ get_dynamic_injector(value::RenewableDispatch) = value.dynamic_injector get_ext(value::RenewableDispatch) = value.ext """Get [`RenewableDispatch`](@ref) `time_series_container`.""" get_time_series_container(value::RenewableDispatch) = value.time_series_container +"""Get [`RenewableDispatch`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::RenewableDispatch) = value.supplemental_attributes_container """Get [`RenewableDispatch`](@ref) `internal`.""" get_internal(value::RenewableDispatch) = value.internal @@ -159,3 +166,5 @@ set_services!(value::RenewableDispatch, val) = value.services = val set_ext!(value::RenewableDispatch, val) = value.ext = val """Set [`RenewableDispatch`](@ref) `time_series_container`.""" set_time_series_container!(value::RenewableDispatch, val) = value.time_series_container = val +"""Set [`RenewableDispatch`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::RenewableDispatch, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/RenewableFix.jl b/src/models/generated/RenewableFix.jl index ac5e1d7946..8a2bf8c0ad 100644 --- a/src/models/generated/RenewableFix.jl +++ b/src/models/generated/RenewableFix.jl @@ -19,6 +19,7 @@ This file is auto-generated. Do not edit. dynamic_injector::Union{Nothing, DynamicInjection} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -38,6 +39,7 @@ Data Structure for fixed renewable generation technologies. - `dynamic_injector::Union{Nothing, DynamicInjection}`: corresponding dynamic injection device - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct RenewableFix <: RenewableGen @@ -60,16 +62,18 @@ mutable struct RenewableFix <: RenewableGen ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function RenewableFix(name, available, bus, active_power, reactive_power, rating, prime_mover_type, power_factor, base_power, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - RenewableFix(name, available, bus, active_power, reactive_power, rating, prime_mover_type, power_factor, base_power, services, dynamic_injector, ext, time_series_container, InfrastructureSystemsInternal(), ) +function RenewableFix(name, available, bus, active_power, reactive_power, rating, prime_mover_type, power_factor, base_power, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + RenewableFix(name, available, bus, active_power, reactive_power, rating, prime_mover_type, power_factor, base_power, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function RenewableFix(; name, available, bus, active_power, reactive_power, rating, prime_mover_type, power_factor, base_power, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - RenewableFix(name, available, bus, active_power, reactive_power, rating, prime_mover_type, power_factor, base_power, services, dynamic_injector, ext, time_series_container, internal, ) +function RenewableFix(; name, available, bus, active_power, reactive_power, rating, prime_mover_type, power_factor, base_power, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + RenewableFix(name, available, bus, active_power, reactive_power, rating, prime_mover_type, power_factor, base_power, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -88,6 +92,7 @@ function RenewableFix(::Nothing) dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -117,6 +122,8 @@ get_dynamic_injector(value::RenewableFix) = value.dynamic_injector get_ext(value::RenewableFix) = value.ext """Get [`RenewableFix`](@ref) `time_series_container`.""" get_time_series_container(value::RenewableFix) = value.time_series_container +"""Get [`RenewableFix`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::RenewableFix) = value.supplemental_attributes_container """Get [`RenewableFix`](@ref) `internal`.""" get_internal(value::RenewableFix) = value.internal @@ -142,3 +149,5 @@ set_services!(value::RenewableFix, val) = value.services = val set_ext!(value::RenewableFix, val) = value.ext = val """Set [`RenewableFix`](@ref) `time_series_container`.""" set_time_series_container!(value::RenewableFix, val) = value.time_series_container = val +"""Set [`RenewableFix`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::RenewableFix, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/ReserveDemandCurve.jl b/src/models/generated/ReserveDemandCurve.jl index c7e7b9c74e..720c8f599b 100644 --- a/src/models/generated/ReserveDemandCurve.jl +++ b/src/models/generated/ReserveDemandCurve.jl @@ -15,6 +15,7 @@ This file is auto-generated. Do not edit. deployed_fraction::Float64 ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -30,6 +31,7 @@ Data Structure for a operating reserve with demand curve product for system simu - `deployed_fraction::Float64`: Fraction of ancillary services participation deployed from the assignment, validation range: `(0, 1)`, action if invalid: `error` - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct ReserveDemandCurve{T <: ReserveDirection} <: Reserve{T} @@ -48,16 +50,18 @@ mutable struct ReserveDemandCurve{T <: ReserveDirection} <: Reserve{T} ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function ReserveDemandCurve{T}(variable, name, available, time_frame, sustained_time=3600.0, max_participation_factor=1.0, deployed_fraction=0.0, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) where T <: ReserveDirection - ReserveDemandCurve{T}(variable, name, available, time_frame, sustained_time, max_participation_factor, deployed_fraction, ext, time_series_container, InfrastructureSystemsInternal(), ) +function ReserveDemandCurve{T}(variable, name, available, time_frame, sustained_time=3600.0, max_participation_factor=1.0, deployed_fraction=0.0, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) where T <: ReserveDirection + ReserveDemandCurve{T}(variable, name, available, time_frame, sustained_time, max_participation_factor, deployed_fraction, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function ReserveDemandCurve{T}(; variable, name, available, time_frame, sustained_time=3600.0, max_participation_factor=1.0, deployed_fraction=0.0, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) where T <: ReserveDirection - ReserveDemandCurve{T}(variable, name, available, time_frame, sustained_time, max_participation_factor, deployed_fraction, ext, time_series_container, internal, ) +function ReserveDemandCurve{T}(; variable, name, available, time_frame, sustained_time=3600.0, max_participation_factor=1.0, deployed_fraction=0.0, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) where T <: ReserveDirection + ReserveDemandCurve{T}(variable, name, available, time_frame, sustained_time, max_participation_factor, deployed_fraction, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -72,6 +76,7 @@ function ReserveDemandCurve{T}(::Nothing) where T <: ReserveDirection deployed_fraction=0.0, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -93,6 +98,8 @@ get_deployed_fraction(value::ReserveDemandCurve) = value.deployed_fraction get_ext(value::ReserveDemandCurve) = value.ext """Get [`ReserveDemandCurve`](@ref) `time_series_container`.""" get_time_series_container(value::ReserveDemandCurve) = value.time_series_container +"""Get [`ReserveDemandCurve`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::ReserveDemandCurve) = value.supplemental_attributes_container """Get [`ReserveDemandCurve`](@ref) `internal`.""" get_internal(value::ReserveDemandCurve) = value.internal @@ -112,3 +119,5 @@ set_deployed_fraction!(value::ReserveDemandCurve, val) = value.deployed_fraction set_ext!(value::ReserveDemandCurve, val) = value.ext = val """Set [`ReserveDemandCurve`](@ref) `time_series_container`.""" set_time_series_container!(value::ReserveDemandCurve, val) = value.time_series_container = val +"""Set [`ReserveDemandCurve`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::ReserveDemandCurve, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/StandardLoad.jl b/src/models/generated/StandardLoad.jl index 84ca8bc9fd..4e7558b0f7 100644 --- a/src/models/generated/StandardLoad.jl +++ b/src/models/generated/StandardLoad.jl @@ -26,6 +26,7 @@ This file is auto-generated. Do not edit. dynamic_injector::Union{Nothing, DynamicInjection} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -52,6 +53,7 @@ Data structure for a standard load. - `dynamic_injector::Union{Nothing, DynamicInjection}`: corresponding dynamic injection device - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct StandardLoad <: StaticLoad @@ -79,16 +81,18 @@ mutable struct StandardLoad <: StaticLoad ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function StandardLoad(name, available, bus, base_power, constant_active_power=0.0, constant_reactive_power=0.0, impedance_active_power=0.0, impedance_reactive_power=0.0, current_active_power=0.0, current_reactive_power=0.0, max_constant_active_power=0.0, max_constant_reactive_power=0.0, max_impedance_active_power=0.0, max_impedance_reactive_power=0.0, max_current_active_power=0.0, max_current_reactive_power=0.0, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - StandardLoad(name, available, bus, base_power, constant_active_power, constant_reactive_power, impedance_active_power, impedance_reactive_power, current_active_power, current_reactive_power, max_constant_active_power, max_constant_reactive_power, max_impedance_active_power, max_impedance_reactive_power, max_current_active_power, max_current_reactive_power, services, dynamic_injector, ext, time_series_container, InfrastructureSystemsInternal(), ) +function StandardLoad(name, available, bus, base_power, constant_active_power=0.0, constant_reactive_power=0.0, impedance_active_power=0.0, impedance_reactive_power=0.0, current_active_power=0.0, current_reactive_power=0.0, max_constant_active_power=0.0, max_constant_reactive_power=0.0, max_impedance_active_power=0.0, max_impedance_reactive_power=0.0, max_current_active_power=0.0, max_current_reactive_power=0.0, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + StandardLoad(name, available, bus, base_power, constant_active_power, constant_reactive_power, impedance_active_power, impedance_reactive_power, current_active_power, current_reactive_power, max_constant_active_power, max_constant_reactive_power, max_impedance_active_power, max_impedance_reactive_power, max_current_active_power, max_current_reactive_power, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function StandardLoad(; name, available, bus, base_power, constant_active_power=0.0, constant_reactive_power=0.0, impedance_active_power=0.0, impedance_reactive_power=0.0, current_active_power=0.0, current_reactive_power=0.0, max_constant_active_power=0.0, max_constant_reactive_power=0.0, max_impedance_active_power=0.0, max_impedance_reactive_power=0.0, max_current_active_power=0.0, max_current_reactive_power=0.0, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - StandardLoad(name, available, bus, base_power, constant_active_power, constant_reactive_power, impedance_active_power, impedance_reactive_power, current_active_power, current_reactive_power, max_constant_active_power, max_constant_reactive_power, max_impedance_active_power, max_impedance_reactive_power, max_current_active_power, max_current_reactive_power, services, dynamic_injector, ext, time_series_container, internal, ) +function StandardLoad(; name, available, bus, base_power, constant_active_power=0.0, constant_reactive_power=0.0, impedance_active_power=0.0, impedance_reactive_power=0.0, current_active_power=0.0, current_reactive_power=0.0, max_constant_active_power=0.0, max_constant_reactive_power=0.0, max_impedance_active_power=0.0, max_impedance_reactive_power=0.0, max_current_active_power=0.0, max_current_reactive_power=0.0, services=Device[], dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + StandardLoad(name, available, bus, base_power, constant_active_power, constant_reactive_power, impedance_active_power, impedance_reactive_power, current_active_power, current_reactive_power, max_constant_active_power, max_constant_reactive_power, max_impedance_active_power, max_impedance_reactive_power, max_current_active_power, max_current_reactive_power, services, dynamic_injector, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -114,6 +118,7 @@ function StandardLoad(::Nothing) dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -157,6 +162,8 @@ get_dynamic_injector(value::StandardLoad) = value.dynamic_injector get_ext(value::StandardLoad) = value.ext """Get [`StandardLoad`](@ref) `time_series_container`.""" get_time_series_container(value::StandardLoad) = value.time_series_container +"""Get [`StandardLoad`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::StandardLoad) = value.supplemental_attributes_container """Get [`StandardLoad`](@ref) `internal`.""" get_internal(value::StandardLoad) = value.internal @@ -196,3 +203,5 @@ set_services!(value::StandardLoad, val) = value.services = val set_ext!(value::StandardLoad, val) = value.ext = val """Set [`StandardLoad`](@ref) `time_series_container`.""" set_time_series_container!(value::StandardLoad, val) = value.time_series_container = val +"""Set [`StandardLoad`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::StandardLoad, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/SwitchedAdmittance.jl b/src/models/generated/SwitchedAdmittance.jl index f46185e3f7..20e039856d 100644 --- a/src/models/generated/SwitchedAdmittance.jl +++ b/src/models/generated/SwitchedAdmittance.jl @@ -16,6 +16,7 @@ This file is auto-generated. Do not edit. services::Vector{Service} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -32,6 +33,7 @@ This file is auto-generated. Do not edit. - `services::Vector{Service}`: Services that this device contributes to - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct SwitchedAdmittance <: ElectricLoad @@ -51,16 +53,18 @@ mutable struct SwitchedAdmittance <: ElectricLoad ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function SwitchedAdmittance(name, available, bus, Y, number_of_steps=0, Y_increase=0, dynamic_injector=nothing, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - SwitchedAdmittance(name, available, bus, Y, number_of_steps, Y_increase, dynamic_injector, services, ext, time_series_container, InfrastructureSystemsInternal(), ) +function SwitchedAdmittance(name, available, bus, Y, number_of_steps=0, Y_increase=0, dynamic_injector=nothing, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + SwitchedAdmittance(name, available, bus, Y, number_of_steps, Y_increase, dynamic_injector, services, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function SwitchedAdmittance(; name, available, bus, Y, number_of_steps=0, Y_increase=0, dynamic_injector=nothing, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - SwitchedAdmittance(name, available, bus, Y, number_of_steps, Y_increase, dynamic_injector, services, ext, time_series_container, internal, ) +function SwitchedAdmittance(; name, available, bus, Y, number_of_steps=0, Y_increase=0, dynamic_injector=nothing, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + SwitchedAdmittance(name, available, bus, Y, number_of_steps, Y_increase, dynamic_injector, services, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -76,6 +80,7 @@ function SwitchedAdmittance(::Nothing) services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -99,6 +104,8 @@ get_services(value::SwitchedAdmittance) = value.services get_ext(value::SwitchedAdmittance) = value.ext """Get [`SwitchedAdmittance`](@ref) `time_series_container`.""" get_time_series_container(value::SwitchedAdmittance) = value.time_series_container +"""Get [`SwitchedAdmittance`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::SwitchedAdmittance) = value.supplemental_attributes_container """Get [`SwitchedAdmittance`](@ref) `internal`.""" get_internal(value::SwitchedAdmittance) = value.internal @@ -118,3 +125,5 @@ set_services!(value::SwitchedAdmittance, val) = value.services = val set_ext!(value::SwitchedAdmittance, val) = value.ext = val """Set [`SwitchedAdmittance`](@ref) `time_series_container`.""" set_time_series_container!(value::SwitchedAdmittance, val) = value.time_series_container = val +"""Set [`SwitchedAdmittance`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::SwitchedAdmittance, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/TapTransformer.jl b/src/models/generated/TapTransformer.jl index 466dc66b5e..4fcbf5e573 100644 --- a/src/models/generated/TapTransformer.jl +++ b/src/models/generated/TapTransformer.jl @@ -19,6 +19,7 @@ This file is auto-generated. Do not edit. services::Vector{Service} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -38,6 +39,7 @@ This file is auto-generated. Do not edit. - `services::Vector{Service}`: Services that this device contributes to - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct TapTransformer <: ACBranch @@ -59,16 +61,18 @@ mutable struct TapTransformer <: ACBranch ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function TapTransformer(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, tap, rate, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - TapTransformer(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, tap, rate, services, ext, time_series_container, InfrastructureSystemsInternal(), ) +function TapTransformer(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, tap, rate, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + TapTransformer(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, tap, rate, services, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function TapTransformer(; name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, tap, rate, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - TapTransformer(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, tap, rate, services, ext, time_series_container, internal, ) +function TapTransformer(; name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, tap, rate, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + TapTransformer(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, tap, rate, services, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -87,6 +91,7 @@ function TapTransformer(::Nothing) services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -116,6 +121,8 @@ get_services(value::TapTransformer) = value.services get_ext(value::TapTransformer) = value.ext """Get [`TapTransformer`](@ref) `time_series_container`.""" get_time_series_container(value::TapTransformer) = value.time_series_container +"""Get [`TapTransformer`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::TapTransformer) = value.supplemental_attributes_container """Get [`TapTransformer`](@ref) `internal`.""" get_internal(value::TapTransformer) = value.internal @@ -143,3 +150,5 @@ set_services!(value::TapTransformer, val) = value.services = val set_ext!(value::TapTransformer, val) = value.ext = val """Set [`TapTransformer`](@ref) `time_series_container`.""" set_time_series_container!(value::TapTransformer, val) = value.time_series_container = val +"""Set [`TapTransformer`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::TapTransformer, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/ThermalMultiStart.jl b/src/models/generated/ThermalMultiStart.jl index af1d67ea45..35dc766455 100644 --- a/src/models/generated/ThermalMultiStart.jl +++ b/src/models/generated/ThermalMultiStart.jl @@ -30,6 +30,7 @@ This file is auto-generated. Do not edit. dynamic_injector::Union{Nothing, DynamicInjection} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -60,6 +61,7 @@ Data Structure for thermal generation technologies. - `dynamic_injector::Union{Nothing, DynamicInjection}`: corresponding dynamic injection device - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct ThermalMultiStart <: ThermalGen @@ -98,16 +100,18 @@ mutable struct ThermalMultiStart <: ThermalGen ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function ThermalMultiStart(name, available, status, bus, active_power, reactive_power, rating, prime_mover_type, fuel, active_power_limits, reactive_power_limits, ramp_limits, power_trajectory, time_limits, start_time_limits, start_types, operation_cost, base_power, services=Device[], time_at_status=INFINITE_TIME, must_run=false, dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - ThermalMultiStart(name, available, status, bus, active_power, reactive_power, rating, prime_mover_type, fuel, active_power_limits, reactive_power_limits, ramp_limits, power_trajectory, time_limits, start_time_limits, start_types, operation_cost, base_power, services, time_at_status, must_run, dynamic_injector, ext, time_series_container, InfrastructureSystemsInternal(), ) +function ThermalMultiStart(name, available, status, bus, active_power, reactive_power, rating, prime_mover_type, fuel, active_power_limits, reactive_power_limits, ramp_limits, power_trajectory, time_limits, start_time_limits, start_types, operation_cost, base_power, services=Device[], time_at_status=INFINITE_TIME, must_run=false, dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + ThermalMultiStart(name, available, status, bus, active_power, reactive_power, rating, prime_mover_type, fuel, active_power_limits, reactive_power_limits, ramp_limits, power_trajectory, time_limits, start_time_limits, start_types, operation_cost, base_power, services, time_at_status, must_run, dynamic_injector, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function ThermalMultiStart(; name, available, status, bus, active_power, reactive_power, rating, prime_mover_type, fuel, active_power_limits, reactive_power_limits, ramp_limits, power_trajectory, time_limits, start_time_limits, start_types, operation_cost, base_power, services=Device[], time_at_status=INFINITE_TIME, must_run=false, dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - ThermalMultiStart(name, available, status, bus, active_power, reactive_power, rating, prime_mover_type, fuel, active_power_limits, reactive_power_limits, ramp_limits, power_trajectory, time_limits, start_time_limits, start_types, operation_cost, base_power, services, time_at_status, must_run, dynamic_injector, ext, time_series_container, internal, ) +function ThermalMultiStart(; name, available, status, bus, active_power, reactive_power, rating, prime_mover_type, fuel, active_power_limits, reactive_power_limits, ramp_limits, power_trajectory, time_limits, start_time_limits, start_types, operation_cost, base_power, services=Device[], time_at_status=INFINITE_TIME, must_run=false, dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + ThermalMultiStart(name, available, status, bus, active_power, reactive_power, rating, prime_mover_type, fuel, active_power_limits, reactive_power_limits, ramp_limits, power_trajectory, time_limits, start_time_limits, start_types, operation_cost, base_power, services, time_at_status, must_run, dynamic_injector, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -137,6 +141,7 @@ function ThermalMultiStart(::Nothing) dynamic_injector=nothing, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -188,6 +193,8 @@ get_dynamic_injector(value::ThermalMultiStart) = value.dynamic_injector get_ext(value::ThermalMultiStart) = value.ext """Get [`ThermalMultiStart`](@ref) `time_series_container`.""" get_time_series_container(value::ThermalMultiStart) = value.time_series_container +"""Get [`ThermalMultiStart`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::ThermalMultiStart) = value.supplemental_attributes_container """Get [`ThermalMultiStart`](@ref) `internal`.""" get_internal(value::ThermalMultiStart) = value.internal @@ -235,3 +242,5 @@ set_must_run!(value::ThermalMultiStart, val) = value.must_run = val set_ext!(value::ThermalMultiStart, val) = value.ext = val """Set [`ThermalMultiStart`](@ref) `time_series_container`.""" set_time_series_container!(value::ThermalMultiStart, val) = value.time_series_container = val +"""Set [`ThermalMultiStart`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::ThermalMultiStart, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/Transfer.jl b/src/models/generated/Transfer.jl index acb97a437a..ade7ab3b63 100644 --- a/src/models/generated/Transfer.jl +++ b/src/models/generated/Transfer.jl @@ -11,6 +11,7 @@ This file is auto-generated. Do not edit. requirement::Float64 ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -22,6 +23,7 @@ This file is auto-generated. Do not edit. - `requirement::Float64` - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct Transfer <: Service @@ -31,16 +33,18 @@ mutable struct Transfer <: Service ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function Transfer(name, available, requirement, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - Transfer(name, available, requirement, ext, time_series_container, InfrastructureSystemsInternal(), ) +function Transfer(name, available, requirement, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + Transfer(name, available, requirement, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function Transfer(; name, available, requirement, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - Transfer(name, available, requirement, ext, time_series_container, internal, ) +function Transfer(; name, available, requirement, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + Transfer(name, available, requirement, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -51,6 +55,7 @@ function Transfer(::Nothing) requirement=0.0, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -64,6 +69,8 @@ get_requirement(value::Transfer) = value.requirement get_ext(value::Transfer) = value.ext """Get [`Transfer`](@ref) `time_series_container`.""" get_time_series_container(value::Transfer) = value.time_series_container +"""Get [`Transfer`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::Transfer) = value.supplemental_attributes_container """Get [`Transfer`](@ref) `internal`.""" get_internal(value::Transfer) = value.internal @@ -75,3 +82,5 @@ set_requirement!(value::Transfer, val) = value.requirement = val set_ext!(value::Transfer, val) = value.ext = val """Set [`Transfer`](@ref) `time_series_container`.""" set_time_series_container!(value::Transfer, val) = value.time_series_container = val +"""Set [`Transfer`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::Transfer, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/Transformer2W.jl b/src/models/generated/Transformer2W.jl index 85d8daf23d..ef55398787 100644 --- a/src/models/generated/Transformer2W.jl +++ b/src/models/generated/Transformer2W.jl @@ -18,6 +18,7 @@ This file is auto-generated. Do not edit. services::Vector{Service} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -36,6 +37,7 @@ The 2-W transformer model uses an equivalent circuit assuming the impedance is o - `services::Vector{Service}`: Services that this device contributes to - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct Transformer2W <: ACBranch @@ -56,16 +58,18 @@ mutable struct Transformer2W <: ACBranch ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function Transformer2W(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, rate, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - Transformer2W(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, rate, services, ext, time_series_container, InfrastructureSystemsInternal(), ) +function Transformer2W(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, rate, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + Transformer2W(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, rate, services, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function Transformer2W(; name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, rate, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - Transformer2W(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, rate, services, ext, time_series_container, internal, ) +function Transformer2W(; name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, rate, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + Transformer2W(name, available, active_power_flow, reactive_power_flow, arc, r, x, primary_shunt, rate, services, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -83,6 +87,7 @@ function Transformer2W(::Nothing) services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -110,6 +115,8 @@ get_services(value::Transformer2W) = value.services get_ext(value::Transformer2W) = value.ext """Get [`Transformer2W`](@ref) `time_series_container`.""" get_time_series_container(value::Transformer2W) = value.time_series_container +"""Get [`Transformer2W`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::Transformer2W) = value.supplemental_attributes_container """Get [`Transformer2W`](@ref) `internal`.""" get_internal(value::Transformer2W) = value.internal @@ -135,3 +142,5 @@ set_services!(value::Transformer2W, val) = value.services = val set_ext!(value::Transformer2W, val) = value.ext = val """Set [`Transformer2W`](@ref) `time_series_container`.""" set_time_series_container!(value::Transformer2W, val) = value.time_series_container = val +"""Set [`Transformer2W`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::Transformer2W, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/TransmissionInterface.jl b/src/models/generated/TransmissionInterface.jl index 6485b0efdf..bb19ec1e70 100644 --- a/src/models/generated/TransmissionInterface.jl +++ b/src/models/generated/TransmissionInterface.jl @@ -12,6 +12,7 @@ This file is auto-generated. Do not edit. violation_penalty::Float64 direction_mapping::Dict{String, Int} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -24,6 +25,7 @@ A collection of branches that make up an interface or corridor for the transfer - `violation_penalty::Float64`: Penalty for violating the flow limits in the interface - `direction_mapping::Dict{String, Int}`: Map to set of multiplier to the flow in the line for cases when the line has a reverse direction with respect to the interface - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct TransmissionInterface <: Service @@ -36,16 +38,18 @@ mutable struct TransmissionInterface <: Service direction_mapping::Dict{String, Int} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function TransmissionInterface(name, available, active_power_flow_limits, violation_penalty=INFINITE_COST, direction_mapping=Dict{String, Int}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - TransmissionInterface(name, available, active_power_flow_limits, violation_penalty, direction_mapping, time_series_container, InfrastructureSystemsInternal(), ) +function TransmissionInterface(name, available, active_power_flow_limits, violation_penalty=INFINITE_COST, direction_mapping=Dict{String, Int}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + TransmissionInterface(name, available, active_power_flow_limits, violation_penalty, direction_mapping, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function TransmissionInterface(; name, available, active_power_flow_limits, violation_penalty=INFINITE_COST, direction_mapping=Dict{String, Int}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - TransmissionInterface(name, available, active_power_flow_limits, violation_penalty, direction_mapping, time_series_container, internal, ) +function TransmissionInterface(; name, available, active_power_flow_limits, violation_penalty=INFINITE_COST, direction_mapping=Dict{String, Int}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + TransmissionInterface(name, available, active_power_flow_limits, violation_penalty, direction_mapping, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -57,6 +61,7 @@ function TransmissionInterface(::Nothing) violation_penalty=0.0, direction_mapping=Dict{String, Int}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -72,6 +77,8 @@ get_violation_penalty(value::TransmissionInterface) = value.violation_penalty get_direction_mapping(value::TransmissionInterface) = value.direction_mapping """Get [`TransmissionInterface`](@ref) `time_series_container`.""" get_time_series_container(value::TransmissionInterface) = value.time_series_container +"""Get [`TransmissionInterface`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::TransmissionInterface) = value.supplemental_attributes_container """Get [`TransmissionInterface`](@ref) `internal`.""" get_internal(value::TransmissionInterface) = value.internal @@ -85,3 +92,5 @@ set_violation_penalty!(value::TransmissionInterface, val) = value.violation_pena set_direction_mapping!(value::TransmissionInterface, val) = value.direction_mapping = val """Set [`TransmissionInterface`](@ref) `time_series_container`.""" set_time_series_container!(value::TransmissionInterface, val) = value.time_series_container = val +"""Set [`TransmissionInterface`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::TransmissionInterface, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/TwoTerminalHVDCLine.jl b/src/models/generated/TwoTerminalHVDCLine.jl index bdb627c309..68f76fad10 100644 --- a/src/models/generated/TwoTerminalHVDCLine.jl +++ b/src/models/generated/TwoTerminalHVDCLine.jl @@ -18,6 +18,7 @@ This file is auto-generated. Do not edit. services::Vector{Service} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -36,6 +37,7 @@ a High voltage DC line. - `services::Vector{Service}`: Services that this device contributes to - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct TwoTerminalHVDCLine <: ACBranch @@ -53,16 +55,18 @@ mutable struct TwoTerminalHVDCLine <: ACBranch ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function TwoTerminalHVDCLine(name, available, active_power_flow, arc, active_power_limits_from, active_power_limits_to, reactive_power_limits_from, reactive_power_limits_to, loss, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - TwoTerminalHVDCLine(name, available, active_power_flow, arc, active_power_limits_from, active_power_limits_to, reactive_power_limits_from, reactive_power_limits_to, loss, services, ext, time_series_container, InfrastructureSystemsInternal(), ) +function TwoTerminalHVDCLine(name, available, active_power_flow, arc, active_power_limits_from, active_power_limits_to, reactive_power_limits_from, reactive_power_limits_to, loss, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + TwoTerminalHVDCLine(name, available, active_power_flow, arc, active_power_limits_from, active_power_limits_to, reactive_power_limits_from, reactive_power_limits_to, loss, services, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function TwoTerminalHVDCLine(; name, available, active_power_flow, arc, active_power_limits_from, active_power_limits_to, reactive_power_limits_from, reactive_power_limits_to, loss, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - TwoTerminalHVDCLine(name, available, active_power_flow, arc, active_power_limits_from, active_power_limits_to, reactive_power_limits_from, reactive_power_limits_to, loss, services, ext, time_series_container, internal, ) +function TwoTerminalHVDCLine(; name, available, active_power_flow, arc, active_power_limits_from, active_power_limits_to, reactive_power_limits_from, reactive_power_limits_to, loss, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + TwoTerminalHVDCLine(name, available, active_power_flow, arc, active_power_limits_from, active_power_limits_to, reactive_power_limits_from, reactive_power_limits_to, loss, services, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -80,6 +84,7 @@ function TwoTerminalHVDCLine(::Nothing) services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -107,6 +112,8 @@ get_services(value::TwoTerminalHVDCLine) = value.services get_ext(value::TwoTerminalHVDCLine) = value.ext """Get [`TwoTerminalHVDCLine`](@ref) `time_series_container`.""" get_time_series_container(value::TwoTerminalHVDCLine) = value.time_series_container +"""Get [`TwoTerminalHVDCLine`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::TwoTerminalHVDCLine) = value.supplemental_attributes_container """Get [`TwoTerminalHVDCLine`](@ref) `internal`.""" get_internal(value::TwoTerminalHVDCLine) = value.internal @@ -132,3 +139,5 @@ set_services!(value::TwoTerminalHVDCLine, val) = value.services = val set_ext!(value::TwoTerminalHVDCLine, val) = value.ext = val """Set [`TwoTerminalHVDCLine`](@ref) `time_series_container`.""" set_time_series_container!(value::TwoTerminalHVDCLine, val) = value.time_series_container = val +"""Set [`TwoTerminalHVDCLine`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::TwoTerminalHVDCLine, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/TwoTerminalVSCDCLine.jl b/src/models/generated/TwoTerminalVSCDCLine.jl index b590300c8a..274e297e1b 100644 --- a/src/models/generated/TwoTerminalVSCDCLine.jl +++ b/src/models/generated/TwoTerminalVSCDCLine.jl @@ -19,6 +19,7 @@ This file is auto-generated. Do not edit. services::Vector{Service} ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -38,6 +39,7 @@ As implemented in Milano's Book, Page 397. - `services::Vector{Service}`: Services that this device contributes to - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct TwoTerminalVSCDCLine <: ACBranch @@ -56,16 +58,18 @@ mutable struct TwoTerminalVSCDCLine <: ACBranch ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function TwoTerminalVSCDCLine(name, available, active_power_flow, arc, rectifier_tap_limits, rectifier_xrc, rectifier_firing_angle, inverter_tap_limits, inverter_xrc, inverter_firing_angle, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - TwoTerminalVSCDCLine(name, available, active_power_flow, arc, rectifier_tap_limits, rectifier_xrc, rectifier_firing_angle, inverter_tap_limits, inverter_xrc, inverter_firing_angle, services, ext, time_series_container, InfrastructureSystemsInternal(), ) +function TwoTerminalVSCDCLine(name, available, active_power_flow, arc, rectifier_tap_limits, rectifier_xrc, rectifier_firing_angle, inverter_tap_limits, inverter_xrc, inverter_firing_angle, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + TwoTerminalVSCDCLine(name, available, active_power_flow, arc, rectifier_tap_limits, rectifier_xrc, rectifier_firing_angle, inverter_tap_limits, inverter_xrc, inverter_firing_angle, services, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function TwoTerminalVSCDCLine(; name, available, active_power_flow, arc, rectifier_tap_limits, rectifier_xrc, rectifier_firing_angle, inverter_tap_limits, inverter_xrc, inverter_firing_angle, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - TwoTerminalVSCDCLine(name, available, active_power_flow, arc, rectifier_tap_limits, rectifier_xrc, rectifier_firing_angle, inverter_tap_limits, inverter_xrc, inverter_firing_angle, services, ext, time_series_container, internal, ) +function TwoTerminalVSCDCLine(; name, available, active_power_flow, arc, rectifier_tap_limits, rectifier_xrc, rectifier_firing_angle, inverter_tap_limits, inverter_xrc, inverter_firing_angle, services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + TwoTerminalVSCDCLine(name, available, active_power_flow, arc, rectifier_tap_limits, rectifier_xrc, rectifier_firing_angle, inverter_tap_limits, inverter_xrc, inverter_firing_angle, services, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -84,6 +88,7 @@ function TwoTerminalVSCDCLine(::Nothing) services=Device[], ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -113,6 +118,8 @@ get_services(value::TwoTerminalVSCDCLine) = value.services get_ext(value::TwoTerminalVSCDCLine) = value.ext """Get [`TwoTerminalVSCDCLine`](@ref) `time_series_container`.""" get_time_series_container(value::TwoTerminalVSCDCLine) = value.time_series_container +"""Get [`TwoTerminalVSCDCLine`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::TwoTerminalVSCDCLine) = value.supplemental_attributes_container """Get [`TwoTerminalVSCDCLine`](@ref) `internal`.""" get_internal(value::TwoTerminalVSCDCLine) = value.internal @@ -140,3 +147,5 @@ set_services!(value::TwoTerminalVSCDCLine, val) = value.services = val set_ext!(value::TwoTerminalVSCDCLine, val) = value.ext = val """Set [`TwoTerminalVSCDCLine`](@ref) `time_series_container`.""" set_time_series_container!(value::TwoTerminalVSCDCLine, val) = value.time_series_container = val +"""Set [`TwoTerminalVSCDCLine`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::TwoTerminalVSCDCLine, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/VariableReserve.jl b/src/models/generated/VariableReserve.jl index 5a30687b21..b64d694e07 100644 --- a/src/models/generated/VariableReserve.jl +++ b/src/models/generated/VariableReserve.jl @@ -16,6 +16,7 @@ This file is auto-generated. Do not edit. deployed_fraction::Float64 ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -32,6 +33,7 @@ Data Structure for the procurement products for system simulations. - `deployed_fraction::Float64`: Fraction of ancillary services participation deployed from the assignment, validation range: `(0, 1)`, action if invalid: `error` - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct VariableReserve{T <: ReserveDirection} <: Reserve{T} @@ -52,16 +54,18 @@ mutable struct VariableReserve{T <: ReserveDirection} <: Reserve{T} ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function VariableReserve{T}(name, available, time_frame, requirement, sustained_time=3600.0, max_output_fraction=1.0, max_participation_factor=1.0, deployed_fraction=0.0, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) where T <: ReserveDirection - VariableReserve{T}(name, available, time_frame, requirement, sustained_time, max_output_fraction, max_participation_factor, deployed_fraction, ext, time_series_container, InfrastructureSystemsInternal(), ) +function VariableReserve{T}(name, available, time_frame, requirement, sustained_time=3600.0, max_output_fraction=1.0, max_participation_factor=1.0, deployed_fraction=0.0, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) where T <: ReserveDirection + VariableReserve{T}(name, available, time_frame, requirement, sustained_time, max_output_fraction, max_participation_factor, deployed_fraction, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function VariableReserve{T}(; name, available, time_frame, requirement, sustained_time=3600.0, max_output_fraction=1.0, max_participation_factor=1.0, deployed_fraction=0.0, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) where T <: ReserveDirection - VariableReserve{T}(name, available, time_frame, requirement, sustained_time, max_output_fraction, max_participation_factor, deployed_fraction, ext, time_series_container, internal, ) +function VariableReserve{T}(; name, available, time_frame, requirement, sustained_time=3600.0, max_output_fraction=1.0, max_participation_factor=1.0, deployed_fraction=0.0, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) where T <: ReserveDirection + VariableReserve{T}(name, available, time_frame, requirement, sustained_time, max_output_fraction, max_participation_factor, deployed_fraction, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -77,6 +81,7 @@ function VariableReserve{T}(::Nothing) where T <: ReserveDirection deployed_fraction=0.0, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -100,6 +105,8 @@ get_deployed_fraction(value::VariableReserve) = value.deployed_fraction get_ext(value::VariableReserve) = value.ext """Get [`VariableReserve`](@ref) `time_series_container`.""" get_time_series_container(value::VariableReserve) = value.time_series_container +"""Get [`VariableReserve`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::VariableReserve) = value.supplemental_attributes_container """Get [`VariableReserve`](@ref) `internal`.""" get_internal(value::VariableReserve) = value.internal @@ -121,3 +128,5 @@ set_deployed_fraction!(value::VariableReserve, val) = value.deployed_fraction = set_ext!(value::VariableReserve, val) = value.ext = val """Set [`VariableReserve`](@ref) `time_series_container`.""" set_time_series_container!(value::VariableReserve, val) = value.time_series_container = val +"""Set [`VariableReserve`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::VariableReserve, val) = value.supplemental_attributes_container = val diff --git a/src/models/generated/VariableReserveNonSpinning.jl b/src/models/generated/VariableReserveNonSpinning.jl index a0adfd27e6..790994356b 100644 --- a/src/models/generated/VariableReserveNonSpinning.jl +++ b/src/models/generated/VariableReserveNonSpinning.jl @@ -16,6 +16,7 @@ This file is auto-generated. Do not edit. deployed_fraction::Float64 ext::Dict{String, Any} time_series_container::InfrastructureSystems.TimeSeriesContainer + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer internal::InfrastructureSystemsInternal end @@ -32,6 +33,7 @@ Data Structure for the procurement products for system simulations. - `deployed_fraction::Float64`: Fraction of ancillary services participation deployed from the assignment, validation range: `(0, 1)`, action if invalid: `error` - `ext::Dict{String, Any}` - `time_series_container::InfrastructureSystems.TimeSeriesContainer`: internal time_series storage +- `supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer`: container for supplemental attributes - `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify """ mutable struct VariableReserveNonSpinning <: ReserveNonSpinning @@ -52,16 +54,18 @@ mutable struct VariableReserveNonSpinning <: ReserveNonSpinning ext::Dict{String, Any} "internal time_series storage" time_series_container::InfrastructureSystems.TimeSeriesContainer + "container for supplemental attributes" + supplemental_attributes_container::InfrastructureSystems.SupplementalAttributesContainer "power system internal reference, do not modify" internal::InfrastructureSystemsInternal end -function VariableReserveNonSpinning(name, available, time_frame, requirement, sustained_time=14400.0, max_output_fraction=1.0, max_participation_factor=1.0, deployed_fraction=0.0, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), ) - VariableReserveNonSpinning(name, available, time_frame, requirement, sustained_time, max_output_fraction, max_participation_factor, deployed_fraction, ext, time_series_container, InfrastructureSystemsInternal(), ) +function VariableReserveNonSpinning(name, available, time_frame, requirement, sustained_time=14400.0, max_output_fraction=1.0, max_participation_factor=1.0, deployed_fraction=0.0, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) + VariableReserveNonSpinning(name, available, time_frame, requirement, sustained_time, max_output_fraction, max_participation_factor, deployed_fraction, ext, time_series_container, supplemental_attributes_container, InfrastructureSystemsInternal(), ) end -function VariableReserveNonSpinning(; name, available, time_frame, requirement, sustained_time=14400.0, max_output_fraction=1.0, max_participation_factor=1.0, deployed_fraction=0.0, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), internal=InfrastructureSystemsInternal(), ) - VariableReserveNonSpinning(name, available, time_frame, requirement, sustained_time, max_output_fraction, max_participation_factor, deployed_fraction, ext, time_series_container, internal, ) +function VariableReserveNonSpinning(; name, available, time_frame, requirement, sustained_time=14400.0, max_output_fraction=1.0, max_participation_factor=1.0, deployed_fraction=0.0, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), internal=InfrastructureSystemsInternal(), ) + VariableReserveNonSpinning(name, available, time_frame, requirement, sustained_time, max_output_fraction, max_participation_factor, deployed_fraction, ext, time_series_container, supplemental_attributes_container, internal, ) end # Constructor for demo purposes; non-functional. @@ -77,6 +81,7 @@ function VariableReserveNonSpinning(::Nothing) deployed_fraction=0.0, ext=Dict{String, Any}(), time_series_container=InfrastructureSystems.TimeSeriesContainer(), + supplemental_attributes_container=InfrastructureSystems.SupplementalAttributesContainer(), ) end @@ -100,6 +105,8 @@ get_deployed_fraction(value::VariableReserveNonSpinning) = value.deployed_fracti get_ext(value::VariableReserveNonSpinning) = value.ext """Get [`VariableReserveNonSpinning`](@ref) `time_series_container`.""" get_time_series_container(value::VariableReserveNonSpinning) = value.time_series_container +"""Get [`VariableReserveNonSpinning`](@ref) `supplemental_attributes_container`.""" +get_supplemental_attributes_container(value::VariableReserveNonSpinning) = value.supplemental_attributes_container """Get [`VariableReserveNonSpinning`](@ref) `internal`.""" get_internal(value::VariableReserveNonSpinning) = value.internal @@ -121,3 +128,5 @@ set_deployed_fraction!(value::VariableReserveNonSpinning, val) = value.deployed_ set_ext!(value::VariableReserveNonSpinning, val) = value.ext = val """Set [`VariableReserveNonSpinning`](@ref) `time_series_container`.""" set_time_series_container!(value::VariableReserveNonSpinning, val) = value.time_series_container = val +"""Set [`VariableReserveNonSpinning`](@ref) `supplemental_attributes_container`.""" +set_supplemental_attributes_container!(value::VariableReserveNonSpinning, val) = value.supplemental_attributes_container = val