From da82e14b08479796478e6a3339ba0a70d0fe9c66 Mon Sep 17 00:00:00 2001
From: Fabian Brosig <fabian.brosig@uni-wuerzburg.de>
Date: Mon, 29 Dec 2014 12:36:44 +0100
Subject: [PATCH] add Min example as Eclipse project

---
 Min/.project                                  | 17 ++++
 .../org.eclipse.core.resources.prefs          |  3 +
 Min/DMLListEntitiesQuery.dql                  |  2 +
 Min/DMLListMetrics.dql                        |  3 +
 Min/DMLSelectMetrics.dql                      |  4 +
 Min/min.deployment                            |  9 ++
 Min/min.diagram                               | 85 +++++++++++++++++++
 Min/min.repository                            | 22 +++++
 Min/min.resourcelandscape                     | 21 +++++
 Min/min.resourcetype                          |  6 ++
 Min/min.system                                | 12 +++
 Min/min.usageprofile                          | 19 +++++
 Min/minmodels.properties                      |  7 ++
 13 files changed, 210 insertions(+)
 create mode 100644 Min/.project
 create mode 100644 Min/.settings/org.eclipse.core.resources.prefs
 create mode 100644 Min/DMLListEntitiesQuery.dql
 create mode 100644 Min/DMLListMetrics.dql
 create mode 100644 Min/DMLSelectMetrics.dql
 create mode 100644 Min/min.deployment
 create mode 100644 Min/min.diagram
 create mode 100644 Min/min.repository
 create mode 100644 Min/min.resourcelandscape
 create mode 100644 Min/min.resourcetype
 create mode 100644 Min/min.system
 create mode 100644 Min/min.usageprofile
 create mode 100644 Min/minmodels.properties

