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

Augmented version of Friends for asymmetrical links - replaces 'Alliances'. More...

Inheritance diagram for Evolife.Social.Alliances.Follower:
Inheritance graph
[legend]
Collaboration diagram for Evolife.Social.Alliances.Follower:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, MaxGurus, MaxFollowers=0)
 calls the Friend constructor for followees. More...
 
def F_affiliable (self, perf, Guru, G_perf, conservative=True)
 Checks whether affiliation is possible by checking acceptance both in friends and in followers. More...
 
def F_follow (self, perf, G, G_perf, conservative=True)
 the individual wants to be G's disciple because of some of G's performance G may evaluate the individual's performance too More...
 
def G_quit_ (self, Guru)
 the individual no longer follows its guru More...
 
def F_quit_ (self, Follower)
 the individual does not want its disciple any longer More...
 
def get_friend (self, Offer, Partner, PartnerOffer)
 Checks mutual acceptance and then establishes friendship. More...
 
def end_friendship (self, Partner)
 Partners remove each other from their address book. More...
 
def nbFollowers (self)
 
def follower_rank (self, Friend)
 Returns Friend's rank among self's followers. More...
 
def forgetAll (self)
 calls 'detach' for self's followers and then for self. More...
 
def detach (self)
 The individual quits its guru and quits its followers. More...
 
def consistency (self)
 checks social links consistency (self belongs to the followers of its followees) More...
 
- Public Member Functions inherited from Evolife.Social.Alliances.Friend
def __init__ (self, MaxFriends=1)
 Defines Friend as a club. More...
 
def accepts (self, F_perf)
 asymmetrical links # More...
 
def affiliable (self, F_perf, conservative=True)
 Checks whether affiliation is possible. More...
 
def follow (self, F, F_perf, conservative=True, Quit=None)
 the individual wants to be F's disciple due to F's performance More...
 
def follows (self, Friend)
 checks whether Friend belongs to actual friends More...
 
def quit_ (self, Friend=None)
 the individual no longer follows its friend More...
 
def best_friend (self)
 
def Max (self)
 
def Friends (self, ordered=True)
 returns a list of friend names (possibly ordered by decreasing performance) More...
 
def names (self)
 returns the list of friends' names More...
 
def rank (self, Friend)
 returns the rank of Friend in the list of decreasing performances More...
 
def nbFriends (self)
 Number of friends. More...
 
def size (self)
 Number of friends. More...
 
def sizeMax (self)
 
def lessening_friendship (self, Factor=0.9)
 all performances are reduced (represents temporal erosion) More...
 
def checkNetwork (self, membershipFunction=None)
 updates links by forgetting friends that are gone More...
 
def detach (self)
 The individual quits all its friends
More...
 
def acquaintable (self, Offer, Partner, PartnerOffer)
 symmetrical links # More...
 
def get_friend (self, Offer, Partner, PartnerOffer)
 Checks mutual acceptance and then establishes friendship. More...
 
def acquainted (self, Partner)
 same as get_friend/3 with no performance More...
 
def end_friendship (self, Partner)
 Partners remove each other from their address book. More...
 
def forgetAll (self)
 The individual quits its friends
More...
 
def __iter__ (self)
 
def __len__ (self)
 
def social_signature (self)
 returns the ordered list of friends More...
 
def signature (self)
 same as social_signature More...
 

Public Attributes

 followers
 
- Public Attributes inherited from Evolife.Social.Alliances.Friend
 friends
 

Detailed Description

Augmented version of Friends for asymmetrical links - replaces 'Alliances'.

'Follower' in addition knows about who is following self

Definition at line 320 of file Alliances.py.

Constructor & Destructor Documentation

◆ __init__()

def Evolife.Social.Alliances.Follower.__init__ (   self,
  MaxGurus,
  MaxFollowers = 0 
)

calls the Friend constructor for followees.

creates another Friend object for followers

Reimplemented from Evolife.Social.Alliances.Friend.

Reimplemented in Evolife.Social.SocialSimulation.Social_Individual, and Evolife.Ecology.Individual.EvolifeIndividual.

Definition at line 325 of file Alliances.py.

Member Function Documentation

◆ consistency()

def Evolife.Social.Alliances.Follower.consistency (   self)

checks social links consistency (self belongs to the followers of its followees)

Definition at line 419 of file Alliances.py.

◆ detach()

def Evolife.Social.Alliances.Follower.detach (   self)

The individual quits its guru and quits its followers.

Reimplemented from Evolife.Social.Alliances.Friend.

Definition at line 410 of file Alliances.py.

◆ end_friendship()

def Evolife.Social.Alliances.Follower.end_friendship (   self,
  Partner 
)

Partners remove each other from their address book.

Reimplemented from Evolife.Social.Alliances.Friend.

Definition at line 388 of file Alliances.py.

◆ F_affiliable()

def Evolife.Social.Alliances.Follower.F_affiliable (   self,
  perf,
  Guru,
  G_perf,
  conservative = True 
)

Checks whether affiliation is possible by checking acceptance both in friends and in followers.

Definition at line 334 of file Alliances.py.

◆ F_follow()

def Evolife.Social.Alliances.Follower.F_follow (   self,
  perf,
  G,
  G_perf,
  conservative = True 
)

the individual wants to be G's disciple because of some of G's performance G may evaluate the individual's performance too

Definition at line 343 of file Alliances.py.

◆ F_quit_()

def Evolife.Social.Alliances.Follower.F_quit_ (   self,
  Follower 
)

the individual does not want its disciple any longer

Definition at line 369 of file Alliances.py.

◆ follower_rank()

def Evolife.Social.Alliances.Follower.follower_rank (   self,
  Friend 
)

Returns Friend's rank among self's followers.

Definition at line 398 of file Alliances.py.

◆ forgetAll()

def Evolife.Social.Alliances.Follower.forgetAll (   self)

calls 'detach' for self's followers and then for self.

Reimplemented from Evolife.Social.Alliances.Friend.

Definition at line 404 of file Alliances.py.

◆ G_quit_()

def Evolife.Social.Alliances.Follower.G_quit_ (   self,
  Guru 
)

the individual no longer follows its guru

Definition at line 361 of file Alliances.py.

◆ get_friend()

def Evolife.Social.Alliances.Follower.get_friend (   self,
  Offer,
  Partner,
  PartnerOffer 
)

Checks mutual acceptance and then establishes friendship.

Reimplemented from Evolife.Social.Alliances.Friend.

Definition at line 377 of file Alliances.py.

◆ nbFollowers()

def Evolife.Social.Alliances.Follower.nbFollowers (   self)

Definition at line 396 of file Alliances.py.

Member Data Documentation

◆ followers

Evolife.Social.Alliances.Follower.followers

Definition at line 331 of file Alliances.py.


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