Class: Honeybee::SimulationOutput
- Inherits:
-
ModelObject
- Object
- ModelObject
- Honeybee::SimulationOutput
- Defined in:
- lib/honeybee/simulation/simulation_output.rb,
lib/from_openstudio/simulation/simulation_output.rb
Instance Attribute Summary
Attributes inherited from ModelObject
#errors, #openstudio_object, #warnings
Class Method Summary collapse
- .from_model(openstudio_model) ⇒ Object
- .outputs_from_model(openstudio_model) ⇒ Object
- .summary_reports_from_model(openstudio_model) ⇒ Object
Instance Method Summary collapse
Methods inherited from ModelObject
#allowable_types, clean_identifier, clean_name, #find_existing_openstudio_object, #initialize, #method_missing, read_from_disk, #to_openstudio, truncate
Constructor Details
This class inherits a constructor from Honeybee::ModelObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Honeybee::ModelObject
Class Method Details
.from_model(openstudio_model) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/from_openstudio/simulation/simulation_output.rb', line 37 def self.from_model(openstudio_model) hash = {} hash[:type] = 'SimulationOutput' hash[:reporting_frequency] = 'Hourly' hash[:include_sqlite] = true hash[:include_html] = true hash[:outputs] = outputs_from_model(openstudio_model) hash[:summary_reports] = summary_reports_from_model(openstudio_model) hash end |
.outputs_from_model(openstudio_model) ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/from_openstudio/simulation/simulation_output.rb', line 49 def self.outputs_from_model(openstudio_model) result = [] openstudio_model.getOutputVariables.each do |output| result << output.variableName end result end |
.summary_reports_from_model(openstudio_model) ⇒ Object
57 58 59 60 61 62 63 64 |
# File 'lib/from_openstudio/simulation/simulation_output.rb', line 57 def self.summary_reports_from_model(openstudio_model) result = [] summary_reports = openstudio_model.getOutputTableSummaryReports summary_reports.summaryReports.each do |summary_report| result << summary_report end result end |
Instance Method Details
#defaults ⇒ Object
37 38 39 |
# File 'lib/honeybee/simulation/simulation_output.rb', line 37 def defaults @@schema[:components][:schemas][:SimulationOutput][:properties] end |