class NECB2017SmallHotel
This class represents a prototypical NECB2017
SmallHotel
.
Constants
- BUILDING_TYPE
- TEMPLATE
Attributes
Public Class Methods
NECB2017::new
# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 38976 def initialize super() @building_type = BUILDING_TYPE @template = TEMPLATE @instvarbuilding_type = @building_type @prototype_input = self.standards_lookup_table_first(table_name: 'prototype_inputs', search_criteria: {'template' => "NECB2017",'building_type' => "SmallHotel" }) if @prototype_input.nil? OpenStudio.logFree(OpenStudio::Error, 'openstudio.standards.Model', "Could not find prototype inputs for #{{'template' => "NECB2017",'building_type' => "SmallHotel" }}, cannot create model.") #puts JSON.pretty_generate(standards_data['prototype_inputs']) raise("Could not find prototype inputs for NECB2017 SmallHotel, cannot create model.") return false end @lookup_building_type = self.model_get_lookup_name(@building_type) #ideally we should map the data required to a instance variable. @geometry_file = 'geometry/' + self.class.name + '.osm' hvac_map_file = 'geometry/' + self.class.name + '.hvac_map.json' # @system_to_space_map = load_hvac_map(hvac_map_file) # No HVAC map json files for NECB self.set_variables() end
Public Instance Methods
Returns the mapping between the names of the spaces in the geometry .osm file and the building story that they are located on.
# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 39020 def define_building_story_map(building_type, climate_zone) return @building_story_map end
Returns the mapping between the names of the spaces in the geometry .osm file and the HVAC system that will be applied to those spaces.
# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 39013 def define_hvac_system_map(building_type, climate_zone) return @system_to_space_map end
Returns the mapping between the names of the spaces in the geometry .osm file and the space types available for this particular Standard
.
# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 39006 def define_space_type_map(building_type, climate_zone) return @space_type_map end
Does nothing unless implmented by the specific standard
# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 39025 def model_modify_oa_controller(model) end
Does nothing unless implmented by the specific standard
# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 39029 def model_reset_or_room_vav_minimum_damper(prototype_input, model) end
update exhuast fan efficiency
@param model [OpenStudio::Model::Model] OpenStudio model object @return [Boolean] returns true if successful, false if not
# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 39036 def model_update_exhaust_fan_efficiency(model) return true end
Does nothing unless implmented by the specific standard
# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 39041 def model_update_fan_efficiency(model) end
This method is used to extend the class with building-type-specific methods, as defined in Prototype.SomeBuildingType.rb. Each building type has its own set of methods that change things which are not common across all prototype buildings, even within a given Standard
.
# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 39000 def set_variables() end