Skip to content

Commit

Permalink
corrected property names and types
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrypotts committed Jun 17, 2024
1 parent b3a851f commit 53e4f5c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
42 changes: 21 additions & 21 deletions src/models/generated/DemandsideTechnology.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This file is auto-generated. Do not edit.
#! format: off

"""
mutable struct DemandsideTechnology{T <: PSY.StaticInjection} <: IS.InfrastructureSystemsComponent
mutable struct DemandSideTechnology{T <: PSY.StaticInjection} <: IS.InfrastructureSystemsComponent
name::String
power_systems_type::String
ext::Dict
Expand All @@ -20,7 +20,7 @@ This file is auto-generated. Do not edit.
- `ext::Dict`: (default: `Dict()`) Option for providing additional data
- `available::Bool`: identifies whether the technology is available
"""
mutable struct DemandsideTechnology{T <: PSY.StaticInjection} <: IS.InfrastructureSystemsComponent
mutable struct DemandSideTechnology{T <: PSY.StaticInjection} <: IS.InfrastructureSystemsComponent
"The technology name"
name::String
"maps to a valid PowerSystems.jl for PCM modeling"
Expand All @@ -32,24 +32,24 @@ mutable struct DemandsideTechnology{T <: PSY.StaticInjection} <: IS.Infrastructu
end


function DemandsideTechnology{T}(; name, power_systems_type, ext=Dict(), available, ) where T <: PSY.StaticInjection
DemandsideTechnology{T}(name, power_systems_type, ext, available, )
function DemandSideTechnology{T}(; name, power_systems_type, ext=Dict(), available, ) where T <: PSY.StaticInjection
DemandSideTechnology{T}(name, power_systems_type, ext, available, )
end

"""Get [`DemandsideTechnology`](@ref) `name`."""
get_name(value::DemandsideTechnology) = value.name
"""Get [`DemandsideTechnology`](@ref) `power_systems_type`."""
get_power_systems_type(value::DemandsideTechnology) = value.power_systems_type
"""Get [`DemandsideTechnology`](@ref) `ext`."""
get_ext(value::DemandsideTechnology) = value.ext
"""Get [`DemandsideTechnology`](@ref) `available`."""
get_available(value::DemandsideTechnology) = value.available

"""Set [`DemandsideTechnology`](@ref) `name`."""
set_name!(value::DemandsideTechnology, val) = value.name = val
"""Set [`DemandsideTechnology`](@ref) `power_systems_type`."""
set_power_systems_type!(value::DemandsideTechnology, val) = value.power_systems_type = val
"""Set [`DemandsideTechnology`](@ref) `ext`."""
set_ext!(value::DemandsideTechnology, val) = value.ext = val
"""Set [`DemandsideTechnology`](@ref) `available`."""
set_available!(value::DemandsideTechnology, val) = value.available = val
"""Get [`DemandSideTechnology`](@ref) `name`."""
get_name(value::DemandSideTechnology) = value.name
"""Get [`DemandSideTechnology`](@ref) `power_systems_type`."""
get_power_systems_type(value::DemandSideTechnology) = value.power_systems_type
"""Get [`DemandSideTechnology`](@ref) `ext`."""
get_ext(value::DemandSideTechnology) = value.ext
"""Get [`DemandSideTechnology`](@ref) `available`."""
get_available(value::DemandSideTechnology) = value.available

"""Set [`DemandSideTechnology`](@ref) `name`."""
set_name!(value::DemandSideTechnology, val) = value.name = val
"""Set [`DemandSideTechnology`](@ref) `power_systems_type`."""
set_power_systems_type!(value::DemandSideTechnology, val) = value.power_systems_type = val
"""Set [`DemandSideTechnology`](@ref) `ext`."""
set_ext!(value::DemandSideTechnology, val) = value.ext = val
"""Set [`DemandSideTechnology`](@ref) `available`."""
set_available!(value::DemandSideTechnology, val) = value.available = val
6 changes: 3 additions & 3 deletions src/models/generated/StorageTechnology.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This file is auto-generated. Do not edit.
"""
mutable struct StorageTechnology{T <: PSY.Storage} <: IS.InfrastructureSystemsComponent
name::String
storage_tech::String
storage_tech::StorageTech
power_systems_type::String
prime_mover_type::PrimeMovers
ext::Dict
Expand All @@ -18,7 +18,7 @@ This file is auto-generated. Do not edit.
# Arguments
- `name::String`: The technology name
- `storage_tech::String`: Storage Technology Type
- `storage_tech::StorageTech`: Storage Technology Type
- `power_systems_type::String`: maps to a valid PowerSystems.jl for PCM modeling
- `prime_mover_type::PrimeMovers`: Prime mover for storage
- `ext::Dict`: (default: `Dict()`) Option for providing additional data
Expand All @@ -28,7 +28,7 @@ mutable struct StorageTechnology{T <: PSY.Storage} <: IS.InfrastructureSystemsCo
"The technology name"
name::String
"Storage Technology Type"
storage_tech::String
storage_tech::StorageTech
"maps to a valid PowerSystems.jl for PCM modeling"
power_systems_type::String
"Prime mover for storage"
Expand Down
2 changes: 1 addition & 1 deletion src/models/generated/includes.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
include("TransportTechnology.jl")
include("SupplyTechnology.jl")
include("DemandsideTechnology.jl")
include("DemandRequirement.jl")
include("StorageTechnology.jl")
include("DemandSideTechnology.jl")

export get_available
export get_balancing_topology
Expand Down

0 comments on commit 53e4f5c

Please sign in to comment.