Skip to content

Commit

Permalink
change fields in technologies
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Mar 1, 2024
1 parent bcd2a5e commit a39b35e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/demand.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ struct DemandTechnology{T <: PSY.StaticInjection} <: Technology
available::Bool
power_systems_type::Type{T}
capital_cost::Float64
time_series_container::InfrastructureSystems.TimeSeriesContainer
supplemental_attributes_container::IS.SupplementalAttributesContainer
time_series_container::IS.TimeSeriesContainer
internal::InfrastructureSystemsInternal
end
2 changes: 1 addition & 1 deletion src/portfolio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ struct Portfolio <: IS.InfrastructurePortfoliosType
aggregation::Type{<:Union{PSY.ACBus, PSY.AggregationTopology}}
discount_rate::Float64
portfolio_data::IS.PortfolioData # Inputs to the model
investment_data::Dict # Investment decisions container i.e., model outputs. Container TBD
investment_schedule::Dict # Investment decisions container i.e., model outputs. Container TBD
metadata::PortfolioMetadata
time_series_directory::Union{Nothing, String}
time_series_container::InfrastructurePortfolios.TimeSeriesContainer
Expand Down
3 changes: 2 additions & 1 deletion src/storage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ struct StorageTechnology{T <: PSY.Storage} <: Technology
capital_cost::Float64
operational_cost::PSY.OperationalCost
ext::Dict{String, Any}
time_series_container::InfrastructureSystems.TimeSeriesContainer
supplemental_attributes_container::IS.SupplementalAttributesContainer
time_series_container::IS.TimeSeriesContainer
internal::InfrastructureSystemsInternal
end
3 changes: 2 additions & 1 deletion src/supply.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ struct SupplyTechnology{T <: PSY.Generator} <: Technology
capacity_factor::Float64
capital_cost::Float64
operational_cost::PSY.OperationalCost
time_series_container::InfrastructureSystems.TimeSeriesContainer
supplemental_attributes_container::IS.SupplementalAttributesContainer
time_series_container::IS.TimeSeriesContainer
internal::InfrastructureSystemsInternal
end
6 changes: 5 additions & 1 deletion src/technologies.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
"""
abstract type to represent technolgies available for investment.
Required fields for a technology Type
- name
- available
- power_systems_type
- time_series_container
- supplemental_attributes_container
- internal
"""
abstract type Technology <: IS.InfrastructureSystemsComponent end
Expand All @@ -13,4 +16,5 @@ get_available(val::Technology) = val.available
get_power_systems_type(val::Technology) = val.power_systems_type
get_internal(val::Technology) = val.internal
get_ext(val::Technology) = get_ext(get_internal(val))
get_name(val::Technology) = val.name
get_time_series_container(val::Technology) = val.time_series_container
get_supplemental_attributes_container(val::Technology) = val.supplemental_attributes_container
3 changes: 2 additions & 1 deletion src/transport.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ struct TransportTechnology{T <: PSY.Device} <: Technology
available::Bool
power_systems_type::Type{T}
capital_cost::Float64
time_series_container::InfrastructureSystems.TimeSeriesContainer
supplemental_attributes_container::IS.SupplementalAttributesContainer
time_series_container::IS.TimeSeriesContainer
internal::InfrastructureSystemsInternal
end

0 comments on commit a39b35e

Please sign in to comment.