Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Evolife.Ecology.Phenotype.Phene Class Reference

class Phene: define a non-heritable characteristics More...

Public Member Functions

def __init__ (self, Name, FlagRandom=True)
 creates a zero-valued or a random characteristics, depending on FlagRandom More...
 
def relative_value (self)
 returns the Phene's value between 0 and 100 More...
 
def value (self, Value=None, Levelling=False)
 sets or merely reads the Phene's value, possibly by limiting it to MaxPheneValue More...
 

Public Attributes

 Name
 

Static Public Attributes

int MaxPheneValue = 100
 

Detailed Description

class Phene: define a non-heritable characteristics

Definition at line 30 of file Phenotype.py.

Constructor & Destructor Documentation

◆ __init__()

def Evolife.Ecology.Phenotype.Phene.__init__ (   self,
  Name,
  FlagRandom = True 
)

creates a zero-valued or a random characteristics, depending on FlagRandom

Definition at line 35 of file Phenotype.py.

Member Function Documentation

◆ relative_value()

def Evolife.Ecology.Phenotype.Phene.relative_value (   self)

returns the Phene's value between 0 and 100

Definition at line 44 of file Phenotype.py.

◆ value()

def Evolife.Ecology.Phenotype.Phene.value (   self,
  Value = None,
  Levelling = False 
)

sets or merely reads the Phene's value, possibly by limiting it to MaxPheneValue

Definition at line 49 of file Phenotype.py.

Member Data Documentation

◆ MaxPheneValue

int Evolife.Ecology.Phenotype.Phene.MaxPheneValue = 100
static

Definition at line 33 of file Phenotype.py.

◆ Name

Evolife.Ecology.Phenotype.Phene.Name

Definition at line 38 of file Phenotype.py.


The documentation for this class was generated from the following file: