C# Класс MZ.GeneticSimulation.DataModel.Creature

The creature.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
IdOfSpecies int

Private Properties

Свойство Тип Описание
GetSelfishGenesOutStrength double

Открытые методы

Метод Описание
BreakRedundantConnections ( ) : void

Breaks connection with unused grandparents.

Creature ( Creature mommy, Creature daddy ) : System

Initializes a new instance of the Creature class.

Creature ( int idOfSpecies, World world ) : System

Initializes a new instance of the Creature class.

Mutate ( ) : void

Mutates creature.

Приватные методы

Метод Описание
GetSelfishGenesOutStrength ( Relation whoAreYou ) : double

Gets strength which is given to relation by this creature.

Описание методов

BreakRedundantConnections() публичный Метод

Breaks connection with unused grandparents.
public BreakRedundantConnections ( ) : void
Результат void

Creature() публичный Метод

Initializes a new instance of the Creature class.
public Creature ( Creature mommy, Creature daddy ) : System
mommy Creature /// The mommy. ///
daddy Creature /// The daddy. ///
Результат System

Creature() публичный Метод

Initializes a new instance of the Creature class.
public Creature ( int idOfSpecies, World world ) : System
idOfSpecies int /// The id of species. ///
world World /// The world. ///
Результат System

Mutate() публичный Метод

Mutates creature.
public Mutate ( ) : void
Результат void

Описание свойств

IdOfSpecies публичное свойство

The id of species.
public int IdOfSpecies
Результат int