From 43eee9b8591a820bb6f45a352be3a1d215411894 Mon Sep 17 00:00:00 2001 From: Simon <simon.eismann@uni-wuerzburg.de> Date: Thu, 22 Nov 2018 22:14:19 +0100 Subject: [PATCH] initial --- .../HelloWorldExample/DML-Model/min.system | 5 + .../DML-Model/min.deployment | 33 ++++ .../DML-Model/min.repository | 181 ++++++++++++++++++ .../DML-Model/min.resourcelandscape | 47 +++++ .../SyntheticComponents/DML-Model/min.system | 54 ++++++ .../DML-Model/min.usageprofile | 19 ++ .../DQL-Queries/Analysis.dql | 26 +++ .../DQL-Queries/minmodel.properties | 7 + dml-examples/SyntheticComponents/README | 1 + 9 files changed, 373 insertions(+) create mode 100644 dml-examples/SyntheticComponents/DML-Model/min.deployment create mode 100644 dml-examples/SyntheticComponents/DML-Model/min.repository create mode 100644 dml-examples/SyntheticComponents/DML-Model/min.resourcelandscape create mode 100644 dml-examples/SyntheticComponents/DML-Model/min.system create mode 100644 dml-examples/SyntheticComponents/DML-Model/min.usageprofile create mode 100644 dml-examples/SyntheticComponents/DQL-Queries/Analysis.dql create mode 100644 dml-examples/SyntheticComponents/DQL-Queries/minmodel.properties create mode 100644 dml-examples/SyntheticComponents/README diff --git a/dml-examples/HelloWorldExample/DML-Model/min.system b/dml-examples/HelloWorldExample/DML-Model/min.system index 38b574b..1d9eae3 100644 --- a/dml-examples/HelloWorldExample/DML-Model/min.system +++ b/dml-examples/HelloWorldExample/DML-Model/min.system @@ -2,6 +2,11 @@ <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.tools/metamodel/repository/1.0" xmlns:system="http://www.descartes.tools/metamodel/system/1.0" id="_zdRVAEeoEeSW4Op0B0CyhQ" name="MySys"> <assemblyContexts id="_xTn9IZ7EEeec6726JGgl9g" name="B1"> <encapsulatedComponent xsi:type="repository:BasicComponent" href="min.repository#_miQFRJ7EEeec6726JGgl9g"/> + <statisticalModel xsi:type="system:MARSModel"> + <describedSignature href="min.repository#_h7eHYJ7EEeec6726JGgl9g"/> + <interfaceProvidingRole href="min.repository#_o98roJ7EEeec6726JGgl9g"/> + <basisFunctions xsi:type="system:Constant" coefficient="3"/> + </statisticalModel> </assemblyContexts> <providingDelegationConnectors id="_6lWyAEeoEeSW4Op0B0CyhQ" name="PDCn_provRole_ProvRole_IA" assemblyContext="_xTn9IZ7EEeec6726JGgl9g" outerInterfaceProvidingRole="_zdRVAUeoEeSW4Op0B0CyhQ"> <innerInterfaceProvidingRole href="min.repository#_o98roJ7EEeec6726JGgl9g"/> diff --git a/dml-examples/SyntheticComponents/DML-Model/min.deployment b/dml-examples/SyntheticComponents/DML-Model/min.deployment new file mode 100644 index 0000000..4f19c29 --- /dev/null +++ b/dml-examples/SyntheticComponents/DML-Model/min.deployment @@ -0,0 +1,33 @@ +<?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.tools/metamodel/deployment/1.0" xmlns:resourcelandscape="http://www.descartes.tools/metamodel/resourcelandscape/0.1" id="_04BXQOa4EeGWevb6qKkohg" name="depl"> + <system href="min.system#_zdRVAEeoEeSW4Op0B0CyhQ"/> + <targetResourceLandscape href="min.resourcelandscape#_FE29UEnuEeOWVc_o6w1CBw"/> + <deploymentContexts id="_cpot0O2fEeib_P5jAe7dPw" name="A --> CPA"> + <assemblyContext href="min.system#_u5u2gO2eEeib_P5jAe7dPw"/> + <resourceContainer xsi:type="resourcelandscape:ComputeNode" href="min.resourcelandscape#_EuLk4ObvEeWHMYaSILpfIw"/> + </deploymentContexts> + <deploymentContexts id="_c_BH8e2fEeib_P5jAe7dPw" name="B --> CPB"> + <assemblyContext href="min.system#_vO84kO2eEeib_P5jAe7dPw"/> + <resourceContainer xsi:type="resourcelandscape:ComputeNode" href="min.resourcelandscape#_We1_g-2fEeib_P5jAe7dPw"/> + </deploymentContexts> + <deploymentContexts id="_dD0vce2fEeib_P5jAe7dPw" name="C --> CPC"> + <assemblyContext href="min.system#_v9rm0e2eEeib_P5jAe7dPw"/> + <resourceContainer xsi:type="resourcelandscape:ComputeNode" href="min.resourcelandscape#_WjRMg-2fEeib_P5jAe7dPw"/> + </deploymentContexts> + <deploymentContexts id="_dJi88e2fEeib_P5jAe7dPw" name="D --> CPD"> + <assemblyContext href="min.system#_wFKH0e2eEeib_P5jAe7dPw"/> + <resourceContainer xsi:type="resourcelandscape:ComputeNode" href="min.resourcelandscape#_Wr9Oc-2fEeib_P5jAe7dPw"/> + </deploymentContexts> + <deploymentContexts id="_dT7A8e2fEeib_P5jAe7dPw" name="E --> CPE"> + <assemblyContext href="min.system#_wWZo0e2eEeib_P5jAe7dPw"/> + <resourceContainer xsi:type="resourcelandscape:ComputeNode" href="min.resourcelandscape#_W2Lhc-2fEeib_P5jAe7dPw"/> + </deploymentContexts> + <deploymentContexts id="_dcUH8e2fEeib_P5jAe7dPw" name="F --> CPF"> + <assemblyContext href="min.system#_wbvb0e2eEeib_P5jAe7dPw"/> + <resourceContainer xsi:type="resourcelandscape:ComputeNode" href="min.resourcelandscape#_W9C-c-2fEeib_P5jAe7dPw"/> + </deploymentContexts> + <deploymentContexts id="_othWce2fEeib_P5jAe7dPw" name="G --> CPG"> + <assemblyContext href="min.system#_3PwtUe2eEeib_P5jAe7dPw"/> + <resourceContainer xsi:type="resourcelandscape:ComputeNode" href="min.resourcelandscape#_XFIjc-2fEeib_P5jAe7dPw"/> + </deploymentContexts> +</deployment:Deployment> diff --git a/dml-examples/SyntheticComponents/DML-Model/min.repository b/dml-examples/SyntheticComponents/DML-Model/min.repository new file mode 100644 index 0000000..68ad974 --- /dev/null +++ b/dml-examples/SyntheticComponents/DML-Model/min.repository @@ -0,0 +1,181 @@ +<?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.tools/metamodel/functions/1.0" xmlns:repository="http://www.descartes.tools/metamodel/repository/1.0" xmlns:resourcetype="http://www.descartes.tools/metamodel/resourcetype/1.0" xmlns:servicebehavior="http://www.descartes.tools/metamodel/servicebehavior/1.0" id="_O2wgMEcEEeOgk9V4uRCQAw" name="repositoryName"> + <interfaces id="_uqNJk-2aEeib_P5jAe7dPw" name="A"> + <signatures id="_vzGrUO2aEeib_P5jAe7dPw" name="A"/> + </interfaces> + <interfaces id="_xapQ4O2aEeib_P5jAe7dPw" name="B"> + <signatures id="_xapQ4e2aEeib_P5jAe7dPw" name="B"/> + </interfaces> + <interfaces id="_xf4WMu2aEeib_P5jAe7dPw" name="C"> + <signatures id="_xf4WM-2aEeib_P5jAe7dPw" name="C"/> + </interfaces> + <interfaces id="_I6TZQu2bEeib_P5jAe7dPw" name="D"> + <signatures id="_I6TZQ-2bEeib_P5jAe7dPw" name="D"/> + </interfaces> + <interfaces id="_JCed0e2bEeib_P5jAe7dPw" name="E"> + <signatures id="_JCed0u2bEeib_P5jAe7dPw" name="E"/> + </interfaces> + <interfaces id="_JTZ1wu2bEeib_P5jAe7dPw" name="F"> + <signatures id="_JTZ1w-2bEeib_P5jAe7dPw" name="F"/> + </interfaces> + <interfaces id="_JqhVQu2bEeib_P5jAe7dPw" name="G"> + <signatures id="_JqhVQ-2bEeib_P5jAe7dPw" name="G"/> + </interfaces> + <components xsi:type="repository:BasicComponent" id="_Q2VbtO2bEeib_P5jAe7dPw" name="A"> + <interfaceProvidingRoles id="_SHb3MO2bEeib_P5jAe7dPw" name="A" interface="_uqNJk-2aEeib_P5jAe7dPw"/> + <interfaceRequiringRoles id="_S0bgEe2bEeib_P5jAe7dPw" name="B" interface="_xapQ4O2aEeib_P5jAe7dPw"/> + <fineGrainedBehavior describedSignature="_vzGrUO2aEeib_P5jAe7dPw" interfaceProvidingRole="_SHb3MO2bEeib_P5jAe7dPw"> + <behavior> + <actions xsi:type="servicebehavior:InternalAction"> + <resourceDemand id="_Z0axAO2bEeib_P5jAe7dPw" characterization="EXPLICIT"> + <explicitDescription> + <probFunction xsi:type="functions:ExponentialDistribution" rate="0.05"/> + </explicitDescription> + <resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/> + </resourceDemand> + </actions> + <actions xsi:type="servicebehavior:ExternalCallAction"> + <externalCall id="_jPXogO2bEeib_P5jAe7dPw" name="ToB" signature="_xapQ4e2aEeib_P5jAe7dPw" interfaceRequiringRole="_S0bgEe2bEeib_P5jAe7dPw"/> + </actions> + </behavior> + </fineGrainedBehavior> + </components> + <components xsi:type="repository:BasicComponent" id="_ng-npO2bEeib_P5jAe7dPw" name="B"> + <interfaceProvidingRoles id="_oTaxMO2bEeib_P5jAe7dPw" name="B" interface="_xapQ4O2aEeib_P5jAe7dPw"/> + <interfaceRequiringRoles id="_o-tJ4e2bEeib_P5jAe7dPw" name="C" interface="_xf4WMu2aEeib_P5jAe7dPw"/> + <interfaceRequiringRoles id="_pW0u8e2bEeib_P5jAe7dPw" name="E" interface="_JCed0e2bEeib_P5jAe7dPw"/> + <fineGrainedBehavior describedSignature="_xapQ4e2aEeib_P5jAe7dPw" interfaceProvidingRole="_oTaxMO2bEeib_P5jAe7dPw"> + <behavior> + <actions xsi:type="servicebehavior:InternalAction"> + <resourceDemand id="_wQn4UO2bEeib_P5jAe7dPw" characterization="EXPLICIT"> + <explicitDescription> + <probFunction xsi:type="functions:DoubleLiteral" value="20"/> + </explicitDescription> + <resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/> + </resourceDemand> + </actions> + <actions xsi:type="servicebehavior:ExternalCallAction"> + <externalCall id="_1XjV4O2bEeib_P5jAe7dPw" name="ToC" signature="_xf4WM-2aEeib_P5jAe7dPw" interfaceRequiringRole="_o-tJ4e2bEeib_P5jAe7dPw"/> + </actions> + <actions xsi:type="servicebehavior:ExternalCallAction"> + <externalCall id="_3Nfj0O2bEeib_P5jAe7dPw" name="ToE" signature="_JCed0u2bEeib_P5jAe7dPw" interfaceRequiringRole="_pW0u8e2bEeib_P5jAe7dPw"/> + </actions> + </behavior> + </fineGrainedBehavior> + </components> + <components xsi:type="repository:BasicComponent" id="_5tliBO2bEeib_P5jAe7dPw" name="C"> + <interfaceProvidingRoles id="_7gZjcO2bEeib_P5jAe7dPw" name="C" interface="_xf4WMu2aEeib_P5jAe7dPw"/> + <interfaceRequiringRoles id="_674hIe2bEeib_P5jAe7dPw" name="D" interface="_I6TZQu2bEeib_P5jAe7dPw"/> + <fineGrainedBehavior describedSignature="_xf4WM-2aEeib_P5jAe7dPw" interfaceProvidingRole="_7gZjcO2bEeib_P5jAe7dPw"> + <behavior> + <actions xsi:type="servicebehavior:InternalAction"> + <resourceDemand id="_CXbssO2cEeib_P5jAe7dPw" characterization="EXPLICIT"> + <explicitDescription> + <probFunction xsi:type="functions:NormalDistribution" mu="10" sigma="1"/> + </explicitDescription> + <resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/> + </resourceDemand> + </actions> + <actions xsi:type="servicebehavior:LoopAction"> + <loopBodyBehavior> + <actions xsi:type="servicebehavior:ExternalCallAction"> + <externalCall id="_W7bVMO2cEeib_P5jAe7dPw" name="ToD" signature="_I6TZQ-2bEeib_P5jAe7dPw" interfaceRequiringRole="_674hIe2bEeib_P5jAe7dPw"/> + </actions> + </loopBodyBehavior> + <loopIterationCount id="_HkxUQO2cEeib_P5jAe7dPw" characterization="EXPLICIT"> + <explicitDescription> + <probFunction xsi:type="functions:IntLiteral" value="5"/> + </explicitDescription> + </loopIterationCount> + </actions> + </behavior> + </fineGrainedBehavior> + </components> + <components xsi:type="repository:BasicComponent" id="_szxFBO2dEeib_P5jAe7dPw" name="D"> + <interfaceProvidingRoles id="_uP8vIO2dEeib_P5jAe7dPw" name="D" interface="_I6TZQu2bEeib_P5jAe7dPw"/> + <fineGrainedBehavior describedSignature="_I6TZQ-2bEeib_P5jAe7dPw" interfaceProvidingRole="_uP8vIO2dEeib_P5jAe7dPw"> + <behavior> + <actions xsi:type="servicebehavior:InternalAction"> + <resourceDemand id="_zA8Y8O2dEeib_P5jAe7dPw" characterization="EXPLICIT"> + <explicitDescription> + <probFunction xsi:type="functions:NormalDistribution" mu="10" sigma="1"/> + </explicitDescription> + <resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/> + </resourceDemand> + </actions> + </behavior> + </fineGrainedBehavior> + </components> + <components xsi:type="repository:BasicComponent" id="_59cRBO2dEeib_P5jAe7dPw" name="E"> + <interfaceProvidingRoles id="_6wgFoO2dEeib_P5jAe7dPw" name="E" interface="_JCed0e2bEeib_P5jAe7dPw"/> + <interfaceRequiringRoles id="_7K9NAe2dEeib_P5jAe7dPw" name="F" interface="_JTZ1wu2bEeib_P5jAe7dPw"/> + <interfaceRequiringRoles id="_7nafge2dEeib_P5jAe7dPw" name="G" interface="_JqhVQu2bEeib_P5jAe7dPw"/> + <fineGrainedBehavior describedSignature="_JCed0u2bEeib_P5jAe7dPw" interfaceProvidingRole="_6wgFoO2dEeib_P5jAe7dPw"> + <behavior> + <actions xsi:type="servicebehavior:InternalAction"> + <resourceDemand id="_Df43oO2eEeib_P5jAe7dPw" characterization="EXPLICIT"> + <explicitDescription> + <probFunction xsi:type="functions:ExponentialDistribution" rate="0.2"/> + </explicitDescription> + <resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/> + </resourceDemand> + </actions> + <actions xsi:type="servicebehavior:ExternalCallAction"> + <externalCall id="_NSR-wO2eEeib_P5jAe7dPw" name="ToF" signature="_JTZ1w-2bEeib_P5jAe7dPw" interfaceRequiringRole="_7K9NAe2dEeib_P5jAe7dPw"/> + </actions> + <actions xsi:type="servicebehavior:ExternalCallAction"> + <externalCall id="_PVKcgO2eEeib_P5jAe7dPw" name="ToG" signature="_JqhVQ-2bEeib_P5jAe7dPw" interfaceRequiringRole="_7nafge2dEeib_P5jAe7dPw"/> + </actions> + </behavior> + </fineGrainedBehavior> + </components> + <components xsi:type="repository:BasicComponent" id="_RZ57dO2eEeib_P5jAe7dPw" name="F"> + <interfaceProvidingRoles id="_S_LQIO2eEeib_P5jAe7dPw" name="F" interface="_JTZ1wu2bEeib_P5jAe7dPw"/> + <fineGrainedBehavior describedSignature="_JTZ1w-2bEeib_P5jAe7dPw" interfaceProvidingRole="_S_LQIO2eEeib_P5jAe7dPw"> + <behavior> + <actions xsi:type="servicebehavior:BranchAction"> + <branches> + <actions xsi:type="servicebehavior:InternalAction"> + <resourceDemand id="_cG0KEO2eEeib_P5jAe7dPw" characterization="EXPLICIT"> + <explicitDescription> + <probFunction xsi:type="functions:DoubleLiteral" value="20"/> + </explicitDescription> + <resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/> + </resourceDemand> + </actions> + </branches> + <branches> + <actions xsi:type="servicebehavior:InternalAction"> + <resourceDemand id="_gSfgUe2eEeib_P5jAe7dPw" characterization="EXPLICIT"> + <explicitDescription> + <probFunction xsi:type="functions:DoubleLiteral" value="100"/> + </explicitDescription> + <resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/> + </resourceDemand> + </actions> + </branches> + <branchProbabilities id="_XbBJUO2eEeib_P5jAe7dPw" characterization="EXPLICIT"> + <explicitDescription> + <probFunction xsi:type="functions:DoubleLiteral" value="0.8"/> + </explicitDescription> + </branchProbabilities> + </actions> + </behavior> + </fineGrainedBehavior> + </components> + <components xsi:type="repository:BasicComponent" id="_R1LiNO2eEeib_P5jAe7dPw" name="G"> + <interfaceProvidingRoles id="_TRbdwO2eEeib_P5jAe7dPw" name="G" interface="_JqhVQu2bEeib_P5jAe7dPw"/> + <fineGrainedBehavior describedSignature="_JqhVQ-2bEeib_P5jAe7dPw" interfaceProvidingRole="_TRbdwO2eEeib_P5jAe7dPw"> + <behavior> + <actions xsi:type="servicebehavior:InternalAction"> + <resourceDemand id="_mprE0O2eEeib_P5jAe7dPw" characterization="EXPLICIT"> + <explicitDescription> + <probFunction xsi:type="functions:ExponentialDistribution" rate="0.03333333333"/> + </explicitDescription> + <resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/> + </resourceDemand> + </actions> + </behavior> + </fineGrainedBehavior> + </components> +</repository:Repository> diff --git a/dml-examples/SyntheticComponents/DML-Model/min.resourcelandscape b/dml-examples/SyntheticComponents/DML-Model/min.resourcelandscape new file mode 100644 index 0000000..9c9273a --- /dev/null +++ b/dml-examples/SyntheticComponents/DML-Model/min.resourcelandscape @@ -0,0 +1,47 @@ +<?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.tools/metamodel/resourceconfiguration/1.0" xmlns:resourcelandscape="http://www.descartes.tools/metamodel/resourcelandscape/0.1" id="_FE29UEnuEeOWVc_o6w1CBw" name="ddc"> + <consistsOf id="_FnQfwEnuEeOWVc_o6w1CBw" name="dc"> + <computeNodes id="_EuLk4ObvEeWHMYaSILpfIw" name="CPA"> + <configSpec xsi:type="resourceconfiguration:ProcessingResourceSpecification" id="_I3tj4EnuEeOWVc_o6w1CBw" name="CPU" schedulingPolicy="FCFS" processingRate="1000.0"> + <processingResourceType href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/> + <nrOfParProcUnits id="_PUJdkAJEEeaYI8Ji-SVFxg" name="multiplicity" number="2"/> + </configSpec> + </computeNodes> + <computeNodes id="_We1_g-2fEeib_P5jAe7dPw" name="CPB"> + <configSpec xsi:type="resourceconfiguration:ProcessingResourceSpecification" id="_We1_hO2fEeib_P5jAe7dPw" name="CPU" schedulingPolicy="FCFS" processingRate="1000.0"> + <processingResourceType href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/> + <nrOfParProcUnits id="_We1_he2fEeib_P5jAe7dPw" name="multiplicity" number="2"/> + </configSpec> + </computeNodes> + <computeNodes id="_WjRMg-2fEeib_P5jAe7dPw" name="CPC"> + <configSpec xsi:type="resourceconfiguration:ProcessingResourceSpecification" id="_WjRMhO2fEeib_P5jAe7dPw" name="CPU" schedulingPolicy="FCFS" processingRate="1000.0"> + <processingResourceType href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/> + <nrOfParProcUnits id="_WjRMhe2fEeib_P5jAe7dPw" name="multiplicity" number="2"/> + </configSpec> + </computeNodes> + <computeNodes id="_Wr9Oc-2fEeib_P5jAe7dPw" name="CPD"> + <configSpec xsi:type="resourceconfiguration:ProcessingResourceSpecification" id="_Wr9OdO2fEeib_P5jAe7dPw" name="CPU" schedulingPolicy="FCFS" processingRate="1000.0"> + <processingResourceType href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/> + <nrOfParProcUnits id="_Wr9Ode2fEeib_P5jAe7dPw" name="multiplicity" number="2"/> + </configSpec> + </computeNodes> + <computeNodes id="_W2Lhc-2fEeib_P5jAe7dPw" name="CPE"> + <configSpec xsi:type="resourceconfiguration:ProcessingResourceSpecification" id="_W2LhdO2fEeib_P5jAe7dPw" name="CPU" schedulingPolicy="FCFS" processingRate="1000.0"> + <processingResourceType href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/> + <nrOfParProcUnits id="_W2Lhde2fEeib_P5jAe7dPw" name="multiplicity" number="2"/> + </configSpec> + </computeNodes> + <computeNodes id="_W9C-c-2fEeib_P5jAe7dPw" name="CPF"> + <configSpec xsi:type="resourceconfiguration:ProcessingResourceSpecification" id="_W9C-dO2fEeib_P5jAe7dPw" name="CPU" schedulingPolicy="FCFS" processingRate="1000.0"> + <processingResourceType href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/> + <nrOfParProcUnits id="_W9C-de2fEeib_P5jAe7dPw" name="multiplicity" number="2"/> + </configSpec> + </computeNodes> + <computeNodes id="_XFIjc-2fEeib_P5jAe7dPw" name="CPG"> + <configSpec xsi:type="resourceconfiguration:ProcessingResourceSpecification" id="_XFIjdO2fEeib_P5jAe7dPw" name="CPU" schedulingPolicy="FCFS" processingRate="1000.0"> + <processingResourceType href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/> + <nrOfParProcUnits id="_XFIjde2fEeib_P5jAe7dPw" name="multiplicity" number="2"/> + </configSpec> + </computeNodes> + </consistsOf> +</resourcelandscape:DistributedDataCenter> diff --git a/dml-examples/SyntheticComponents/DML-Model/min.system b/dml-examples/SyntheticComponents/DML-Model/min.system new file mode 100644 index 0000000..361898a --- /dev/null +++ b/dml-examples/SyntheticComponents/DML-Model/min.system @@ -0,0 +1,54 @@ +<?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.tools/metamodel/repository/1.0" xmlns:system="http://www.descartes.tools/metamodel/system/1.0" id="_zdRVAEeoEeSW4Op0B0CyhQ" name="MySys"> + <assemblyContexts id="_u5u2gO2eEeib_P5jAe7dPw" name="A"> + <encapsulatedComponent xsi:type="repository:BasicComponent" href="min.repository#_Q2VbtO2bEeib_P5jAe7dPw"/> + </assemblyContexts> + <assemblyContexts id="_vO84kO2eEeib_P5jAe7dPw" name="B"> + <encapsulatedComponent xsi:type="repository:BasicComponent" href="min.repository#_ng-npO2bEeib_P5jAe7dPw"/> + </assemblyContexts> + <assemblyContexts id="_v9rm0e2eEeib_P5jAe7dPw" name="C"> + <encapsulatedComponent xsi:type="repository:BasicComponent" href="min.repository#_5tliBO2bEeib_P5jAe7dPw"/> + </assemblyContexts> + <assemblyContexts id="_wFKH0e2eEeib_P5jAe7dPw" name="D"> + <encapsulatedComponent xsi:type="repository:BasicComponent" href="min.repository#_szxFBO2dEeib_P5jAe7dPw"/> + </assemblyContexts> + <assemblyContexts id="_wWZo0e2eEeib_P5jAe7dPw" name="E"> + <encapsulatedComponent xsi:type="repository:BasicComponent" href="min.repository#_59cRBO2dEeib_P5jAe7dPw"/> + </assemblyContexts> + <assemblyContexts id="_wbvb0e2eEeib_P5jAe7dPw" name="F"> + <encapsulatedComponent xsi:type="repository:BasicComponent" href="min.repository#_RZ57dO2eEeib_P5jAe7dPw"/> + </assemblyContexts> + <assemblyContexts id="_3PwtUe2eEeib_P5jAe7dPw" name="G"> + <encapsulatedComponent xsi:type="repository:BasicComponent" href="min.repository#_R1LiNO2eEeib_P5jAe7dPw"/> + </assemblyContexts> + <assemblyConnectors id="_95dlMe2eEeib_P5jAe7dPw" name="A --> B" providingAssemblyContext="_vO84kO2eEeib_P5jAe7dPw" requiringAssemblyContext="_u5u2gO2eEeib_P5jAe7dPw"> + <interfaceRequiringRole href="min.repository#_S0bgEe2bEeib_P5jAe7dPw"/> + <interfaceProvidingRole href="min.repository#_oTaxMO2bEeib_P5jAe7dPw"/> + </assemblyConnectors> + <assemblyConnectors id="_-u-Q4e2eEeib_P5jAe7dPw" name="B --> C" providingAssemblyContext="_v9rm0e2eEeib_P5jAe7dPw" requiringAssemblyContext="_vO84kO2eEeib_P5jAe7dPw"> + <interfaceRequiringRole href="min.repository#_o-tJ4e2bEeib_P5jAe7dPw"/> + <interfaceProvidingRole href="min.repository#_7gZjcO2bEeib_P5jAe7dPw"/> + </assemblyConnectors> + <assemblyConnectors id="__Da24e2eEeib_P5jAe7dPw" name="C --> D" providingAssemblyContext="_wFKH0e2eEeib_P5jAe7dPw" requiringAssemblyContext="_v9rm0e2eEeib_P5jAe7dPw"> + <interfaceRequiringRole href="min.repository#_674hIe2bEeib_P5jAe7dPw"/> + <interfaceProvidingRole href="min.repository#_uP8vIO2dEeib_P5jAe7dPw"/> + </assemblyConnectors> + <assemblyConnectors id="__NpJ4e2eEeib_P5jAe7dPw" name="B --> E" providingAssemblyContext="_wWZo0e2eEeib_P5jAe7dPw" requiringAssemblyContext="_vO84kO2eEeib_P5jAe7dPw"> + <interfaceRequiringRole href="min.repository#_pW0u8e2bEeib_P5jAe7dPw"/> + <interfaceProvidingRole href="min.repository#_6wgFoO2dEeib_P5jAe7dPw"/> + </assemblyConnectors> + <assemblyConnectors id="__X3c4e2eEeib_P5jAe7dPw" name="E --> F" providingAssemblyContext="_wbvb0e2eEeib_P5jAe7dPw" requiringAssemblyContext="_wWZo0e2eEeib_P5jAe7dPw"> + <interfaceRequiringRole href="min.repository#_7K9NAe2dEeib_P5jAe7dPw"/> + <interfaceProvidingRole href="min.repository#_S_LQIO2eEeib_P5jAe7dPw"/> + </assemblyConnectors> + <assemblyConnectors id="__iQH8e2eEeib_P5jAe7dPw" name="E --> G" providingAssemblyContext="_3PwtUe2eEeib_P5jAe7dPw" requiringAssemblyContext="_wWZo0e2eEeib_P5jAe7dPw"> + <interfaceRequiringRole href="min.repository#_7nafge2dEeib_P5jAe7dPw"/> + <interfaceProvidingRole href="min.repository#_TRbdwO2eEeib_P5jAe7dPw"/> + </assemblyConnectors> + <providingDelegationConnectors id="_7NJv8u2eEeib_P5jAe7dPw" name="A --> A" assemblyContext="_u5u2gO2eEeib_P5jAe7dPw" outerInterfaceProvidingRole="_43ITxO2eEeib_P5jAe7dPw"> + <innerInterfaceProvidingRole href="min.repository#_SHb3MO2bEeib_P5jAe7dPw"/> + </providingDelegationConnectors> + <interfaceProvidingRoles id="_43ITxO2eEeib_P5jAe7dPw" name="outerA"> + <interface href="min.repository#_uqNJk-2aEeib_P5jAe7dPw"/> + </interfaceProvidingRoles> +</system:System> diff --git a/dml-examples/SyntheticComponents/DML-Model/min.usageprofile b/dml-examples/SyntheticComponents/DML-Model/min.usageprofile new file mode 100644 index 0000000..1b2f4a2 --- /dev/null +++ b/dml-examples/SyntheticComponents/DML-Model/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.tools/metamodel/functions/1.0" xmlns:usageprofile="http://www.descartes.tools/metamodel/usageprofile/1.0" id="_yiEmIEeqEeSW4Op0B0CyhQ" name="usgProfile"> + <imports importURI="min.system"/> + <imports importURI="min.repository"/> + <system href="min.system#_zdRVAEeoEeSW4Op0B0CyhQ"/> + <usageScenarios id="_yiFNMEeqEeSW4Op0B0CyhQ" name="usagescenario"> + <scenarioBehavior> + <actions xsi:type="usageprofile:SystemCallUserAction" id="_A_DeMEmxEeOPLK3yYyEQWQ" name="usageToA"> + <providingRole href="min.system#_43ITxO2eEeib_P5jAe7dPw"/> + <signature href="min.repository#_vzGrUO2aEeib_P5jAe7dPw"/> + </actions> + </scenarioBehavior> + <workloadType xsi:type="usageprofile:OpenWorkloadType"> + <interArrivalTime> + <probFunction xsi:type="functions:ExponentialDistribution" rate="0.005"/> + </interArrivalTime> + </workloadType> + </usageScenarios> +</usageprofile:UsageProfile> diff --git a/dml-examples/SyntheticComponents/DQL-Queries/Analysis.dql b/dml-examples/SyntheticComponents/DQL-Queries/Analysis.dql new file mode 100644 index 0000000..c594c9d --- /dev/null +++ b/dml-examples/SyntheticComponents/DQL-Queries/Analysis.dql @@ -0,0 +1,26 @@ +SELECT CPA_CPU.utilization, + CPB_CPU.utilization, + CPC_CPU.utilization, + CPD_CPU.utilization, + CPE_CPU.utilization, + CPF_CPU.utilization, + CPG_CPU.utilization, + usageToA.avgResponseTime +EVALUATE DOF + VARYING 'ExponentialDistribution of OpenWorkload with ID _yiFNMEeqEeSW4Op0B0CyhQ' <0.005, 0.010, 0.015, 0.020, 0.025, 0.030, 0.035, 0.040, 0.045, 0.050> +FOR SERVICE '_yiFNMEeqEeSW4Op0B0CyhQ' AS usagescenario, + SERVICE '_A_DeMEmxEeOPLK3yYyEQWQ' AS usageToA, + SERVICE '_PVKcgO2eEeib_P5jAe7dPw' AS ToG, + SERVICE '_jPXogO2bEeib_P5jAe7dPw' AS ToB, + SERVICE '_W7bVMO2cEeib_P5jAe7dPw' AS ToD, + SERVICE '_NSR-wO2eEeib_P5jAe7dPw' AS ToF, + SERVICE '_1XjV4O2bEeib_P5jAe7dPw' AS ToC, + SERVICE '_3Nfj0O2bEeib_P5jAe7dPw' AS ToE, + RESOURCE '_W2LhdO2fEeib_P5jAe7dPw' AS CPE_CPU, + RESOURCE '_I3tj4EnuEeOWVc_o6w1CBw' AS CPA_CPU, + RESOURCE '_Wr9OdO2fEeib_P5jAe7dPw' AS CPD_CPU, + RESOURCE '_W9C-dO2fEeib_P5jAe7dPw' AS CPF_CPU, + RESOURCE '_We1_hO2fEeib_P5jAe7dPw' AS CPB_CPU, + RESOURCE '_WjRMhO2fEeib_P5jAe7dPw' AS CPC_CPU, + RESOURCE '_XFIjdO2fEeib_P5jAe7dPw' AS CPG_CPU +USING dml@'minmodel.properties'; \ No newline at end of file diff --git a/dml-examples/SyntheticComponents/DQL-Queries/minmodel.properties b/dml-examples/SyntheticComponents/DQL-Queries/minmodel.properties new file mode 100644 index 0000000..b003bdf --- /dev/null +++ b/dml-examples/SyntheticComponents/DQL-Queries/minmodel.properties @@ -0,0 +1,7 @@ +## Model Instance +dml.files.usageprofile=/../DML-Model/min.usageprofile +dml.files.system=/../DML-Model/min.system +dml.files.resourcelandscape=/../DML-Model/min.resourcelandscape +dml.files.repository=/../DML-Model/min.repository +dml.files.deployment=/../DML-Model/min.deployment +#dml.outputdirectory=/../results/ \ No newline at end of file diff --git a/dml-examples/SyntheticComponents/README b/dml-examples/SyntheticComponents/README new file mode 100644 index 0000000..079c707 --- /dev/null +++ b/dml-examples/SyntheticComponents/README @@ -0,0 +1 @@ +This the "hello world" example for the Descartes Modeling Language. \ No newline at end of file -- GitLab