A group is mainly a list of individuals.
More...
|
def | __init__ (self, Scenario, ID=1, Size=100) |
|
def | free_ID (self, Prefix=None) |
| returns an available ID More...
|
|
def | createIndividual (self, ID=None, Newborn=True) |
| Calls the 'Individual' class. More...
|
|
def | whoIs (self, Number) |
| Returns the Numberth individual. More...
|
|
def | isMember (self, indiv) |
|
def | update_ (self, flagRanking=False, display=False) |
| updates various facts about the group More...
|
|
def | statistics (self) |
| Updates various statistics about the group. More...
|
|
def | positions (self) |
| lists agents' locations More...
|
|
def | season (self, year) |
| This function is called at the beginning of each year. More...
|
|
def | kill (self, memberNbr) |
| suppress one specified individual of the group More...
|
|
def | remove_ (self, memberNbr) |
| tells a member it should die and then removes it from the group More...
|
|
def | remove_member (self, indiv) |
| calls 'remove_' with indiv's index in the group More...
|
|
def | extract (self, indiv) |
| synonymous to 'remove_member' More...
|
|
def | receive (self, newcomer) |
| insert a new member in the group More...
|
|
def | __len__ (self) |
|
def | __iter__ (self) |
|
A group is mainly a list of individuals.
Definition at line 37 of file Group.py.
◆ __init__()
def Evolife.Ecology.Group.Group.__init__ |
( |
|
self, |
|
|
|
Scenario, |
|
|
|
ID = 1 , |
|
|
|
Size = 100 |
|
) |
| |
◆ __iter__()
def Evolife.Ecology.Group.Group.__iter__ |
( |
|
self | ) |
|
◆ __len__()
def Evolife.Ecology.Group.Group.__len__ |
( |
|
self | ) |
|
◆ createIndividual()
def Evolife.Ecology.Group.Group.createIndividual |
( |
|
self, |
|
|
|
ID = None , |
|
|
|
Newborn = True |
|
) |
| |
◆ extract()
def Evolife.Ecology.Group.Group.extract |
( |
|
self, |
|
|
|
indiv |
|
) |
| |
synonymous to 'remove_member'
Definition at line 138 of file Group.py.
◆ free_ID()
def Evolife.Ecology.Group.Group.free_ID |
( |
|
self, |
|
|
|
Prefix = None |
|
) |
| |
returns an available ID
Definition at line 56 of file Group.py.
◆ isMember()
def Evolife.Ecology.Group.Group.isMember |
( |
|
self, |
|
|
|
indiv |
|
) |
| |
◆ kill()
def Evolife.Ecology.Group.Group.kill |
( |
|
self, |
|
|
|
memberNbr |
|
) |
| |
◆ positions()
def Evolife.Ecology.Group.Group.positions |
( |
|
self | ) |
|
lists agents' locations
Definition at line 108 of file Group.py.
◆ receive()
def Evolife.Ecology.Group.Group.receive |
( |
|
self, |
|
|
|
newcomer |
|
) |
| |
insert a new member in the group
Definition at line 143 of file Group.py.
◆ remove_()
def Evolife.Ecology.Group.Group.remove_ |
( |
|
self, |
|
|
|
memberNbr |
|
) |
| |
◆ remove_member()
def Evolife.Ecology.Group.Group.remove_member |
( |
|
self, |
|
|
|
indiv |
|
) |
| |
calls 'remove_' with indiv's index in the group
Definition at line 133 of file Group.py.
◆ season()
def Evolife.Ecology.Group.Group.season |
( |
|
self, |
|
|
|
year |
|
) |
| |
◆ statistics()
def Evolife.Ecology.Group.Group.statistics |
( |
|
self | ) |
|
Updates various statistics about the group.
Calls 'observation' for each member
Definition at line 98 of file Group.py.
◆ update_()
def Evolife.Ecology.Group.Group.update_ |
( |
|
self, |
|
|
|
flagRanking = False , |
|
|
|
display = False |
|
) |
| |
◆ whoIs()
def Evolife.Ecology.Group.Group.whoIs |
( |
|
self, |
|
|
|
Number |
|
) |
| |
Returns the Numberth individual.
Definition at line 71 of file Group.py.
◆ best_score
Evolife.Ecology.Group.Group.best_score |
◆ Examiner
Evolife.Ecology.Group.Group.Examiner |
◆ ID
Evolife.Ecology.Group.Group.ID |
◆ location
Evolife.Ecology.Group.Group.location |
◆ members
Evolife.Ecology.Group.Group.members |
◆ ranking
Evolife.Ecology.Group.Group.ranking |
◆ Scenario
Evolife.Ecology.Group.Group.Scenario |
◆ size
Evolife.Ecology.Group.Group.size |
The documentation for this class was generated from the following file: