Class: OpenStudio::Workflow::Job

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

Instance Method Summary collapse

Constructor Details

#initialize(input_adapter, output_adapter, registry, options = {}) ⇒ Job

Returns a new instance of Job.



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/openstudio/workflow/job.rb', line 11

def initialize(input_adapter, output_adapter, registry, options = {})
  @options = options
  @input_adapter = input_adapter
  @output_adapter = output_adapter
  @registry = registry
  @logger = @registry[:logger]
  @results = {}

  @logger.debug "#{self.class} passed the following options #{@options}"
  @logger.debug "#{self.class} passed the following registry #{@registry.to_hash}" if @options[:debug]
end