Sequence Chart Studio  svn HEAD revision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
BMsc Class Reference

Represents Basic MSC. More...

#include <BMsc.h>

Inheritance diagram for BMsc:
Inheritance graph
Collaboration diagram for BMsc:
Collaboration graph

Public Member Functions

 BMsc (const std::wstring &label=L"")
 
 BMsc (BMsc *original)
 
virtual ~BMsc ()
 
void add_instance (InstancePtr &i)
 
const InstancePtrListget_instances () const
 
void remove_instances (const std::wstring &label)
 
std::pair< SystemState,
SystemState
get_condition_effect ()
 
- Public Member Functions inherited from Msc
virtual ~Msc ()
 
void set_label (const std::wstring &label)
 
const std::wstring & get_label () const
 
- Public Member Functions inherited from MscElementTmpl< Msc >
int get_visual_style () const
 
void set_visual_style (int visual_style)
 
MscElementget_general_original () const
 See MscElementTmpl for details about attribute original. More...
 
void set_general_original (MscElement *original)
 See MscElementTmpl for details about attribute original. More...
 
Mscget_original () const
 
void set_original (Msc *e)
 
void set_original (boost::intrusive_ptr< Msc > &e)
 
virtual ~MscElementTmpl ()
 
- Public Member Functions inherited from MscElement
bool is_attribute_set (const std::string &name) const
 Finds out whether attribute with specified name is set or not. More...
 
template<class T >
T & get_attribute (const std::string &name, const T &def)
 Returns dynamic attribute of MscElement. More...
 
template<class T >
T & get_attribute (const std::string &name, const T &def, bool &status)
 Returns dynamic attribute of MscElement. More...
 
template<class T >
void set_attribute (const std::string &name, const T &val)
 Sets dynamic attribute of MscElement. More...
 
template<class T >
void remove_attribute (const std::string &name)
 Removes attribute of MscElement. More...
 
std::set< std::stringget_attribute_names () const
 List all attributes of MscElement. More...
 
enum MarkType get_marked () const
 
void set_marked (enum MarkType marked=MARKED)
 
MscColor get_color () const
 
void set_color (MscColor color)
 
void clear_color ()
 
virtual ~MscElement ()
 
- Public Member Functions inherited from Commentable
virtual ~Commentable ()
 
void add_comment (CommentPtr comment)
 
const CommentPtrSetget_comments () const
 

Private Attributes

InstancePtrList m_instances
 

Additional Inherited Members

- Protected Member Functions inherited from Msc
 Msc (const std::wstring &label=L"")
 
 Msc (Msc *original)
 
- Protected Member Functions inherited from MscElementTmpl< Msc >
 MscElementTmpl ()
 
 MscElementTmpl (Msc *original)
 Creates MscElement referencing the original one. More...
 
- Protected Member Functions inherited from MscElement
 MscElement ()
 
- Protected Attributes inherited from Msc
std::wstring m_label
 Label of MSC. More...
 
- Protected Attributes inherited from MscElementTmpl< Msc >
int m_visual_style
 Visual style of the shape. More...
 
boost::intrusive_ptr< Mscm_original
 Pointer to original version of MscElement. More...
 
- Protected Attributes inherited from Commentable
CommentPtrSet m_comments
 

Detailed Description

Represents Basic MSC.

Definition at line 27 of file BMsc.h.

Constructor & Destructor Documentation

BMsc::BMsc ( const std::wstring &  label = L"")
inline

Initializes m_label

Definition at line 40 of file BMsc.h.

BMsc::BMsc ( BMsc original)
inline

Definition at line 44 of file BMsc.h.

virtual BMsc::~BMsc ( )
inlinevirtual

Definition at line 48 of file BMsc.h.

Member Function Documentation

void BMsc::add_instance ( InstancePtr i)

Adds instance.

Definition at line 22 of file BMsc.cpp.

References m_instances.

Referenced by EventsCreatorListener::on_white_event_found().

std::pair< SystemState, SystemState > BMsc::get_condition_effect ( )

Computes the condition effect of this BMSC. In the first element of the pair, a set of condition variable names which get set by this BMSC is returned. In the second element of the pair, a set of condition variable names which get unset by this BMSC is returned.

Definition at line 39 of file BMsc.cpp.

References DFSEventsTraverser::add_white_event_found_listener(), ConditionEvent::get_condition(), and DFSEventsTraverser::traverse().

const InstancePtrList& BMsc::get_instances ( ) const
inline

Getter for m_instances.

Definition at line 60 of file BMsc.h.

Referenced by diff_identification_settings2(), and MonteCarlo::BMscDealer::traverse().

void BMsc::remove_instances ( const std::wstring &  label)

Removes all the instances with a specified name.

Definition at line 28 of file BMsc.cpp.

References m_instances.

Member Data Documentation

InstancePtrList BMsc::m_instances
private

Processes' instances which are contained in BMsc.

Definition at line 33 of file BMsc.h.

Referenced by add_instance(), and remove_instances().


The documentation for this class was generated from the following files:

SourceForge.net Logo
Generated on Fri Jan 15 2016 16:26:57 for Sequence Chart Studio by  doxygen