class_body
{ "{"
block_comment "/** List of chromosomes */"
field_declaration
modifiers
private "private"
generic_type
type_identifier "List"
type_arguments
< "<"
type_identifier "Chromosome"
> ">"
variable_declarator
identifier "chromosomes"
; ";"
block_comment "/** maximal size of the population */"
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "populationLimit"
; ";"
block_comment "/**\n * Creates a new ListPopulation instance and initial"...
constructor_declaration (+35 nodes collapsed)
block_comment "/**\n * Creates a new ListPopulation instance.\n * <p>"...
constructor_declaration (+160 nodes collapsed)
block_comment "/**\n * Sets the list of chromosomes.\n * <p>Note: thi"...
method_declaration (+110 nodes collapsed)
block_comment "/**\n * Add a {@link Collection} of chromosomes to this {"...
method_declaration (+86 nodes collapsed)
block_comment "/**\n * Returns an unmodifiable list of the chromosomes i"...
method_declaration (+27 nodes collapsed)
block_comment "/**\n * Access the list of chromosomes.\n * @return th"...
method_declaration
modifiers
protected "protected"
generic_type
type_identifier "List"
type_arguments
< "<"
type_identifier "Chromosome"
> ">"
identifier "getChromosomeList"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "chromosomes"
; ";"
} "}"
block_comment "/**\n * Add the given chromosome to the population.\n "...
method_declaration (+72 nodes collapsed)
block_comment "/**\n * Access the fittest chromosome in this population."...
method_declaration (+73 nodes collapsed)
block_comment "/**\n * Access the maximum population size.\n * @retur"...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getPopulationLimit"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "populationLimit"
; ";"
} "}"
block_comment "/**\n * Sets the maximal population size.\n * @param p"...
method_declaration (+91 nodes collapsed)
block_comment "/**\n * Access the current population size.\n * @retur"...
method_declaration (+25 nodes collapsed)
block_comment "/**\n * {@inheritDoc}\n */"
method_declaration (+27 nodes collapsed)
block_comment "/**\n * Returns an iterator over the unmodifiable list of"...
method_declaration
modifiers
public "public"
generic_type
type_identifier "Iterator"
type_arguments
< "<"
type_identifier "Chromosome"
> ">"
identifier "iterator"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
method_invocation any 1:2
identifier "chromosomes"
. "."
identifier "iterator"
argument_list
( "("
) ")"
; ";"
} "}"
} "}"