metricDSL
MetricModel
importURI
metrics
Metric
name
ExternalMetric
InternalMetric
shortName
description
parameter
definition
Number
name
Parameter
shortname
description
defaultValue
Constant
value
MetricDefinition
WeightedMetric
weights
StepwiseMetric
innerMetric
steps
RatioMetric
nominatorMetric
denominatorMetric
BoundAndWeight
upperBound
weight
MetricAndWeight
metric
weight
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="metricDSL" nsURI="http://www.somox.org/metricDSL/1.0" nsPrefix="metricDSL">
  <eClassifiers xsi:type="ecore:EClass" name="MetricModel">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="importURI" unique="false"
        upperBound="-1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="metrics" upperBound="-1"
        eType="#//Metric" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Metric">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ExternalMetric" eSuperTypes="#//Metric"/>
  <eClassifiers xsi:type="ecore:EClass" name="InternalMetric" eSuperTypes="#//Metric">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="shortName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="parameter" upperBound="-1"
        eType="#//Number" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="definition" eType="#//MetricDefinition"
        containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Number">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Parameter" eSuperTypes="#//Number">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="shortname" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="defaultValue" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Constant" eSuperTypes="#//Number">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="MetricDefinition"/>
  <eClassifiers xsi:type="ecore:EClass" name="WeightedMetric" eSuperTypes="#//MetricDefinition">
    <eStructuralFeatures xsi:type="ecore:EReference" name="weights" upperBound="-1"
        eType="#//MetricAndWeight" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="StepwiseMetric" eSuperTypes="#//MetricDefinition">
    <eStructuralFeatures xsi:type="ecore:EReference" name="innerMetric" eType="#//Metric"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="steps" upperBound="-1"
        eType="#//BoundAndWeight" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="RatioMetric" eSuperTypes="#//MetricDefinition">
    <eStructuralFeatures xsi:type="ecore:EReference" name="nominatorMetric" eType="#//Metric"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="denominatorMetric" eType="#//Metric"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="BoundAndWeight">
    <eStructuralFeatures xsi:type="ecore:EReference" name="upperBound" eType="#//Number"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="weight" eType="#//Number"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="MetricAndWeight">
    <eStructuralFeatures xsi:type="ecore:EReference" name="metric" eType="#//Metric"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="weight" eType="#//Number"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"metricDSL","nsURI":"http://www.somox.org/metricDSL/1.0","name":"metricDSL","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"MetricModel","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Metric","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ExternalMetric","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"InternalMetric","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Number","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Parameter","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Constant","instanceClass":null,"abstract":false,"id":7,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"MetricDefinition","instanceClass":null,"abstract":false,"id":8,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"WeightedMetric","instanceClass":null,"abstract":false,"id":9,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"StepwiseMetric","instanceClass":null,"abstract":false,"id":10,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"RatioMetric","instanceClass":null,"abstract":false,"id":11,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"BoundAndWeight","instanceClass":null,"abstract":false,"id":12,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"MetricAndWeight","instanceClass":null,"abstract":false,"id":13,"interface":false,"eClass":"EClass"},{"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":false,"name":"importURI","changeable":true,"lowerBound":0,"iD":false,"id":14,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"metrics","changeable":true,"resolveProxies":true,"lowerBound":0,"id":15,"derived":false},{"id":16,"eClass":"EGenericType"},{"id":17,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":0,"iD":false,"id":18,"derived":false},{"id":19,"eClass":"EGenericType"},{"id":20,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"shortName","changeable":true,"lowerBound":0,"iD":false,"id":21,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"description","changeable":true,"lowerBound":0,"iD":false,"id":22,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"parameter","changeable":true,"resolveProxies":true,"lowerBound":0,"id":23,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"definition","changeable":true,"resolveProxies":true,"lowerBound":0,"id":24,"derived":false},{"id":25,"eClass":"EGenericType"},{"id":26,"eClass":"EGenericType"},{"id":27,"eClass":"EGenericType"},{"id":28,"eClass":"EGenericType"},{"id":29,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":0,"iD":false,"id":30,"derived":false},{"id":31,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"shortname","changeable":true,"lowerBound":0,"iD":false,"id":32,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"description","changeable":true,"lowerBound":0,"iD":false,"id":33,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0.0,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"defaultValue","changeable":true,"lowerBound":0,"iD":false,"id":34,"derived":false},{"id":35,"eClass":"EGenericType"},{"id":36,"eClass":"EGenericType"},{"id":37,"eClass":"EGenericType"},{"id":38,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":0.0,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"value","changeable":true,"lowerBound":0,"iD":false,"id":39,"derived":false},{"id":40,"eClass":"EGenericType"},{"id":41,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"weights","changeable":true,"resolveProxies":true,"lowerBound":0,"id":42,"derived":false},{"id":43,"eClass":"EGenericType"},{"id":44,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"innerMetric","changeable":true,"resolveProxies":true,"lowerBound":0,"id":45,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"steps","changeable":true,"resolveProxies":true,"lowerBound":0,"id":46,"derived":false},{"id":47,"eClass":"EGenericType"},{"id":48,"eClass":"EGenericType"},{"id":49,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"nominatorMetric","changeable":true,"resolveProxies":true,"lowerBound":0,"id":50,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"denominatorMetric","changeable":true,"resolveProxies":true,"lowerBound":0,"id":51,"derived":false},{"id":52,"eClass":"EGenericType"},{"id":53,"eClass":"EGenericType"},{"id":54,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"upperBound","changeable":true,"resolveProxies":true,"lowerBound":0,"id":55,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"weight","changeable":true,"resolveProxies":true,"lowerBound":0,"id":56,"derived":false},{"id":57,"eClass":"EGenericType"},{"id":58,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"metric","changeable":true,"resolveProxies":true,"lowerBound":0,"id":59,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"weight","changeable":true,"resolveProxies":true,"lowerBound":0,"id":60,"derived":false},{"id":61,"eClass":"EGenericType"},{"id":62,"eClass":"EGenericType"}],"links":[{"source":0,"target":1},{"source":0,"target":2},{"source":0,"target":3},{"source":0,"target":4},{"source":0,"target":5},{"source":0,"target":6},{"source":0,"target":7},{"source":0,"target":8},{"source":0,"target":9},{"source":0,"target":10},{"source":0,"target":11},{"source":0,"target":12},{"source":0,"target":13},{"source":1,"target":0},{"source":1,"target":14},{"source":1,"target":15},{"source":14,"target":16},{"source":14,"target":1},{"source":15,"target":2},{"source":15,"target":17},{"source":15,"target":1},{"source":17,"target":2},{"source":2,"target":0},{"source":2,"target":18},{"source":18,"target":19},{"source":18,"target":2},{"source":3,"target":0},{"source":3,"target":2},{"source":3,"target":20},{"source":20,"target":2},{"source":4,"target":0},{"source":4,"target":2},{"source":4,"target":21},{"source":4,"target":22},{"source":4,"target":23},{"source":4,"target":24},{"source":4,"target":25},{"source":21,"target":26},{"source":21,"target":4},{"source":22,"target":27},{"source":22,"target":4},{"source":23,"target":5},{"source":23,"target":28},{"source":23,"target":4},{"source":28,"target":5},{"source":24,"target":8},{"source":24,"target":29},{"source":24,"target":4},{"source":29,"target":8},{"source":25,"target":2},{"source":5,"target":0},{"source":5,"target":30},{"source":30,"target":31},{"source":30,"target":5},{"source":6,"target":0},{"source":6,"target":5},{"source":6,"target":32},{"source":6,"target":33},{"source":6,"target":34},{"source":6,"target":35},{"source":32,"target":36},{"source":32,"target":6},{"source":33,"target":37},{"source":33,"target":6},{"source":34,"target":38},{"source":34,"target":6},{"source":35,"target":5},{"source":7,"target":0},{"source":7,"target":5},{"source":7,"target":39},{"source":7,"target":40},{"source":39,"target":41},{"source":39,"target":7},{"source":40,"target":5},{"source":8,"target":0},{"source":9,"target":0},{"source":9,"target":8},{"source":9,"target":42},{"source":9,"target":43},{"source":42,"target":13},{"source":42,"target":44},{"source":42,"target":9},{"source":44,"target":13},{"source":43,"target":8},{"source":10,"target":0},{"source":10,"target":8},{"source":10,"target":45},{"source":10,"target":46},{"source":10,"target":47},{"source":45,"target":2},{"source":45,"target":48},{"source":45,"target":10},{"source":48,"target":2},{"source":46,"target":12},{"source":46,"target":49},{"source":46,"target":10},{"source":49,"target":12},{"source":47,"target":8},{"source":11,"target":0},{"source":11,"target":8},{"source":11,"target":50},{"source":11,"target":51},{"source":11,"target":52},{"source":50,"target":2},{"source":50,"target":53},{"source":50,"target":11},{"source":53,"target":2},{"source":51,"target":2},{"source":51,"target":54},{"source":51,"target":11},{"source":54,"target":2},{"source":52,"target":8},{"source":12,"target":0},{"source":12,"target":55},{"source":12,"target":56},{"source":55,"target":5},{"source":55,"target":57},{"source":55,"target":12},{"source":57,"target":5},{"source":56,"target":5},{"source":56,"target":58},{"source":56,"target":12},{"source":58,"target":5},{"source":13,"target":0},{"source":13,"target":59},{"source":13,"target":60},{"source":59,"target":2},{"source":59,"target":61},{"source":59,"target":13},{"source":61,"target":2},{"source":60,"target":5},{"source":60,"target":62},{"source":60,"target":13},{"source":62,"target":5}],"multigraph":true}