Construct version 5.4.3
An agent based modeling framework
Social_Media_no_followers::media_user Struct Referenceabstract

Base class for the behavior of users on the social media. More...

Inheritance diagram for Social_Media_no_followers::media_user:
Collaboration diagram for Social_Media_no_followers::media_user:

Public Member Functions

 media_user (Social_Media_no_followers *media)
 
virtual ~media_user ()
 
virtual void read (media_event *read_event)=0
 Called during Social_Media_no_followers::communicate when an agent is to read and parse an event. This function is called once for every message. More...
 
virtual void reply (media_event *read_event)=0
 Called after read only if this agent posseses the knowledge in the read event. This function should create a reply based on the implementation's conditions. More...
 
virtual void quote (media_event *read_event)=0
 Called after read only if this agent posseses the knowledge in the read event. This function should create a quote based on the implementation's conditions. More...
 
virtual void repost (media_event *read_event)=0
 Called after read only if this agent posseses the knowledge in the read event and read_event::type equals media_event::event_types::post. This function should create a reply based on the implementation's conditions. More...
 
virtual void generate_post_events (void)=0
 Called during Social_Media_no_followers::think. Function should generate post events that are added to Social_Media_no_followers::list_of_events. More...
 
virtual unsigned int get_read_count (void)=0
 Called during Social_Media_no_followers::think to determine how many events to read in a user's feed. More...
 

Public Attributes

Social_Media_no_followersmedia_ptr
 

Detailed Description

Base class for the behavior of users on the social media.

The class provides the framework for agent descision making in the model environment. Purely virtual functions are called by Social_Media_no_followers

Member Function Documentation

◆ generate_post_events()

virtual void Social_Media_no_followers::media_user::generate_post_events ( void  )
pure virtual

◆ get_read_count()

virtual unsigned int Social_Media_no_followers::media_user::get_read_count ( void  )
pure virtual

Called during Social_Media_no_followers::think to determine how many events to read in a user's feed.

Implemented in SM_wf_emotions::default_media_user, Reddit::reddit_user, Reddit::reddit_moderator, SM_nf_emotions::default_media_user, and Social_Media_no_followers::default_media_user.

Here is the caller graph for this function:

◆ quote()

virtual void Social_Media_no_followers::media_user::quote ( media_event read_event)
pure virtual

Called after read only if this agent posseses the knowledge in the read event. This function should create a quote based on the implementation's conditions.

Implemented in Reddit::reddit_user, Reddit::reddit_moderator, SM_nf_emotions::default_media_user, SM_wf_emotions::default_media_user, and Social_Media_no_followers::default_media_user.

Here is the caller graph for this function:

◆ read()

virtual void Social_Media_no_followers::media_user::read ( media_event read_event)
pure virtual

Called during Social_Media_no_followers::communicate when an agent is to read and parse an event. This function is called once for every message.

Implemented in Reddit::reddit_user, Reddit::reddit_moderator, SM_wf_emotions::default_media_user, and Social_Media_no_followers::default_media_user.

Here is the caller graph for this function:

◆ reply()

virtual void Social_Media_no_followers::media_user::reply ( media_event read_event)
pure virtual

Called after read only if this agent posseses the knowledge in the read event. This function should create a reply based on the implementation's conditions.

Implemented in Reddit::reddit_user, Reddit::reddit_moderator, SM_nf_emotions::default_media_user, SM_wf_emotions::default_media_user, and Social_Media_no_followers::default_media_user.

Here is the caller graph for this function:

◆ repost()

virtual void Social_Media_no_followers::media_user::repost ( media_event read_event)
pure virtual

Called after read only if this agent posseses the knowledge in the read event and read_event::type equals media_event::event_types::post. This function should create a reply based on the implementation's conditions.

Implemented in Reddit::reddit_user, Reddit::reddit_moderator, SM_nf_emotions::default_media_user, SM_wf_emotions::default_media_user, and Social_Media_no_followers::default_media_user.

Here is the caller graph for this function:

Member Data Documentation

◆ media_ptr

Social_Media_no_followers* Social_Media_no_followers::media_user::media_ptr

summary>