Construct version 5.4.4
An agent based modeling framework
Social_Media_with_followers::media_user Struct Referenceabstract

Class that adds functions based around the follower network to Social_Media_no_followers::media_user. More...

Inheritance diagram for Social_Media_with_followers::media_user:

Public Member Functions

virtual bool follow_user (unsigned int alter_agent_index)=0
 Returns true if this user decides to follow an agent More...
 
virtual bool unfollow_user (unsigned int alter_agent_index)=0
 Returns true if this user decides to unfollow an agent More...
 
virtual bool respond_to_follow (unsigned int alter_agent_index)=0
 An alter has decided to follow this user and can decide to reciprocate that following. More...
 
virtual unsigned int consider_recommendations (void)=0
 Returns how many agents should be considered to be followed in Social_Media_with_followers::add_followees More...
 
virtual float get_charisma ()=0
 Returns the user's charisma or how likable the user is independent of other user attributes. More...
 

Detailed Description

Class that adds functions based around the follower network to Social_Media_no_followers::media_user.

This class adds the decision making functions that deal with the follower network. Agents can be asked whether they wish to follow or unfollow an agent. They also state how many recommendations they are willing to view to view as well as their response to another agent following them.

Member Function Documentation

◆ consider_recommendations()

virtual unsigned int Social_Media_with_followers::media_user::consider_recommendations ( void  )
pure virtual

Returns how many agents should be considered to be followed in Social_Media_with_followers::add_followees

Implemented in SM_wf_emotions::default_media_user, and Social_Media_with_followers::default_media_user.

Here is the caller graph for this function:

◆ follow_user()

virtual bool Social_Media_with_followers::media_user::follow_user ( unsigned int  alter_agent_index)
pure virtual

Returns true if this user decides to follow an agent

Implemented in SM_wf_emotions::default_media_user, and Social_Media_with_followers::default_media_user.

Here is the caller graph for this function:

◆ get_charisma()

virtual float Social_Media_with_followers::media_user::get_charisma ( )
pure virtual

Returns the user's charisma or how likable the user is independent of other user attributes.

Implemented in SM_wf_emotions::default_media_user, and Social_Media_with_followers::default_media_user.

◆ respond_to_follow()

virtual bool Social_Media_with_followers::media_user::respond_to_follow ( unsigned int  alter_agent_index)
pure virtual

An alter has decided to follow this user and can decide to reciprocate that following.

Implemented in SM_wf_emotions::default_media_user, and Social_Media_with_followers::default_media_user.

Here is the caller graph for this function:

◆ unfollow_user()

virtual bool Social_Media_with_followers::media_user::unfollow_user ( unsigned int  alter_agent_index)
pure virtual

Returns true if this user decides to unfollow an agent

Implemented in SM_wf_emotions::default_media_user, and Social_Media_with_followers::default_media_user.

Here is the caller graph for this function: