C# Class DevelopStuff.EvolveStuff.Examples.BitBug.Bug

Inheritance: DevelopStuff.EvolveStuff.Core.Individual
Datei anzeigen Open project: whoisjake/evolvestuff Class Usage Examples

Public Methods

Method Description
Bug ( ) : System

Initializes a new instance of the T:BitBug class.

Bug ( System.Guid id, int values, System.DateTime dateCreated ) : System

Initializes a new instance of the T:BitBug class.

Reproduce ( Individual selectedParent, double mutationRate ) : Individual

Mates the current instance with the provide parent Individual.

ToString ( ) : string

Returns a that represents the current .

Private Methods

Method Description
RandomizeValues ( ) : void

Randomizes the values.

Method Details

Bug() public method

Initializes a new instance of the T:BitBug class.
public Bug ( ) : System
return System

Bug() public method

Initializes a new instance of the T:BitBug class.
public Bug ( System.Guid id, int values, System.DateTime dateCreated ) : System
id System.Guid The id.
values int The values.
dateCreated System.DateTime The date created.
return System

Reproduce() public method

Mates the current instance with the provide parent Individual.
public Reproduce ( Individual selectedParent, double mutationRate ) : Individual
selectedParent DevelopStuff.EvolveStuff.Core.Individual
mutationRate double
return DevelopStuff.EvolveStuff.Core.Individual

ToString() public method

Returns a that represents the current .
public ToString ( ) : string
return string