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.



41
42
43
44
45
46
47
48
49
50
51
# File 'lib/openstudio/workflow/job.rb', line 41

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