Class: CommonPaths
- Inherits:
-
Object
- Object
- CommonPaths
- Includes:
- Singleton
- Defined in:
- lib/openstudio-standards/btap/costing/common_paths.rb
Instance Attribute Summary collapse
-
#construction_properties_path ⇒ Object
readonly
Returns the value of attribute construction_properties_path.
-
#construction_sets_path ⇒ Object
readonly
Returns the value of attribute construction_sets_path.
-
#constructions_glazing_path ⇒ Object
readonly
Returns the value of attribute constructions_glazing_path.
-
#constructions_opaque_path ⇒ Object
readonly
Returns the value of attribute constructions_opaque_path.
-
#constructions_path ⇒ Object
readonly
Returns the value of attribute constructions_path.
-
#cost_output_file ⇒ Object
readonly
Returns the value of attribute cost_output_file.
-
#costing_database_path ⇒ Object
readonly
Costing database location.
-
#costs_local_factors_path ⇒ Object
Returns the value of attribute costs_local_factors_path.
-
#costs_path ⇒ Object
Costing data.
-
#error_log ⇒ Object
readonly
Other.
-
#hvac_vent_ahu_path ⇒ Object
readonly
Returns the value of attribute hvac_vent_ahu_path.
-
#lighting_path ⇒ Object
readonly
Returns the value of attribute lighting_path.
-
#lighting_sets_path ⇒ Object
readonly
Returns the value of attribute lighting_sets_path.
-
#locations_path ⇒ Object
readonly
Returns the value of attribute locations_path.
-
#materials_glazing_path ⇒ Object
readonly
Returns the value of attribute materials_glazing_path.
-
#materials_hvac_path ⇒ Object
readonly
Returns the value of attribute materials_hvac_path.
-
#materials_lighting_path ⇒ Object
readonly
Returns the value of attribute materials_lighting_path.
-
#materials_opaque_path ⇒ Object
readonly
Returns the value of attribute materials_opaque_path.
-
#mech_sizing_data_file ⇒ Object
readonly
Returns the value of attribute mech_sizing_data_file.
-
#raw_paths ⇒ Object
readonly
Raw data.
Instance Method Summary collapse
-
#initialize ⇒ CommonPaths
constructor
A new instance of CommonPaths.
Constructor Details
#initialize ⇒ CommonPaths
Returns a new instance of CommonPaths.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 35 def initialize dir_relative = __dir__ dir_database = "#{dir_relative}/common_resources" @locations_path = "#{dir_database}/locations.csv" @construction_sets_path = "#{dir_database}/construction_sets.csv" @constructions_opaque_path = "#{dir_database}/constructions_opaque.csv" @materials_opaque_path = "#{dir_database}/materials_opaque.csv" @constructions_glazing_path = "#{dir_database}/constructions_glazing.csv" @materials_glazing_path = "#{dir_database}/materials_glazing.csv" @constructions_path = "#{dir_database}/Constructions.csv" @construction_properties_path = "#{dir_database}/ConstructionProperties.csv" @lighting_sets_path = "#{dir_database}/lighting_sets.csv" @lighting_path = "#{dir_database}/lighting.csv" @materials_lighting_path = "#{dir_database}/materials_lighting.csv" @hvac_vent_ahu_path = "#{dir_database}/hvac_vent_ahu.csv" @materials_hvac_path = "#{dir_database}/materials_hvac.csv" @raw_paths = [ @locations_path, @construction_sets_path, @constructions_opaque_path, @materials_opaque_path, @constructions_glazing_path, @materials_glazing_path, @constructions_path, @construction_properties_path, @lighting_sets_path, @lighting_path, @materials_lighting_path, @hvac_vent_ahu_path, @materials_hvac_path ] @costs_path = "#{dir_database}/costs.csv" @costs_local_factors_path = "#{dir_database}/costs_local_factors.csv" @costing_database_path = "#{dir_relative}/costing_database.json" @error_log = "#{dir_relative}/errors.json" @cost_output_file = "#{dir_relative}/cost_output.json" @mech_sizing_data_file = "#{dir_relative}/mech_sizing.json" end |
Instance Attribute Details
#construction_properties_path ⇒ Object (readonly)
Returns the value of attribute construction_properties_path.
16 17 18 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 16 def construction_properties_path @construction_properties_path end |
#construction_sets_path ⇒ Object (readonly)
Returns the value of attribute construction_sets_path.
10 11 12 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 10 def construction_sets_path @construction_sets_path end |
#constructions_glazing_path ⇒ Object (readonly)
Returns the value of attribute constructions_glazing_path.
13 14 15 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 13 def constructions_glazing_path @constructions_glazing_path end |
#constructions_opaque_path ⇒ Object (readonly)
Returns the value of attribute constructions_opaque_path.
11 12 13 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 11 def constructions_opaque_path @constructions_opaque_path end |
#constructions_path ⇒ Object (readonly)
Returns the value of attribute constructions_path.
15 16 17 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 15 def constructions_path @constructions_path end |
#cost_output_file ⇒ Object (readonly)
Returns the value of attribute cost_output_file.
32 33 34 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 32 def cost_output_file @cost_output_file end |
#costing_database_path ⇒ Object (readonly)
Costing database location
28 29 30 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 28 def costing_database_path @costing_database_path end |
#costs_local_factors_path ⇒ Object
Returns the value of attribute costs_local_factors_path.
25 26 27 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 25 def costs_local_factors_path @costs_local_factors_path end |
#costs_path ⇒ Object
Costing data
24 25 26 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 24 def costs_path @costs_path end |
#error_log ⇒ Object (readonly)
Other
31 32 33 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 31 def error_log @error_log end |
#hvac_vent_ahu_path ⇒ Object (readonly)
Returns the value of attribute hvac_vent_ahu_path.
20 21 22 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 20 def hvac_vent_ahu_path @hvac_vent_ahu_path end |
#lighting_path ⇒ Object (readonly)
Returns the value of attribute lighting_path.
18 19 20 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 18 def lighting_path @lighting_path end |
#lighting_sets_path ⇒ Object (readonly)
Returns the value of attribute lighting_sets_path.
17 18 19 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 17 def lighting_sets_path @lighting_sets_path end |
#locations_path ⇒ Object (readonly)
Returns the value of attribute locations_path.
9 10 11 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 9 def locations_path @locations_path end |
#materials_glazing_path ⇒ Object (readonly)
Returns the value of attribute materials_glazing_path.
14 15 16 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 14 def materials_glazing_path @materials_glazing_path end |
#materials_hvac_path ⇒ Object (readonly)
Returns the value of attribute materials_hvac_path.
21 22 23 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 21 def materials_hvac_path @materials_hvac_path end |
#materials_lighting_path ⇒ Object (readonly)
Returns the value of attribute materials_lighting_path.
19 20 21 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 19 def materials_lighting_path @materials_lighting_path end |
#materials_opaque_path ⇒ Object (readonly)
Returns the value of attribute materials_opaque_path.
12 13 14 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 12 def materials_opaque_path @materials_opaque_path end |
#mech_sizing_data_file ⇒ Object (readonly)
Returns the value of attribute mech_sizing_data_file.
33 34 35 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 33 def mech_sizing_data_file @mech_sizing_data_file end |
#raw_paths ⇒ Object (readonly)
Raw data
7 8 9 |
# File 'lib/openstudio-standards/btap/costing/common_paths.rb', line 7 def raw_paths @raw_paths end |