Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
|
Same as Landscape, but stores a third dimension in cells. More...
Public Member Functions | |
def | __init__ (self, Altitudes=[], AltitudeFile='', CellType=LandCell_3D) |
Public Member Functions inherited from Evolife.Graphics.Landscape.Landscape | |
def | __init__ (self, Width=100, Height=0, CellType=LandCell) |
def | setAdmissible (self, ContentType) |
def | Admissible (self, Content) |
def | ToricConversion (self, P) |
def | Modify (self, P, NewContent, check=False, Future=False) |
Changes content at a location. More... | |
def | Content (self, P, Future=False) |
def | Cell (self, P) |
def | __getitem__ (self, P) |
def | free (self, P) |
def | neighbourhoodLength (self, Radius=1) |
def | neighbours (self, P, Radius=1) |
returns neighbouring cells More... | |
def | segment (self, P0, P1) |
def | InspectNeighbourhood (self, Pos, Radius) |
Makes statistics about local content Returns a dictionary by Content. More... | |
def | statistics (self) |
scans ground and builds lists of cells depending on Content More... | |
def | update (self) |
updates the delayed effect of cells that have been modified More... | |
def | activation (self) |
Active cells produce their effect. More... | |
def | activate (self, Pos) |
Cell located at position 'Pos' has been modified and now produces its effect, possibly on neighbouring cells. More... | |
def | randomPosition (self, Content=None, check=False) |
picks an element of the grid with 'Content' in it More... | |
def | travel (self) |
Iteratively returns Cells of the grid. More... | |
Additional Inherited Members | |
Public Attributes inherited from Evolife.Graphics.Landscape.Landscape | |
ContentType | |
Size | |
Width | |
Height | |
Dimension | |
Ground | |
ActiveCells | |
Statistics | |
Same as Landscape, but stores a third dimension in cells.
Definition at line 243 of file Landscape.py.
def Evolife.Graphics.Landscape.Landscape_3D.__init__ | ( | self, | |
Altitudes = [] , |
|||
AltitudeFile = '' , |
|||
CellType = LandCell_3D |
|||
) |
Reimplemented from Evolife.Graphics.Landscape.Landscape.
Definition at line 246 of file Landscape.py.