Class: Smith::Workflow::OptimizationState

Inherits:
Struct
  • Object
show all
Defined in:
lib/smith/workflow/optimization_state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config, prepared_input) ⇒ OptimizationState

Returns a new instance of OptimizationState.



8
9
10
# File 'lib/smith/workflow/optimization_state.rb', line 8

def initialize(config, prepared_input)
  super(config, prepared_input, nil, nil, nil, nil, nil)
end

Instance Attribute Details

#candidateObject

Returns the value of attribute candidate

Returns:

  • (Object)

    the current value of candidate



5
6
7
# File 'lib/smith/workflow/optimization_state.rb', line 5

def candidate
  @candidate
end

#configObject

Returns the value of attribute config

Returns:

  • (Object)

    the current value of config



5
6
7
# File 'lib/smith/workflow/optimization_state.rb', line 5

def config
  @config
end

#evaluator_classObject

Returns the value of attribute evaluator_class

Returns:

  • (Object)

    the current value of evaluator_class



5
6
7
# File 'lib/smith/workflow/optimization_state.rb', line 5

def evaluator_class
  @evaluator_class
end

#feedbackObject

Returns the value of attribute feedback

Returns:

  • (Object)

    the current value of feedback



5
6
7
# File 'lib/smith/workflow/optimization_state.rb', line 5

def feedback
  @feedback
end

#generator_classObject

Returns the value of attribute generator_class

Returns:

  • (Object)

    the current value of generator_class



5
6
7
# File 'lib/smith/workflow/optimization_state.rb', line 5

def generator_class
  @generator_class
end

#last_scoreObject

Returns the value of attribute last_score

Returns:

  • (Object)

    the current value of last_score



5
6
7
# File 'lib/smith/workflow/optimization_state.rb', line 5

def last_score
  @last_score
end

#prepared_inputObject

Returns the value of attribute prepared_input

Returns:

  • (Object)

    the current value of prepared_input



5
6
7
# File 'lib/smith/workflow/optimization_state.rb', line 5

def prepared_input
  @prepared_input
end