Class: DecisionAgent::Simulation::WhatIfAnalyzer::GridConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/decision_agent/simulation/what_if_analyzer.rb

Overview

Configuration object for 2D grid generation

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#analysis_agentObject (readonly)

Returns the value of attribute analysis_agent.



440
441
442
# File 'lib/decision_agent/simulation/what_if_analyzer.rb', line 440

def analysis_agent
  @analysis_agent
end

#base_scenarioObject (readonly)

Returns the value of attribute base_scenario.



440
441
442
# File 'lib/decision_agent/simulation/what_if_analyzer.rb', line 440

def base_scenario
  @base_scenario
end

#max1Object (readonly)

Returns the value of attribute max1.



440
441
442
# File 'lib/decision_agent/simulation/what_if_analyzer.rb', line 440

def max1
  @max1
end

#max2Object (readonly)

Returns the value of attribute max2.



440
441
442
# File 'lib/decision_agent/simulation/what_if_analyzer.rb', line 440

def max2
  @max2
end

#min1Object (readonly)

Returns the value of attribute min1.



440
441
442
# File 'lib/decision_agent/simulation/what_if_analyzer.rb', line 440

def min1
  @min1
end

#min2Object (readonly)

Returns the value of attribute min2.



440
441
442
# File 'lib/decision_agent/simulation/what_if_analyzer.rb', line 440

def min2
  @min2
end

#param1_nameObject (readonly)

Returns the value of attribute param1_name.



440
441
442
# File 'lib/decision_agent/simulation/what_if_analyzer.rb', line 440

def param1_name
  @param1_name
end

#param2_nameObject (readonly)

Returns the value of attribute param2_name.



440
441
442
# File 'lib/decision_agent/simulation/what_if_analyzer.rb', line 440

def param2_name
  @param2_name
end

#resolutionObject (readonly)

Returns the value of attribute resolution.



440
441
442
# File 'lib/decision_agent/simulation/what_if_analyzer.rb', line 440

def resolution
  @resolution
end

Class Method Details

.build(base_scenario:, param1_name:, param2_name:, params:, resolution:, analysis_agent:) ⇒ Object



442
443
444
445
446
447
448
449
450
451
452
453
454
455
# File 'lib/decision_agent/simulation/what_if_analyzer.rb', line 442

def self.build(base_scenario:, param1_name:, param2_name:, params:, resolution:, analysis_agent:)
  config_hash = {
    base_scenario: base_scenario,
    param1_name: param1_name,
    param2_name: param2_name,
    min1: params[:min1],
    max1: params[:max1],
    min2: params[:min2],
    max2: params[:max2],
    resolution: resolution,
    analysis_agent: analysis_agent
  }
  new(config_hash)
end