Construct version 5.4.4
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

Randomrandom ()
 
 media_user (Social_Media_no_followers *media)
 
virtual ~media_user ()
 
virtual void parse (media_event *read_event)=0
 Called during Social_Media_no_followers::communicate when an agent parses an event. This function is called once for every message. More...
 
virtual void reply (media_event *read_event)=0
 Called after media_user::parse 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 media_user::parse 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 media_user::parse 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 repost 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 using Social_Media_no_followers::create_post. 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...
 
virtual std::set< media_event * > read (media_event *read_event)=0
 Called during Social_Media_no_followers::think to determine which other events should be added to an InteractionMessage in addition to the read event. 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

Called during Social_Media_no_followers::think. Function should generate post events using Social_Media_no_followers::create_post.

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

Here is the caller graph for this function:

◆ 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 Reddit::default_media_user, SM_wf_emotions::default_media_user, Reddit::reddit_moderator, and Social_Media_no_followers::default_media_user.

Here is the caller graph for this function:

◆ parse()

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

Called during Social_Media_no_followers::communicate when an agent parses an event. This function is called once for every message.

Implemented in Reddit::default_media_user, Reddit::reddit_moderator, Social_Media_no_followers::default_media_user, and SM_wf_emotions::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 media_user::parse 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::default_media_user, Reddit::reddit_moderator, Social_Media_no_followers::default_media_user, and SM_wf_emotions::default_media_user.

Here is the caller graph for this function:

◆ random()

Random & Social_Media_no_followers::media_user::random ( )
inline

summary>

◆ read()

virtual std::set< media_event * > Social_Media_no_followers::media_user::read ( media_event read_event)
pure virtual

Called during Social_Media_no_followers::think to determine which other events should be added to an InteractionMessage in addition to the read event.

Implemented in Reddit::default_media_user, Reddit::reddit_moderator, 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 media_user::parse 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::default_media_user, Reddit::reddit_moderator, Social_Media_no_followers::default_media_user, and SM_wf_emotions::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 media_user::parse 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 repost based on the implementation's conditions.

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

Here is the caller graph for this function: