Exception: Algorithm::Genetic::Terminated

Inherits:
StandardError
  • Object
show all
Defined in:
lib/algorithm/genetic/population.rb

Overview

terminated exception

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gene) ⇒ Terminated

Returns a new instance of Terminated.



9
10
11
12
# File 'lib/algorithm/genetic/population.rb', line 9

def initialize(gene)
	@gene = gene
	super('terminated.')
end

Instance Attribute Details

#geneObject (readonly)

Returns the value of attribute gene.



7
8
9
# File 'lib/algorithm/genetic/population.rb', line 7

def gene
  @gene
end