diff options
Diffstat (limited to 'Metrics/Metrics-Calculation/SocialNetwork_plugin/model')
-rw-r--r-- | Metrics/Metrics-Calculation/SocialNetwork_plugin/model/socialnetwork.aird | 183 | ||||
-rw-r--r-- | Metrics/Metrics-Calculation/SocialNetwork_plugin/model/socialnetwork.ecore | 17 | ||||
-rw-r--r-- | Metrics/Metrics-Calculation/SocialNetwork_plugin/model/socialnetwork.genmodel | 21 | ||||
-rw-r--r-- | Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/200_nodes.jpg | bin | 0 -> 49128 bytes | |||
-rw-r--r-- | Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/220_nodes.jpg | bin | 0 -> 51088 bytes | |||
-rw-r--r-- | Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/260_nodes.jpg | bin | 0 -> 51426 bytes | |||
-rw-r--r-- | Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/280_nodes.jpg | bin | 0 -> 50852 bytes | |||
-rw-r--r-- | Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/output.txt | 300 | ||||
-rw-r--r-- | Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/plot_distribution.m | 11 |
9 files changed, 532 insertions, 0 deletions
diff --git a/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/socialnetwork.aird b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/socialnetwork.aird new file mode 100644 index 00000000..e7e28ecd --- /dev/null +++ b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/socialnetwork.aird | |||
@@ -0,0 +1,183 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" xmlns:diagram="http://www.eclipse.org/sirius/diagram/1.1.0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/sirius/diagram/description/style/1.1.0" xmlns:viewpoint="http://www.eclipse.org/sirius/1.1.0" xsi:schemaLocation="http://www.eclipse.org/sirius/description/1.1.0 http://www.eclipse.org/sirius/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description http://www.eclipse.org/sirius/diagram/description/style/1.1.0 http://www.eclipse.org/sirius/diagram/1.1.0#//description/style"> | ||
3 | <viewpoint:DAnalysis uid="_TZr30HA1EemKP426GDjFOg" selectedViews="_Ta8cEHA1EemKP426GDjFOg" version="14.1.0.201810161215"> | ||
4 | <semanticResources>socialnetwork.ecore</semanticResources> | ||
5 | <semanticResources>socialnetwork.genmodel</semanticResources> | ||
6 | <ownedViews xmi:type="viewpoint:DView" uid="_Ta8cEHA1EemKP426GDjFOg"> | ||
7 | <viewpoint xmi:type="description:Viewpoint" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']"/> | ||
8 | <ownedRepresentationDescriptors xmi:type="viewpoint:DRepresentationDescriptor" uid="_TbTBZXA1EemKP426GDjFOg" name="socialnetwork" repPath="#_TbTBYHA1EemKP426GDjFOg"> | ||
9 | <description xmi:type="description_1:DiagramDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']"/> | ||
10 | <target xmi:type="ecore:EPackage" href="socialnetwork.ecore#/"/> | ||
11 | </ownedRepresentationDescriptors> | ||
12 | </ownedViews> | ||
13 | </viewpoint:DAnalysis> | ||
14 | <diagram:DSemanticDiagram uid="_TbTBYHA1EemKP426GDjFOg" name="socialnetwork"> | ||
15 | <ownedAnnotationEntries xmi:type="description:AnnotationEntry" uid="_TbTBYXA1EemKP426GDjFOg" source="DANNOTATION_CUSTOMIZATION_KEY"> | ||
16 | <data xmi:type="diagram:ComputedStyleDescriptionRegistry" uid="_TbTBYnA1EemKP426GDjFOg"> | ||
17 | <computedStyleDescriptions xmi:type="style:EdgeStyleDescription" xmi:id="_ZZkWoHA1EemKP426GDjFOg" sourceArrow="FillDiamond" routingStyle="manhattan"> | ||
18 | <strokeColor xmi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/> | ||
19 | <centerLabelStyleDescription xmi:type="style:CenterLabelStyleDescription" xmi:id="_ZZkWoXA1EemKP426GDjFOg" showIcon="false" labelExpression="service:render"> | ||
20 | <labelColor xmi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='black']"/> | ||
21 | </centerLabelStyleDescription> | ||
22 | <endLabelStyleDescription xmi:type="style:EndLabelStyleDescription" xmi:id="_ZZkWonA1EemKP426GDjFOg" labelSize="6" showIcon="false" labelExpression="service:eKeysLabel"> | ||
23 | <labelColor xmi:type="description:SystemColor" href="environment:/viewpoint#//@systemColors/@entries[name='dark_blue']"/> | ||
24 | </endLabelStyleDescription> | ||
25 | </computedStyleDescriptions> | ||
26 | </data> | ||
27 | </ownedAnnotationEntries> | ||
28 | <ownedAnnotationEntries xmi:type="description:AnnotationEntry" uid="_TbTBZnA1EemKP426GDjFOg" source="GMF_DIAGRAMS"> | ||
29 | <data xmi:type="notation:Diagram" xmi:id="_TbTBZ3A1EemKP426GDjFOg" type="Sirius" element="_TbTBYHA1EemKP426GDjFOg" measurementUnit="Pixel"> | ||
30 | <children xmi:type="notation:Node" xmi:id="_Ur9YAHA1EemKP426GDjFOg" type="2003" element="_Ur5GkHA1EemKP426GDjFOg"> | ||
31 | <children xmi:type="notation:Node" xmi:id="_Ur9YA3A1EemKP426GDjFOg" type="5007"/> | ||
32 | <children xmi:type="notation:Node" xmi:id="_Ur9YBHA1EemKP426GDjFOg" type="7004"> | ||
33 | <children xmi:type="notation:Node" xmi:id="_W_L-4HA1EemKP426GDjFOg" type="3010" element="_W_DcAHA1EemKP426GDjFOg"> | ||
34 | <styles xmi:type="notation:FontStyle" xmi:id="_W_L-4XA1EemKP426GDjFOg" fontColor="2697711" fontName="Segoe UI" fontHeight="8"/> | ||
35 | <layoutConstraint xmi:type="notation:Location" xmi:id="_W_L-4nA1EemKP426GDjFOg"/> | ||
36 | </children> | ||
37 | <styles xmi:type="notation:SortingStyle" xmi:id="_Ur9YBXA1EemKP426GDjFOg"/> | ||
38 | <styles xmi:type="notation:FilteringStyle" xmi:id="_Ur9YBnA1EemKP426GDjFOg"/> | ||
39 | </children> | ||
40 | <styles xmi:type="notation:ShapeStyle" xmi:id="_Ur9YAXA1EemKP426GDjFOg" fontName="Segoe UI" fontHeight="8"/> | ||
41 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Ur9YAnA1EemKP426GDjFOg" x="285" y="165" width="120" height="100"/> | ||
42 | </children> | ||
43 | <children xmi:type="notation:Node" xmi:id="_X2ASIHA1EemKP426GDjFOg" type="2003" element="_X14WUHA1EemKP426GDjFOg"> | ||
44 | <children xmi:type="notation:Node" xmi:id="_X2A5MHA1EemKP426GDjFOg" type="5007"/> | ||
45 | <children xmi:type="notation:Node" xmi:id="_X2A5MXA1EemKP426GDjFOg" type="7004"> | ||
46 | <children xmi:type="notation:Node" xmi:id="_jitw4HA1EemKP426GDjFOg" type="3010" element="_jirUoHA1EemKP426GDjFOg"> | ||
47 | <styles xmi:type="notation:FontStyle" xmi:id="_jitw4XA1EemKP426GDjFOg" fontColor="2697711" fontName="Segoe UI" fontHeight="8"/> | ||
48 | <layoutConstraint xmi:type="notation:Location" xmi:id="_jitw4nA1EemKP426GDjFOg"/> | ||
49 | </children> | ||
50 | <styles xmi:type="notation:SortingStyle" xmi:id="_X2A5MnA1EemKP426GDjFOg"/> | ||
51 | <styles xmi:type="notation:FilteringStyle" xmi:id="_X2A5M3A1EemKP426GDjFOg"/> | ||
52 | </children> | ||
53 | <styles xmi:type="notation:ShapeStyle" xmi:id="_X2ASIXA1EemKP426GDjFOg" fontName="Segoe UI" fontHeight="8"/> | ||
54 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_X2ASInA1EemKP426GDjFOg" x="690" y="180" width="120" height="100"/> | ||
55 | </children> | ||
56 | <styles xmi:type="notation:DiagramStyle" xmi:id="_TbTBaHA1EemKP426GDjFOg"/> | ||
57 | <edges xmi:type="notation:Edge" xmi:id="_ZZnZ8HA1EemKP426GDjFOg" type="4001" element="_ZZjvkHA1EemKP426GDjFOg" source="_Ur9YAHA1EemKP426GDjFOg" target="_X2ASIHA1EemKP426GDjFOg"> | ||
58 | <children xmi:type="notation:Node" xmi:id="_ZZnZ9HA1EemKP426GDjFOg" type="6001"> | ||
59 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZZnZ9XA1EemKP426GDjFOg" x="6" y="10"/> | ||
60 | </children> | ||
61 | <children xmi:type="notation:Node" xmi:id="_ZZnZ9nA1EemKP426GDjFOg" type="6002"> | ||
62 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZZnZ93A1EemKP426GDjFOg" x="1" y="10"/> | ||
63 | </children> | ||
64 | <children xmi:type="notation:Node" xmi:id="_ZZnZ-HA1EemKP426GDjFOg" type="6003"> | ||
65 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZZnZ-XA1EemKP426GDjFOg" x="-1" y="10"/> | ||
66 | </children> | ||
67 | <styles xmi:type="notation:ConnectorStyle" xmi:id="_ZZnZ8XA1EemKP426GDjFOg" routing="Rectilinear"/> | ||
68 | <styles xmi:type="notation:FontStyle" xmi:id="_ZZnZ8nA1EemKP426GDjFOg" fontColor="7490599" fontName="Segoe UI" fontHeight="8"/> | ||
69 | <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ZZnZ83A1EemKP426GDjFOg" points="[0, 0, -287, 4]$[143, 0, -144, 4]$[143, -4, -144, 0]$[287, -4, 0, 0]"/> | ||
70 | <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ZZnZ-nA1EemKP426GDjFOg" id="(1.0,0.5)"/> | ||
71 | <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ZZnZ-3A1EemKP426GDjFOg" id="(0.0,0.30612244897959184)"/> | ||
72 | </edges> | ||
73 | <edges xmi:type="notation:Edge" xmi:id="_f8gfMHA1EemKP426GDjFOg" type="4001" element="_f8eC8HA1EemKP426GDjFOg" source="_X2ASIHA1EemKP426GDjFOg" target="_X2ASIHA1EemKP426GDjFOg"> | ||
74 | <children xmi:type="notation:Node" xmi:id="_f8gfNHA1EemKP426GDjFOg" type="6001"> | ||
75 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_f8gfNXA1EemKP426GDjFOg" x="-8" y="7"/> | ||
76 | </children> | ||
77 | <children xmi:type="notation:Node" xmi:id="_f8hGQHA1EemKP426GDjFOg" type="6002"> | ||
78 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_f8hGQXA1EemKP426GDjFOg" x="12" y="10"/> | ||
79 | </children> | ||
80 | <children xmi:type="notation:Node" xmi:id="_f8hGQnA1EemKP426GDjFOg" type="6003"> | ||
81 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_f8hGQ3A1EemKP426GDjFOg" y="-10"/> | ||
82 | </children> | ||
83 | <styles xmi:type="notation:ConnectorStyle" xmi:id="_f8gfMXA1EemKP426GDjFOg" routing="Rectilinear"/> | ||
84 | <styles xmi:type="notation:FontStyle" xmi:id="_f8gfMnA1EemKP426GDjFOg" fontColor="7490599" fontName="Segoe UI" fontHeight="8"/> | ||
85 | <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_f8gfM3A1EemKP426GDjFOg" points="[4, 1, 0, -21]$[51, 1, 47, -21]$[51, -53, 47, -75]$[-25, -53, -29, -75]$[-25, -8, -29, -30]"/> | ||
86 | <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_f8hGRHA1EemKP426GDjFOg" id="(0.9666666666666667,0.09)"/> | ||
87 | <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_f8hGRXA1EemKP426GDjFOg" id="(1.0,0.30612244897959184)"/> | ||
88 | </edges> | ||
89 | <edges xmi:type="notation:Edge" xmi:id="_eUOggHA6EemKP426GDjFOg" type="4001" element="_eULdMHA6EemKP426GDjFOg" source="_X2ASIHA1EemKP426GDjFOg" target="_X2ASIHA1EemKP426GDjFOg"> | ||
90 | <children xmi:type="notation:Node" xmi:id="_eUOghHA6EemKP426GDjFOg" type="6001"> | ||
91 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_eUOghXA6EemKP426GDjFOg" y="-10"/> | ||
92 | </children> | ||
93 | <children xmi:type="notation:Node" xmi:id="_eUOghnA6EemKP426GDjFOg" type="6002"> | ||
94 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_eUOgh3A6EemKP426GDjFOg" y="10"/> | ||
95 | </children> | ||
96 | <children xmi:type="notation:Node" xmi:id="_eUOgiHA6EemKP426GDjFOg" type="6003"> | ||
97 | <layoutConstraint xmi:type="notation:Bounds" xmi:id="_eUOgiXA6EemKP426GDjFOg" y="10"/> | ||
98 | </children> | ||
99 | <styles xmi:type="notation:ConnectorStyle" xmi:id="_eUOggXA6EemKP426GDjFOg" routing="Rectilinear"/> | ||
100 | <styles xmi:type="notation:FontStyle" xmi:id="_eUOggnA6EemKP426GDjFOg" fontName="Segoe UI" fontHeight="8"/> | ||
101 | <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_eUOgg3A6EemKP426GDjFOg" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/> | ||
102 | <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_eUOginA6EemKP426GDjFOg" id="(0.5,0.5)"/> | ||
103 | <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_eUOgi3A6EemKP426GDjFOg" id="(0.5,0.5)"/> | ||
104 | </edges> | ||
105 | </data> | ||
106 | </ownedAnnotationEntries> | ||
107 | <ownedDiagramElements xmi:type="diagram:DNodeList" uid="_Ur5GkHA1EemKP426GDjFOg" name="SocialNetwork" tooltipText="" outgoingEdges="_ZZjvkHA1EemKP426GDjFOg" width="12" height="10"> | ||
108 | <target xmi:type="ecore:EClass" href="socialnetwork.ecore#//SocialNetwork"/> | ||
109 | <semanticElements xmi:type="ecore:EClass" href="socialnetwork.ecore#//SocialNetwork"/> | ||
110 | <ownedStyle xmi:type="diagram:FlatContainerStyle" uid="_XY_mAHA1EemKP426GDjFOg" borderSize="1" borderSizeComputationExpression="1" backgroundStyle="Liquid" foregroundColor="255,252,216"> | ||
111 | <description xmi:type="style:FlatContainerStyleDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@style"/> | ||
112 | </ownedStyle> | ||
113 | <actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']"/> | ||
114 | <ownedElements xmi:type="diagram:DNodeListElement" uid="_W_DcAHA1EemKP426GDjFOg" name="name : EString" tooltipText=""> | ||
115 | <target xmi:type="ecore:EAttribute" href="socialnetwork.ecore#//SocialNetwork/name"/> | ||
116 | <semanticElements xmi:type="ecore:EAttribute" href="socialnetwork.ecore#//SocialNetwork/name"/> | ||
117 | <ownedStyle xmi:type="diagram:BundledImage" uid="_XZANEHA1EemKP426GDjFOg" labelAlignment="LEFT"> | ||
118 | <description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']/@style"/> | ||
119 | </ownedStyle> | ||
120 | <actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']"/> | ||
121 | </ownedElements> | ||
122 | </ownedDiagramElements> | ||
123 | <ownedDiagramElements xmi:type="diagram:DNodeList" uid="_X14WUHA1EemKP426GDjFOg" name="Person" tooltipText="" outgoingEdges="_f8eC8HA1EemKP426GDjFOg _eULdMHA6EemKP426GDjFOg" incomingEdges="_ZZjvkHA1EemKP426GDjFOg _f8eC8HA1EemKP426GDjFOg _eULdMHA6EemKP426GDjFOg" width="12" height="10"> | ||
124 | <target xmi:type="ecore:EClass" href="socialnetwork.ecore#//Person"/> | ||
125 | <semanticElements xmi:type="ecore:EClass" href="socialnetwork.ecore#//Person"/> | ||
126 | <arrangeConstraints>KEEP_LOCATION</arrangeConstraints> | ||
127 | <arrangeConstraints>KEEP_SIZE</arrangeConstraints> | ||
128 | <arrangeConstraints>KEEP_RATIO</arrangeConstraints> | ||
129 | <ownedStyle xmi:type="diagram:FlatContainerStyle" uid="_kAhuQHA1EemKP426GDjFOg" borderSize="1" borderSizeComputationExpression="1" backgroundStyle="Liquid" foregroundColor="255,252,216"> | ||
130 | <description xmi:type="style:FlatContainerStyleDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@style"/> | ||
131 | </ownedStyle> | ||
132 | <actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']"/> | ||
133 | <ownedElements xmi:type="diagram:DNodeListElement" uid="_jirUoHA1EemKP426GDjFOg" name="name : EString" tooltipText=""> | ||
134 | <target xmi:type="ecore:EAttribute" href="socialnetwork.ecore#//Person/name"/> | ||
135 | <semanticElements xmi:type="ecore:EAttribute" href="socialnetwork.ecore#//Person/name"/> | ||
136 | <ownedStyle xmi:type="diagram:BundledImage" uid="_kAiVUHA1EemKP426GDjFOg" labelAlignment="LEFT"> | ||
137 | <description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']/@style"/> | ||
138 | </ownedStyle> | ||
139 | <actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']"/> | ||
140 | </ownedElements> | ||
141 | </ownedDiagramElements> | ||
142 | <ownedDiagramElements xmi:type="diagram:DEdge" uid="_ZZjvkHA1EemKP426GDjFOg" name="[0..*] persons" sourceNode="_Ur5GkHA1EemKP426GDjFOg" targetNode="_X14WUHA1EemKP426GDjFOg"> | ||
143 | <target xmi:type="ecore:EReference" href="socialnetwork.ecore#//SocialNetwork/persons"/> | ||
144 | <semanticElements xmi:type="ecore:EReference" href="socialnetwork.ecore#//SocialNetwork/persons"/> | ||
145 | <ownedStyle xmi:type="diagram:EdgeStyle" uid="_ZZkWo3A1EemKP426GDjFOg" description="_ZZkWoHA1EemKP426GDjFOg" sourceArrow="FillDiamond" routingStyle="manhattan" strokeColor="0,0,0"> | ||
146 | <centerLabelStyle xmi:type="diagram:CenterLabelStyle" uid="_ZZkWpHA1EemKP426GDjFOg" showIcon="false"> | ||
147 | <customFeatures>labelSize</customFeatures> | ||
148 | </centerLabelStyle> | ||
149 | <endLabelStyle xmi:type="diagram:EndLabelStyle" uid="_ZZkWpXA1EemKP426GDjFOg" showIcon="false" labelColor="39,76,114"> | ||
150 | <customFeatures>labelSize</customFeatures> | ||
151 | </endLabelStyle> | ||
152 | </ownedStyle> | ||
153 | <actualMapping xmi:type="description_1:EdgeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='EC_EReference']"/> | ||
154 | </ownedDiagramElements> | ||
155 | <ownedDiagramElements xmi:type="diagram:DEdge" uid="_f8eC8HA1EemKP426GDjFOg" name="[0..*] friends" sourceNode="_X14WUHA1EemKP426GDjFOg" targetNode="_X14WUHA1EemKP426GDjFOg"> | ||
156 | <target xmi:type="ecore:EReference" href="socialnetwork.ecore#//Person/friends"/> | ||
157 | <semanticElements xmi:type="ecore:EReference" href="socialnetwork.ecore#//Person/friends"/> | ||
158 | <ownedStyle xmi:type="diagram:EdgeStyle" uid="_erMusHA9EemKP426GDjFOg" routingStyle="manhattan" strokeColor="0,0,0"> | ||
159 | <description xmi:type="style:EdgeStyleDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='EC_EReference']/@style"/> | ||
160 | <centerLabelStyle xmi:type="diagram:CenterLabelStyle" uid="_erMusXA9EemKP426GDjFOg" showIcon="false"/> | ||
161 | <endLabelStyle xmi:type="diagram:EndLabelStyle" uid="_erMusnA9EemKP426GDjFOg" labelSize="6" showIcon="false" labelColor="39,76,114"/> | ||
162 | </ownedStyle> | ||
163 | <actualMapping xmi:type="description_1:EdgeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='EC_EReference']"/> | ||
164 | </ownedDiagramElements> | ||
165 | <ownedDiagramElements xmi:type="diagram:DEdge" uid="_eULdMHA6EemKP426GDjFOg" sourceNode="_X14WUHA1EemKP426GDjFOg" targetNode="_X14WUHA1EemKP426GDjFOg" beginLabel="[0..*] children" endLabel="[0..2] parents"> | ||
166 | <target xmi:type="ecore:EReference" href="socialnetwork.ecore#//Person/parents"/> | ||
167 | <semanticElements xmi:type="ecore:EReference" href="socialnetwork.ecore#//Person/children"/> | ||
168 | <semanticElements xmi:type="ecore:EReference" href="socialnetwork.ecore#//Person/parents"/> | ||
169 | <ownedStyle xmi:type="diagram:EdgeStyle" uid="_eUMEQHA6EemKP426GDjFOg" sourceArrow="InputArrow" routingStyle="manhattan" strokeColor="0,0,0"> | ||
170 | <description xmi:type="style:EdgeStyleDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='Bi-directional%20EC_EReference%20']/@style"/> | ||
171 | <beginLabelStyle xmi:type="diagram:BeginLabelStyle" uid="_eUMEQXA6EemKP426GDjFOg" showIcon="false"/> | ||
172 | <endLabelStyle xmi:type="diagram:EndLabelStyle" uid="_eUMEQnA6EemKP426GDjFOg" showIcon="false"/> | ||
173 | </ownedStyle> | ||
174 | <actualMapping xmi:type="description_1:EdgeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='Bi-directional%20EC_EReference%20']"/> | ||
175 | </ownedDiagramElements> | ||
176 | <description xmi:type="description_1:DiagramDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']"/> | ||
177 | <filterVariableHistory xmi:type="diagram:FilterVariableHistory" uid="_TbTBZHA1EemKP426GDjFOg"/> | ||
178 | <activatedLayers xmi:type="description_1:Layer" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer"/> | ||
179 | <activatedLayers xmi:type="description_1:AdditionalLayer" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@additionalLayers[name='Package']"/> | ||
180 | <activatedLayers xmi:type="description_1:AdditionalLayer" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@additionalLayers[name='Validation']"/> | ||
181 | <target xmi:type="ecore:EPackage" href="socialnetwork.ecore#/"/> | ||
182 | </diagram:DSemanticDiagram> | ||
183 | </xmi:XMI> | ||
diff --git a/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/socialnetwork.ecore b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/socialnetwork.ecore new file mode 100644 index 00000000..cacf9921 --- /dev/null +++ b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/socialnetwork.ecore | |||
@@ -0,0 +1,17 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
3 | xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="socialnetwork" nsURI="http://ecse.mcgill.ca/socialnetwork" nsPrefix="socialnetwork"> | ||
4 | <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore"/> | ||
5 | <eClassifiers xsi:type="ecore:EClass" name="SocialNetwork"> | ||
6 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" | ||
7 | defaultValueLiteral="SocialNetwork"/> | ||
8 | <eStructuralFeatures xsi:type="ecore:EReference" name="persons" upperBound="-1" | ||
9 | eType="#//Person" containment="true"/> | ||
10 | </eClassifiers> | ||
11 | <eClassifiers xsi:type="ecore:EClass" name="Person"> | ||
12 | <eStructuralFeatures xsi:type="ecore:EReference" name="friends" upperBound="-1" | ||
13 | eType="#//Person"/> | ||
14 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" | ||
15 | defaultValueLiteral="Name"/> | ||
16 | </eClassifiers> | ||
17 | </ecore:EPackage> | ||
diff --git a/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/socialnetwork.genmodel b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/socialnetwork.genmodel new file mode 100644 index 00000000..c9515653 --- /dev/null +++ b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/socialnetwork.genmodel | |||
@@ -0,0 +1,21 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
3 | xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" | ||
4 | modelDirectory="/SocialNetwork_plugin/encore_gen" creationIcons="false" | ||
5 | editDirectory="/ca.mcgill.ecse.socialnetwork.edit/src-gen" editorDirectory="/ca.mcgill.ecse.socialnetwork.editor/src-gen" | ||
6 | modelPluginID="SocialNetwork_plugin" modelName="Socialnetwork" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" | ||
7 | codeFormatting="true" importerID="org.eclipse.emf.importer.ecore" complianceLevel="8.0" | ||
8 | copyrightFields="false" operationReflection="true" importOrganizing="true"> | ||
9 | <foreignModel>socialnetwork.ecore</foreignModel> | ||
10 | <testsDirectory xsi:nil="true"/> | ||
11 | <genPackages prefix="Socialnetwork" disposableProviderFactory="true" ecorePackage="socialnetwork.ecore#/"> | ||
12 | <genClasses ecoreClass="socialnetwork.ecore#//SocialNetwork"> | ||
13 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute socialnetwork.ecore#//SocialNetwork/name"/> | ||
14 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference socialnetwork.ecore#//SocialNetwork/persons"/> | ||
15 | </genClasses> | ||
16 | <genClasses ecoreClass="socialnetwork.ecore#//Person"> | ||
17 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference socialnetwork.ecore#//Person/friends"/> | ||
18 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute socialnetwork.ecore#//Person/name"/> | ||
19 | </genClasses> | ||
20 | </genPackages> | ||
21 | </genmodel:GenModel> | ||
diff --git a/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/200_nodes.jpg b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/200_nodes.jpg new file mode 100644 index 00000000..a35c291b --- /dev/null +++ b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/200_nodes.jpg | |||
Binary files differ | |||
diff --git a/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/220_nodes.jpg b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/220_nodes.jpg new file mode 100644 index 00000000..4d41dff7 --- /dev/null +++ b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/220_nodes.jpg | |||
Binary files differ | |||
diff --git a/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/260_nodes.jpg b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/260_nodes.jpg new file mode 100644 index 00000000..b16cdfb2 --- /dev/null +++ b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/260_nodes.jpg | |||
Binary files differ | |||
diff --git a/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/280_nodes.jpg b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/280_nodes.jpg new file mode 100644 index 00000000..16c0ee23 --- /dev/null +++ b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/280_nodes.jpg | |||
Binary files differ | |||
diff --git a/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/output.txt b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/output.txt new file mode 100644 index 00000000..35158e20 --- /dev/null +++ b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/output.txt | |||
@@ -0,0 +1,300 @@ | |||
1 | 1 | ||
2 | 9 | ||
3 | 7 | ||
4 | 0 | ||
5 | 4 | ||
6 | 6 | ||
7 | 16 | ||
8 | 0 | ||
9 | 2 | ||
10 | 4 | ||
11 | 17 | ||
12 | 20 | ||
13 | 1 | ||
14 | 5 | ||
15 | 2 | ||
16 | 3 | ||
17 | 11 | ||
18 | 6 | ||
19 | 4 | ||
20 | 0 | ||
21 | 2 | ||
22 | 1 | ||
23 | 3 | ||
24 | 5 | ||
25 | 9 | ||
26 | 13 | ||
27 | 11 | ||
28 | 0 | ||
29 | 1 | ||
30 | 10 | ||
31 | 3 | ||
32 | 0 | ||
33 | 1 | ||
34 | 1 | ||
35 | 0 | ||
36 | 17 | ||
37 | 0 | ||
38 | 4 | ||
39 | 2 | ||
40 | 0 | ||
41 | 1 | ||
42 | 10 | ||
43 | 10 | ||
44 | 0 | ||
45 | 24 | ||
46 | 9 | ||
47 | 0 | ||
48 | 14 | ||
49 | 1 | ||
50 | 11 | ||
51 | 2 | ||
52 | 17 | ||
53 | 3 | ||
54 | 3 | ||
55 | 3 | ||
56 | 0 | ||
57 | 3 | ||
58 | 1 | ||
59 | 3 | ||
60 | 2 | ||
61 | 2 | ||
62 | 1 | ||
63 | 0 | ||
64 | 3 | ||
65 | 6 | ||
66 | 3 | ||
67 | 16 | ||
68 | 3 | ||
69 | 10 | ||
70 | 6 | ||
71 | 6 | ||
72 | 6 | ||
73 | 11 | ||
74 | 6 | ||
75 | 10 | ||
76 | 20 | ||
77 | 1 | ||
78 | 4 | ||
79 | 13 | ||
80 | 0 | ||
81 | 0 | ||
82 | 3 | ||
83 | 2 | ||
84 | 0 | ||
85 | 12 | ||
86 | 0 | ||
87 | 0 | ||
88 | 22 | ||
89 | 4 | ||
90 | 0 | ||
91 | 0 | ||
92 | 20 | ||
93 | 1 | ||
94 | 10 | ||
95 | 9 | ||
96 | 11 | ||
97 | 5 | ||
98 | 27 | ||
99 | 1 | ||
100 | 3 | ||
101 | 9 | ||
102 | 0 | ||
103 | 23 | ||
104 | 10 | ||
105 | 9 | ||
106 | 23 | ||
107 | 0 | ||
108 | 3 | ||
109 | 7 | ||
110 | 2 | ||
111 | 0 | ||
112 | 9 | ||
113 | 3 | ||
114 | 0 | ||
115 | 12 | ||
116 | 11 | ||
117 | 7 | ||
118 | 6 | ||
119 | 9 | ||
120 | 2 | ||
121 | 0 | ||
122 | 3 | ||
123 | 4 | ||
124 | 3 | ||
125 | 9 | ||
126 | 3 | ||
127 | 0 | ||
128 | 7 | ||
129 | 2 | ||
130 | 1 | ||
131 | 9 | ||
132 | 1 | ||
133 | 11 | ||
134 | 6 | ||
135 | 5 | ||
136 | 16 | ||
137 | 0 | ||
138 | 19 | ||
139 | 14 | ||
140 | 9 | ||
141 | 13 | ||
142 | 2 | ||
143 | 8 | ||
144 | 0 | ||
145 | 6 | ||
146 | 1 | ||
147 | 1 | ||
148 | 2 | ||
149 | 0 | ||
150 | 3 | ||
151 | 15 | ||
152 | 3 | ||
153 | 0 | ||
154 | 3 | ||
155 | 17 | ||
156 | 1 | ||
157 | 15 | ||
158 | 5 | ||
159 | 1 | ||
160 | 21 | ||
161 | 8 | ||
162 | 2 | ||
163 | 7 | ||
164 | 3 | ||
165 | 16 | ||
166 | 11 | ||
167 | 1 | ||
168 | 5 | ||
169 | 1 | ||
170 | 5 | ||
171 | 1 | ||
172 | 6 | ||
173 | 3 | ||
174 | 16 | ||
175 | 6 | ||
176 | 17 | ||
177 | 3 | ||
178 | 5 | ||
179 | 7 | ||
180 | 2 | ||
181 | 9 | ||
182 | 2 | ||
183 | 1 | ||
184 | 11 | ||
185 | 1 | ||
186 | 0 | ||
187 | 3 | ||
188 | 5 | ||
189 | 6 | ||
190 | 2 | ||
191 | 5 | ||
192 | 1 | ||
193 | 4 | ||
194 | 9 | ||
195 | 0 | ||
196 | 11 | ||
197 | 1 | ||
198 | 10 | ||
199 | 13 | ||
200 | 6 | ||
201 | 2 | ||
202 | 1 | ||
203 | 3 | ||
204 | 4 | ||
205 | 0 | ||
206 | 1 | ||
207 | 2 | ||
208 | 10 | ||
209 | 12 | ||
210 | 3 | ||
211 | 3 | ||
212 | 3 | ||
213 | 0 | ||
214 | 2 | ||
215 | 4 | ||
216 | 2 | ||
217 | 18 | ||
218 | 3 | ||
219 | 8 | ||
220 | 7 | ||
221 | 5 | ||
222 | 3 | ||
223 | 16 | ||
224 | 1 | ||
225 | 4 | ||
226 | 8 | ||
227 | 15 | ||
228 | 1 | ||
229 | 11 | ||
230 | 15 | ||
231 | 1 | ||
232 | 8 | ||
233 | 7 | ||
234 | 1 | ||
235 | 2 | ||
236 | 0 | ||
237 | 9 | ||
238 | 5 | ||
239 | 2 | ||
240 | 1 | ||
241 | 3 | ||
242 | 6 | ||
243 | 4 | ||
244 | 8 | ||
245 | 3 | ||
246 | 12 | ||
247 | 4 | ||
248 | 21 | ||
249 | 9 | ||
250 | 2 | ||
251 | 3 | ||
252 | 2 | ||
253 | 1 | ||
254 | 3 | ||
255 | 11 | ||
256 | 2 | ||
257 | 9 | ||
258 | 0 | ||
259 | 10 | ||
260 | 6 | ||
261 | 1 | ||
262 | 2 | ||
263 | 0 | ||
264 | 8 | ||
265 | 5 | ||
266 | 2 | ||
267 | 3 | ||
268 | 8 | ||
269 | 1 | ||
270 | 13 | ||
271 | 8 | ||
272 | 2 | ||
273 | 2 | ||
274 | 11 | ||
275 | 4 | ||
276 | 21 | ||
277 | 6 | ||
278 | 5 | ||
279 | 0 | ||
280 | 8 | ||
281 | 8 | ||
282 | 12 | ||
283 | 0 | ||
284 | 0 | ||
285 | 4 | ||
286 | 1 | ||
287 | 19 | ||
288 | 5 | ||
289 | 3 | ||
290 | 1 | ||
291 | 3 | ||
292 | 12 | ||
293 | 2 | ||
294 | 6 | ||
295 | 11 | ||
296 | 8 | ||
297 | 8 | ||
298 | 2 | ||
299 | 18 | ||
300 | 0 | ||
diff --git a/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/plot_distribution.m b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/plot_distribution.m new file mode 100644 index 00000000..4c67a191 --- /dev/null +++ b/Metrics/Metrics-Calculation/SocialNetwork_plugin/model/statistics/plot_distribution.m | |||
@@ -0,0 +1,11 @@ | |||
1 | clear; | ||
2 | clc; | ||
3 | |||
4 | matrix = load('-ascii', "output.txt"); | ||
5 | hist(matrix,unique(matrix)); | ||
6 | hold on; | ||
7 | [a,b] = hist(matrix,unique(matrix)) | ||
8 | plot(b, a) | ||
9 | hold off; | ||
10 | sum(matrix) | ||
11 | average = sum(matrix) / length(matrix) \ No newline at end of file | ||