Construct version 5.4.4
An agent based modeling framework
|
Base class for the behavior of users on the social media. More...
Public Member Functions | |
Random & | random () |
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_followers * | media_ptr |
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
|
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.
|
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.
|
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.
|
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.
|
inline |
summary>
|
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.
|
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.
|
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.