Class: UserDataWaterUseEquipmentDefinition

Inherits:
UserDataCSV
  • Object
show all
Defined in:
lib/openstudio-standards/standards/ashrae_90_1_prm/userdata_csv/ashrae_90_1_prm.UserData.rb

Instance Attribute Summary

Attributes inherited from UserDataCSV

#file_name

Instance Method Summary collapse

Methods inherited from UserDataCSV

#write_csv

Constructor Details

#initialize(model, save_dir) ⇒ UserDataWaterUseEquipmentDefinition

user data userdata_wateruse_equipment

Parameters:

  • model (OpenStudio::Model::Model)
  • save_dir (String)

    directory to save user data files



307
308
309
310
311
# File 'lib/openstudio-standards/standards/ashrae_90_1_prm/userdata_csv/ashrae_90_1_prm.UserData.rb', line 307

def initialize(model, save_dir)
  super
  @component_name = 'WaterUseEquipmentDefinitions'
  @file_name = UserDataFiles::WATERUSE_EQUIPMENT_DEFINITION
end

Instance Method Details

#write_default_rows(component) ⇒ Object



313
314
315
316
# File 'lib/openstudio-standards/standards/ashrae_90_1_prm/userdata_csv/ashrae_90_1_prm.UserData.rb', line 313

def write_default_rows(component)
  # @todo we can do more here but right now, keep everything unchecked.
  return Array.new(@headers.length - 1, '')
end