C# Class MZ.GeneticSimulation.DataModel.World

The world.
显示文件 Open project: zzz77/GeneticSimulation Class Usage Examples

Public Properties

Property Type Description
Species List[]

Public Methods

Method Description
Run ( int generations ) : void

Simulates evolution.

World ( ) : System.Collections.Generic

Initializes a new instance of the World class.

Private Methods

Method Description
MakeChildren ( ) : void

Creates new generation of creatures.

Mutate ( ) : void

Mutates current generation of creatures.

SelectBest ( ) : void

Selects best creatures.

Method Details

Run() public method

Simulates evolution.
public Run ( int generations ) : void
generations int /// Number of iterations of simulation. ///
return void

World() public method

Initializes a new instance of the World class.
public World ( ) : System.Collections.Generic
return System.Collections.Generic

Property Details

Species public_oe property

The species.
public List[] Species
return List[]