Model of a sequence diagram activity. More...
Model of a sequence diagram activity.
Definition at line 31 of file activity.h.
#include <activity.h>
Public Member Functions | |
activity (eid_t id) | |
Constructor. | |
void | add_message (message m) |
Add a message call to the activity. | |
std::vector< message > & | messages () |
Get list of messages in the activity. | |
const std::vector< message > & | messages () const |
Get list of messages in the activity. | |
eid_t | from () const |
Get the id of activity parent participant. | |
void | add_caller (eid_t caller) |
const std::set< eid_t > & | callers () const |
void | set_callers (std::set< eid_t > callers) |
Private Attributes | |
eid_t | from_ |
std::vector< message > | messages_ |
std::set< eid_t > | callers_ |
clanguml::sequence_diagram::model::activity::activity | ( | eid_t | id | ) |
Constructor.
id | Id of the participant parent for the activity |
Definition at line 23 of file activity.cc.
void clanguml::sequence_diagram::model::activity::add_caller | ( | eid_t | caller | ) |
Definition at line 36 of file activity.cc.
void clanguml::sequence_diagram::model::activity::add_message | ( | message | m | ) |
Add a message call to the activity.
m | Message model |
Definition at line 28 of file activity.cc.
const std::set< eid_t > & clanguml::sequence_diagram::model::activity::callers | ( | ) | const |
Definition at line 38 of file activity.cc.
eid_t clanguml::sequence_diagram::model::activity::from | ( | ) | const |
Get the id of activity parent participant.
Definition at line 34 of file activity.cc.
std::vector< message > & clanguml::sequence_diagram::model::activity::messages | ( | ) |
Get list of messages in the activity.
Definition at line 30 of file activity.cc.
const std::vector< message > & clanguml::sequence_diagram::model::activity::messages | ( | ) | const |
Get list of messages in the activity.
Definition at line 32 of file activity.cc.
void clanguml::sequence_diagram::model::activity::set_callers | ( | std::set< eid_t > | callers | ) |
Definition at line 40 of file activity.cc.
|
private |
The set of caller ids, i.e. activities which send messages to this activity. This is necessary in order to optimize reverse call graph traversal for sequence diagrams with bounded end calls such as to
and from_to
.
Definition at line 92 of file activity.h.
|
private |
Id of this activity. All messages originating from this activity must have from
property set to this
Definition at line 79 of file activity.h.
|
private |
List of messages generated from this activity, in order.
Definition at line 84 of file activity.h.