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
TimeRelationEvent Class Reference

#include <TimeRelationEvent.h>

Inheritance diagram for TimeRelationEvent:
Inheritance graph
Collaboration diagram for TimeRelationEvent:
Collaboration graph

Public Member Functions

 TimeRelationEvent (MscTimeIntervalSet< double > set)
 
 TimeRelationEvent (const std::string &set)
 
 TimeRelationEvent (TimeRelationEvent *original)
 
virtual ~TimeRelationEvent ()
 
Eventget_event_a () const
 
Eventget_event_b () const
 
void glue_event_a (Event *a)
 
void glue_event_b (Event *b)
 
void glue_events (Event *a, Event *b)
 
bool is_glued () const
 
- Public Member Functions inherited from TimeRelation
 TimeRelation (const MscTimeIntervalSetD &set)
 measurement variable name More...
 
 TimeRelation (const std::string &set)
 
 TimeRelation (TimeRelation *original)
 
virtual ~TimeRelation ()
 
void assign_label (const std::string &label)
 
std::string get_label () const
 
bool is_directed () const
 
void set_directed (bool directed)
 
void clear_interval_set ()
 
const std::stringget_measurement () const
 
void set_measurement (std::string &measurement)
 
- Public Member Functions inherited from TimeConstraint
void clear_interval_set ()
 
const MscTimeIntervalSetDget_interval_set () const
 
MscTimeIntervalSetDget_interval_set ()
 
void set_interval_set (const MscTimeIntervalSetD &set)
 
Size get_width () const
 
void set_width (const Size &width)
 
- Public Member Functions inherited from MscElementTmpl< TimeConstraint >
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...
 
TimeConstraintget_original () const
 
void set_original (TimeConstraint *e)
 
void set_original (boost::intrusive_ptr< TimeConstraint > &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 ()
 

Private Attributes

Eventm_event_origin
 
Eventm_event
 

Additional Inherited Members

- Protected Member Functions inherited from TimeConstraint
 TimeConstraint ()
 length of the guide line More...
 
 TimeConstraint (const MscTimeIntervalSetD &set)
 
 TimeConstraint (TimeConstraint *original)
 
virtual ~TimeConstraint ()
 
- Protected Member Functions inherited from MscElementTmpl< TimeConstraint >
 MscElementTmpl ()
 
 MscElementTmpl (TimeConstraint *original)
 Creates MscElement referencing the original one. More...
 
- Protected Member Functions inherited from MscElement
 MscElement ()
 
- Protected Attributes inherited from TimeRelation
bool m_directed
 
std::string m_measurement
 indicates directed constraint, see "origin" keyword More...
 
- Protected Attributes inherited from TimeConstraint
MscTimeIntervalSet< double > m_interval_set
 
Size m_width
 
- Protected Attributes inherited from MscElementTmpl< TimeConstraint >
int m_visual_style
 Visual style of the shape. More...
 
boost::intrusive_ptr
< TimeConstraint
m_original
 Pointer to original version of MscElement. More...
 

Detailed Description

Definition at line 22 of file TimeRelationEvent.h.

Constructor & Destructor Documentation

TimeRelationEvent::TimeRelationEvent ( MscTimeIntervalSet< double >  set)
inline

Definition at line 30 of file TimeRelationEvent.h.

TimeRelationEvent::TimeRelationEvent ( const std::string set)
inline

Definition at line 35 of file TimeRelationEvent.h.

TimeRelationEvent::TimeRelationEvent ( TimeRelationEvent original)

Definition at line 21 of file TimeRelationEvent.cpp.

virtual TimeRelationEvent::~TimeRelationEvent ( )
inlinevirtual

Definition at line 42 of file TimeRelationEvent.h.

Member Function Documentation

Event* TimeRelationEvent::get_event_a ( ) const
inline

Definition at line 46 of file TimeRelationEvent.h.

Event* TimeRelationEvent::get_event_b ( ) const
inline

Definition at line 51 of file TimeRelationEvent.h.

void TimeRelationEvent::glue_event_a ( Event a)
void TimeRelationEvent::glue_event_b ( Event b)

Definition at line 36 of file TimeRelationEvent.cpp.

References Event::add_time_relation(), m_event, and Event::remove_time_relation().

Referenced by glue_events().

void TimeRelationEvent::glue_events ( Event a,
Event b 
)
bool TimeRelationEvent::is_glued ( ) const
inline

Definition at line 62 of file TimeRelationEvent.h.

Member Data Documentation

Event* TimeRelationEvent::m_event
private

Definition at line 26 of file TimeRelationEvent.h.

Referenced by glue_event_b().

Event* TimeRelationEvent::m_event_origin
private

Definition at line 25 of file TimeRelationEvent.h.

Referenced by glue_event_a().


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

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