lib/measures/openstudio_results/resources/Siz.HVACComponent.rb in openstudio-common-measures-0.1.0 vs lib/measures/openstudio_results/resources/Siz.HVACComponent.rb in openstudio-common-measures-0.1.1
- old
+ new
@@ -1,7 +1,7 @@
# *******************************************************************************
-# OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC.
+# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# (1) Redistributions of source code must retain the above copyright notice,
@@ -76,10 +76,21 @@
# puts "#{__method__.to_s} not implemented for #{iddObject.type.name}"
return OpenStudio::OptionalDouble.new
end
end
+ def ratedPower
+ comp = cast_to_concrete_type
+ return OpenStudio::OptionalDouble.new if comp.nil?
+ if comp.respond_to?(__method__.to_s)
+ return comp.ratedPower
+ else
+ # puts "#{__method__.to_s} not implemented for #{iddObject.type.name}"
+ return OpenStudio::OptionalDouble.new
+ end
+ end
+
def maxHeatingCapacityAutosized
comp = cast_to_concrete_type
return OpenStudio::OptionalDouble.new if comp.nil?
if comp.respond_to?(__method__.to_s)
return comp.maxHeatingCapacityAutosized
@@ -114,9 +125,20 @@
def maxWaterFlowRateAutosized
comp = cast_to_concrete_type
return OpenStudio::OptionalDouble.new if comp.nil?
if comp.respond_to?(__method__.to_s)
return comp.maxWaterFlowRateAutosized
+ else
+ # puts "#{__method__.to_s} not implemented for #{iddObject.type.name}"
+ return OpenStudio::OptionalDouble.new
+ end
+ end
+
+ def ratedPowerAutosized
+ comp = cast_to_concrete_type
+ return OpenStudio::OptionalDouble.new if comp.nil?
+ if comp.respond_to?(__method__.to_s)
+ return comp.ratedPowerAutosized
else
# puts "#{__method__.to_s} not implemented for #{iddObject.type.name}"
return OpenStudio::OptionalDouble.new
end
end