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

Kind of matrix. More...

Inheritance diagram for Evolife.Ecology.Observer.Storage:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, Name)
 calls reset More...
 
def reset (self, length=-1)
 initializes the 'storage', 'average' and 'best' lists More...
 
def open_ (self, length=-1)
 marks the storage as 'open' More...
 
def store (self, vector)
 stores a vecor in the storage More...
 
def statistics (self)
 to be overloaded More...
 
def close_ (self)
 sets the storage as 'closed' More...
 
def get_data (self)
 returns a tuple of all the vectors in the storage More...
 

Public Attributes

 Name
 
 open
 
 storage
 
 average
 
 best
 
 length
 
 itemLength
 

Detailed Description

Kind of matrix.

Stores raw data, typically vectors of integers

Definition at line 122 of file Observer.py.

Constructor & Destructor Documentation

◆ __init__()

def Evolife.Ecology.Observer.Storage.__init__ (   self,
  Name 
)

Member Function Documentation

◆ close_()

def Evolife.Ecology.Observer.Storage.close_ (   self)

sets the storage as 'closed'

Definition at line 168 of file Observer.py.

◆ get_data()

def Evolife.Ecology.Observer.Storage.get_data (   self)

returns a tuple of all the vectors in the storage

Reimplemented in Evolife.Ecology.Observer.Meta_Examiner, and Evolife.Ecology.Observer.Observer.

Definition at line 178 of file Observer.py.

◆ open_()

def Evolife.Ecology.Observer.Storage.open_ (   self,
  length = -1 
)

marks the storage as 'open'

Definition at line 142 of file Observer.py.

◆ reset()

def Evolife.Ecology.Observer.Storage.reset (   self,
  length = -1 
)

initializes the 'storage', 'average' and 'best' lists

Definition at line 132 of file Observer.py.

◆ statistics()

def Evolife.Ecology.Observer.Storage.statistics (   self)

to be overloaded

Reimplemented in Evolife.Ecology.Observer.NumericStorage, and Evolife.Ecology.Observer.Meta_Examiner.

Definition at line 163 of file Observer.py.

◆ store()

def Evolife.Ecology.Observer.Storage.store (   self,
  vector 
)

stores a vecor in the storage

Definition at line 150 of file Observer.py.

Member Data Documentation

◆ average

Evolife.Ecology.Observer.Storage.average

Definition at line 137 of file Observer.py.

◆ best

Evolife.Ecology.Observer.Storage.best

Definition at line 138 of file Observer.py.

◆ itemLength

Evolife.Ecology.Observer.Storage.itemLength

Definition at line 140 of file Observer.py.

◆ length

Evolife.Ecology.Observer.Storage.length

Definition at line 139 of file Observer.py.

◆ Name

Evolife.Ecology.Observer.Storage.Name

Definition at line 129 of file Observer.py.

◆ open

Evolife.Ecology.Observer.Storage.open

Definition at line 135 of file Observer.py.

◆ storage

Evolife.Ecology.Observer.Storage.storage

Definition at line 136 of file Observer.py.


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