Class: RunPreflight

Inherits:
Object
  • Object
show all
Defined in:
lib/openstudio/workflow/jobs/run_preflight/run_preflight.rb

Overview

Run Prelight job to prepare the directory for simulations.

Instance Method Summary collapse

Constructor Details

#initialize(directory, logger, time_logger, adapter, options = {}) ⇒ RunPreflight

Returns a new instance of RunPreflight.



22
23
24
25
26
27
28
29
30
# File 'lib/openstudio/workflow/jobs/run_preflight/run_preflight.rb', line 22

def initialize(directory, logger, time_logger, adapter, options = {})
  defaults = {}
  @options = defaults.merge(options)
  @directory = directory
  @adapter = adapter
  @logger = logger
  @time_logger = time_logger
  @results = {}
end

Instance Method Details

#performObject



32
33
34
35
36
37
38
39
40
41
# File 'lib/openstudio/workflow/jobs/run_preflight/run_preflight.rb', line 32

def perform
  @logger.info "Calling #{__method__} in the #{self.class} class"

  @adapter.communicate_started @directory, @options

  # At the moment this does nothing.

  # return the results back to the caller -- always
  @results
end