Class: DecisionAgent::Simulation::WhatIfAnalyzer::GridConfig
- Inherits:
-
Object
- Object
- DecisionAgent::Simulation::WhatIfAnalyzer::GridConfig
- Defined in:
- lib/decision_agent/simulation/what_if_analyzer.rb
Overview
Configuration object for 2D grid generation
Instance Attribute Summary collapse
-
#analysis_agent ⇒ Object
readonly
Returns the value of attribute analysis_agent.
-
#base_scenario ⇒ Object
readonly
Returns the value of attribute base_scenario.
-
#max1 ⇒ Object
readonly
Returns the value of attribute max1.
-
#max2 ⇒ Object
readonly
Returns the value of attribute max2.
-
#min1 ⇒ Object
readonly
Returns the value of attribute min1.
-
#min2 ⇒ Object
readonly
Returns the value of attribute min2.
-
#param1_name ⇒ Object
readonly
Returns the value of attribute param1_name.
-
#param2_name ⇒ Object
readonly
Returns the value of attribute param2_name.
-
#resolution ⇒ Object
readonly
Returns the value of attribute resolution.
Class Method Summary collapse
Instance Attribute Details
#analysis_agent ⇒ Object (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_scenario ⇒ Object (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 |
#max1 ⇒ Object (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 |
#max2 ⇒ Object (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 |
#min1 ⇒ Object (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 |
#min2 ⇒ Object (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_name ⇒ Object (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_name ⇒ Object (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 |
#resolution ⇒ Object (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 |