diff --git a/Min/.project b/Min/.project
new file mode 100644
index 0000000..abf3147
--- /dev/null
+++ b/Min/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>Min</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
+	</natures>
+</projectDescription>
diff --git a/Min/.settings/org.eclipse.core.resources.prefs b/Min/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..964e593
--- /dev/null
+++ b/Min/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,3 @@
+eclipse.preferences.version=1
+encoding/min.diagram=UTF-8
+encoding/min.system=UTF-8
diff --git a/Min/DMLListEntitiesQuery.dql b/Min/DMLListEntitiesQuery.dql
new file mode 100644
index 0000000..464b58b
--- /dev/null
+++ b/Min/DMLListEntitiesQuery.dql
@@ -0,0 +1,2 @@
+LIST ENTITIES
+USING dml@'/Min/minmodels.properties';
\ No newline at end of file
diff --git a/Min/DMLListMetrics.dql b/Min/DMLListMetrics.dql
new file mode 100644
index 0000000..500c92a
--- /dev/null
+++ b/Min/DMLListMetrics.dql
@@ -0,0 +1,3 @@
+LIST METRICS (RESOURCE '_I3tj4EnuEeOWVc_o6w1CBw' AS res1,
+			  SERVICE  '_A_DeMEmxEeOPLK3yYyEQWQ' AS svc1) 
+USING dml@'/Min/minmodels.properties';
\ No newline at end of file
diff --git a/Min/DMLSelectMetrics.dql b/Min/DMLSelectMetrics.dql
new file mode 100644
index 0000000..cdbb1ca
--- /dev/null
+++ b/Min/DMLSelectMetrics.dql
@@ -0,0 +1,4 @@
+SELECT res1.utilization, svc1.avgResponseTime
+FOR RESOURCE '_I3tj4EnuEeOWVc_o6w1CBw' AS res1,
+	SERVICE  '_A_DeMEmxEeOPLK3yYyEQWQ' AS svc1 
+USING dml@'/Min/minmodels.properties';
\ No newline at end of file
diff --git a/Min/min.deployment b/Min/min.deployment
new file mode 100644
index 0000000..f65a277
--- /dev/null
+++ b/Min/min.deployment
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment:Deployment xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:deployment="http://www.descartes-research.net/metamodel/deployment/0.1" xmlns:resourcelandscape="http://www.descartes-research.net/metamodel/resourcelandscape/0.1" id="_04BXQOa4EeGWevb6qKkohg" name="depl">
+  <system href="min.system#_zdRVAEeoEeSW4Op0B0CyhQ"/>
+  <targetResourceLandscape href="min.resourcelandscape#_FE29UEnuEeOWVc_o6w1CBw"/>
+  <deploymentContexts id="_XCpjIEnvEeOWVc_o6w1CBw" name="DeplContext">
+    <assemblyContext href="min.system#_5QiUIEeoEeSW4Op0B0CyhQ"/>
+    <resourceContainer xsi:type="resourcelandscape:ComputingInfrastructure" href="min.resourcelandscape#_GaVigEnuEeOWVc_o6w1CBw"/>
+  </deploymentContexts>
+</deployment:Deployment>
diff --git a/Min/min.diagram b/Min/min.diagram
new file mode 100644
index 0000000..9fe1e38
--- /dev/null
+++ b/Min/min.diagram
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="ASCII"?>
+<pi:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:al="http://eclipse.org/graphiti/mm/algorithms" xmlns:pi="http://eclipse.org/graphiti/mm/pictograms" visible="true" gridUnit="10" diagramTypeId="DescartesCompositeComponentDiagram" name="Diagram of MySys" snapToGrid="true" pictogramLinks="//@children.0/@link //@children.0/@children.1/@link //@children.0/@anchors.0/@link //@children.0/@children.2/@link //@children.0/@children.2/@children.1/@link //@children.0/@children.2/@anchors.0/@link //@connections.0/@link" version="0.11.0">
+  <graphicsAlgorithm xsi:type="al:Rectangle" background="//@colors.1" foreground="//@colors.0" lineWidth="1" transparency="0.0" width="1000" height="1000"/>
+  <link>
+    <businessObjects href="min.system#_zdRVAEeoEeSW4Op0B0CyhQ"/>
+  </link>
+  <children xsi:type="pi:ContainerShape" visible="true" active="true">
+    <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="1.0" width="621" height="231" y="30">
+      <graphicsAlgorithmChildren xsi:type="al:RoundedRectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="2" transparency="0.5" width="421" height="231" x="100" cornerHeight="5" cornerWidth="5"/>
+    </graphicsAlgorithm>
+    <link>
+      <businessObjects href="min.system#_zdRVAEeoEeSW4Op0B0CyhQ"/>
+    </link>
+    <anchors xsi:type="pi:BoxRelativeAnchor" visible="true" active="true" outgoingConnections="//@connections.0" referencedGraphicsAlgorithm="//@children.0/@graphicsAlgorithm/@graphicsAlgorithmChildren.0" useAnchorLocationAsConnectionEndpoint="true" relativeHeight="0.5">
+      <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="101" height="20" x="-100" y="-10">
+        <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.3" foreground="//@colors.2" lineWidth="2" lineStyle="UNSPECIFIED" width="20" height="20" x="70"/>
+        <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineWidth="2">
+          <points x="89" y="9"/>
+          <points x="101" y="9"/>
+        </graphicsAlgorithmChildren>
+        <graphicsAlgorithmChildren xsi:type="al:Text" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="70" height="20" font="//@fonts.0" horizontalAlignment="ALIGNMENT_RIGHT" value="ProvRole_IA"/>
+      </graphicsAlgorithm>
+      <link>
+        <businessObjects href="min.system#_zdRVAUeoEeSW4Op0B0CyhQ"/>
+      </link>
+    </anchors>
+    <children visible="true">
+      <graphicsAlgorithm xsi:type="al:Polyline" foreground="//@colors.2" lineWidth="2" filled="false" transparency="0.0">
+        <points x="100" y="20"/>
+        <points x="521" y="20"/>
+      </graphicsAlgorithm>
+    </children>
+    <children visible="true">
+      <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="421" height="20" x="100" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="MySys"/>
+      <link>
+        <businessObjects href="min.system#_zdRVAEeoEeSW4Op0B0CyhQ"/>
+      </link>
+    </children>
+    <children xsi:type="pi:ContainerShape" visible="true" active="true">
+      <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="1.0" width="230" height="50" x="115" y="160">
+        <graphicsAlgorithmChildren xsi:type="al:RoundedRectangle" background="//@colors.3" foreground="//@colors.2" lineWidth="2" transparency="0.0" width="100" height="50" x="65" cornerHeight="5" cornerWidth="5"/>
+      </graphicsAlgorithm>
+      <link>
+        <businessObjects href="min.system#_5QiUIEeoEeSW4Op0B0CyhQ"/>
+      </link>
+      <anchors xsi:type="pi:BoxRelativeAnchor" visible="true" active="true" incomingConnections="//@connections.0" referencedGraphicsAlgorithm="//@children.0/@children.2/@graphicsAlgorithm/@graphicsAlgorithmChildren.0" relativeHeight="0.5">
+        <graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" filled="false" lineVisible="false" transparency="0.0" width="66" height="10" x="-65" y="-5">
+          <graphicsAlgorithmChildren xsi:type="al:Ellipse" background="//@colors.3" foreground="//@colors.2" lineWidth="2" lineStyle="UNSPECIFIED" width="10" height="10" x="50"/>
+          <graphicsAlgorithmChildren xsi:type="al:Polyline" foreground="//@colors.2" lineWidth="2">
+            <points x="59" y="4"/>
+            <points x="66" y="4"/>
+          </graphicsAlgorithmChildren>
+          <graphicsAlgorithmChildren xsi:type="al:Text" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="50" height="20" y="-5" font="//@fonts.0" horizontalAlignment="ALIGNMENT_RIGHT" value="provRole"/>
+        </graphicsAlgorithm>
+        <link>
+          <businessObjects href="min.repository#_fMTX4EicEeOUHduTkzq26A"/>
+        </link>
+      </anchors>
+      <children visible="true">
+        <graphicsAlgorithm xsi:type="al:Polyline" foreground="//@colors.2" lineWidth="2" filled="false" transparency="0.0">
+          <points x="65" y="20"/>
+          <points x="165" y="20"/>
+        </graphicsAlgorithm>
+      </children>
+      <children visible="true">
+        <graphicsAlgorithm xsi:type="al:Text" foreground="//@colors.4" lineWidth="1" filled="false" transparency="0.0" width="100" height="20" x="65" font="//@fonts.0" horizontalAlignment="ALIGNMENT_CENTER" value="actx"/>
+        <link>
+          <businessObjects href="min.system#_5QiUIEeoEeSW4Op0B0CyhQ"/>
+        </link>
+      </children>
+    </children>
+  </children>
+  <connections xsi:type="pi:FreeFormConnection" visible="true" active="true" start="//@children.0/@anchors.0" end="//@children.0/@children.2/@anchors.0">
+    <graphicsAlgorithm xsi:type="al:Polyline" foreground="//@colors.4" lineWidth="3" lineStyle="DASH" filled="false" transparency="0.0"/>
+    <link>
+      <businessObjects href="min.system#_6lWyAEeoEeSW4Op0B0CyhQ"/>
+    </link>
+  </connections>
+  <colors red="227" green="238" blue="249"/>
+  <colors red="255" green="255" blue="255"/>
+  <colors red="98" green="131" blue="167"/>
+  <colors red="187" green="218" blue="247"/>
+  <colors/>
+  <fonts name="Arial" size="8" bold="true"/>
+</pi:Diagram>
diff --git a/Min/min.repository b/Min/min.repository
new file mode 100644
index 0000000..c84d42e
--- /dev/null
+++ b/Min/min.repository
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="ASCII"?>
+<repository:Repository xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:functions="http://www.descartes-research.net/metamodel/functions/0.1" xmlns:repository="http://www.descartes-research.net/metamodel/repository/0.1" xmlns:resourcetype="http://www.descartes-research.net/metamodel/resourcetype/0.1" xmlns:servicebehavior="http://www.descartes-research.net/metamodel/servicebehavior/0.1" id="_O2wgMEcEEeOgk9V4uRCQAw" name="repositoryName">
+  <imports importURI="min.resourcetype"/>
+  <interfaces id="_Tq2AUUhvEeOHzfCev3b1wQ" name="IA">
+    <signatures id="_aeA_cEh-EeOdTtmYhYAY2w" name="boof"/>
+  </interfaces>
+  <components xsi:type="repository:BasicComponent" id="_ePxeNEicEeOUHduTkzq26A" name="Comp">
+    <interfaceProvidingRoles id="_fMTX4EicEeOUHduTkzq26A" name="provRole" interface="_Tq2AUUhvEeOHzfCev3b1wQ"/>
+    <fineGrainedBehavior describedSignature="_aeA_cEh-EeOdTtmYhYAY2w" interfaceProvidingRole="_fMTX4EicEeOUHduTkzq26A">
+      <behavior>
+        <actions xsi:type="servicebehavior:InternalAction">
+          <resourceDemand characterization="EXPLICIT">
+            <resourceType xsi:type="resourcetype:ProcessingResourceType" href="min.resourcetype#_wb33sEibEeOUHduTkzq26A"/>
+            <explicitDescription>
+              <probFunction xsi:type="functions:ExponentialDistribution" rate="2.0"/>
+            </explicitDescription>
+          </resourceDemand>
+        </actions>
+      </behavior>
+    </fineGrainedBehavior>
+  </components>
+</repository:Repository>
diff --git a/Min/min.resourcelandscape b/Min/min.resourcelandscape
new file mode 100644
index 0000000..0a43479
--- /dev/null
+++ b/Min/min.resourcelandscape
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<resourcelandscape:DistributedDataCenter xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:resourceconfiguration="http://www.descartes-research.net/metamodel/resourceconfiguration/0.1" xmlns:resourcelandscape="http://www.descartes-research.net/metamodel/resourcelandscape/0.1" id="_FE29UEnuEeOWVc_o6w1CBw" name="ddc">
+  <consistsOf id="_FnQfwEnuEeOWVc_o6w1CBw" name="dc">
+    <contains xsi:type="resourcelandscape:ComputingInfrastructure" id="_GaVigEnuEeOWVc_o6w1CBw" name="compinfra">
+      <configSpec xsi:type="resourceconfiguration:ActiveResourceSpecification" id="_HaU_4EnuEeOWVc_o6w1CBw" name="activers">
+        <processingResourceSpecifications id="_I3tj4EnuEeOWVc_o6w1CBw" name="processingCPU" schedulingPolicy="PROCESSOR_SHARING" processingRate="1000.0">
+          <activeResourceType href="min.resourcetype#_wb33sEibEeOUHduTkzq26A"/>
+          <nrOfParProcUnits id="_Jd8dcEnuEeOWVc_o6w1CBw" name="numberofcores" number="1"/>
+        </processingResourceSpecifications>
+        <processingResourceSpecifications id="_daxLACRlEeS6t8oIpPE2Zg" name="processingHDD" schedulingPolicy="FCFS">
+          <activeResourceType href="min.resourcetype#_KmZtECRlEeS6t8oIpPE2Zg"/>
+          <nrOfParProcUnits id="_jRyBsCRlEeS6t8oIpPE2Zg" name="multiplicity" number="1"/>
+        </processingResourceSpecifications>
+        <processingResourceSpecifications id="_rbWJ0CRlEeS6t8oIpPE2Zg" name="delayResource">
+          <activeResourceType href="min.resourcetype#_2AqisCRlEeS6t8oIpPE2Zg"/>
+          <nrOfParProcUnits id="_8hMQcCRlEeS6t8oIpPE2Zg" name="multiplicity" number="1"/>
+        </processingResourceSpecifications>
+      </configSpec>
+    </contains>
+  </consistsOf>
+</resourcelandscape:DistributedDataCenter>
diff --git a/Min/min.resourcetype b/Min/min.resourcetype
new file mode 100644
index 0000000..5c0e23a
--- /dev/null
+++ b/Min/min.resourcetype
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<resourcetype:ResourceTypeRepository xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:resourcetype="http://www.descartes-research.net/metamodel/resourcetype/0.1">
+  <resourceTypes xsi:type="resourcetype:ProcessingResourceType" id="_wb33sEibEeOUHduTkzq26A" name="CPU"/>
+  <resourceTypes xsi:type="resourcetype:ProcessingResourceType" id="_KmZtECRlEeS6t8oIpPE2Zg" name="HDD"/>
+  <resourceTypes xsi:type="resourcetype:ProcessingResourceType" id="_2AqisCRlEeS6t8oIpPE2Zg" name="DELAY"/>
+</resourcetype:ResourceTypeRepository>
diff --git a/Min/min.system b/Min/min.system
new file mode 100644
index 0000000..3f04247
--- /dev/null
+++ b/Min/min.system
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="ASCII"?>
+<system:System xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:repository="http://www.descartes-research.net/metamodel/repository/0.1" xmlns:system="http://www.descartes-research.net/metamodel/system/0.1" id="_zdRVAEeoEeSW4Op0B0CyhQ" name="MySys">
+  <assemblyContexts id="_5QiUIEeoEeSW4Op0B0CyhQ" name="actx">
+    <encapsulatedComponent xsi:type="repository:BasicComponent" href="min.repository#_ePxeNEicEeOUHduTkzq26A"/>
+  </assemblyContexts>
+  <providingDelegationConnectors id="_6lWyAEeoEeSW4Op0B0CyhQ" name="PDCn_provRole_ProvRole_IA" assemblyContext="_5QiUIEeoEeSW4Op0B0CyhQ" outerInterfaceProvidingRole="_zdRVAUeoEeSW4Op0B0CyhQ">
+    <innerInterfaceProvidingRole href="min.repository#_fMTX4EicEeOUHduTkzq26A"/>
+  </providingDelegationConnectors>
+  <interfaceProvidingRoles id="_zdRVAUeoEeSW4Op0B0CyhQ" name="ProvRole_IA">
+    <interface href="min.repository#_Tq2AUUhvEeOHzfCev3b1wQ"/>
+  </interfaceProvidingRoles>
+</system:System>
diff --git a/Min/min.usageprofile b/Min/min.usageprofile
new file mode 100644
index 0000000..b21ce9b
--- /dev/null
+++ b/Min/min.usageprofile
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="ASCII"?>
+<usageprofile:UsageProfile xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:functions="http://www.descartes-research.net/metamodel/functions/0.1" xmlns:usageprofile="http://www.descartes-research.net/metamodel/usageprofile/0.1" id="_yiEmIEeqEeSW4Op0B0CyhQ" name="usgProfile">
+  <imports importURI="min.system"/>
+  <imports importURI="min.repository"/>
+  <system href="min.system#_zdRVAEeoEeSW4Op0B0CyhQ"/>
+  <usageScenarios id="_yiFNMEeqEeSW4Op0B0CyhQ" name="do">
+    <scenarioBehavior>
+      <actions xsi:type="usageprofile:SystemCallUserAction" id="_A_DeMEmxEeOPLK3yYyEQWQ" name="SysCall_boof">
+        <providingRole href="min.system#_zdRVAUeoEeSW4Op0B0CyhQ"/>
+        <signature href="min.repository#_aeA_cEh-EeOdTtmYhYAY2w"/>
+      </actions>
+    </scenarioBehavior>
+    <workloadType xsi:type="usageprofile:ClosedWorkloadType" population="10">
+      <thinkTime>
+        <probFunction xsi:type="functions:ExponentialDistribution" rate="4.2"/>
+      </thinkTime>
+    </workloadType>
+  </usageScenarios>
+</usageprofile:UsageProfile>
diff --git a/Min/minmodels.properties b/Min/minmodels.properties
new file mode 100644
index 0000000..4a4c3d8
--- /dev/null
+++ b/Min/minmodels.properties
@@ -0,0 +1,7 @@
+## Model Instance
+dml.files.usageprofile=/Min/min.usageprofile
+dml.files.system=/Min/min.system
+dml.files.resourcelandscape=/Min/min.resourcelandscape
+dml.files.repository=/Min/min.repository
+dml.files.deployment=/Min/min.deployment
+#dml.outputdirectory=/Min/results/
-- 
GitLab