-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcombinedfragment.h
42 lines (38 loc) · 1.07 KB
/
combinedfragment.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef COMBINEDFRAGMENT_H
#define COMBINEDFRAGMENT_H
#include<string>
#include<vector>
#include "sequencediagram.h"
using namespace std;
class CombinedFragment : public SequenceDiagram
{
public:
/** Default constructor */
CombinedFragment();
CombinedFragment(string);
CombinedFragment(string,int);
bool operator == (const CombinedFragment&) const;
bool operator != (const CombinedFragment&) const;
void display();
string getID();
int getNoOfPartitions();
int getType();
string getCondition(int);
int getNoOfNodes(int);
string getCondition() const;
int getNoOfNodes() const;
void setID(string);
void setCondition(string);
void setType(int);
void setNoOfNodes(int);
void addNewPartition(string,int);
void addNewPartition(int);
int getCount();
private:
vector<string> condition;
vector<int> noOfNodes;
int type;
string xmi_id;
int condition_count;
};
#endif // COMBINEDFRAGMENT_H