FeatureModel
FeatureModel
comments
constraints
version
root
groups
NamedElement
name
Comment
element
text
Constraint
language
code
Feature
atMostInOneGroup
chain
context
mandatory
abstract
children
requiredConstraints
requireConstraints
group
excludeConstraintsA
excludeConstraintsB
RequireConstraint
requiredFeature
feature
ExcludeConstraint
excludedFeatureA
excludedFeatureB
Group
features
groupType
GroupType
OR
OR
ALT
ALT
<?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="FeatureModel" nsURI="http://de.imotep.variability/featuremodel"
    nsPrefix="FeatureModel">
  <eClassifiers xsi:type="ecore:EClass" name="FeatureModel" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="comments" upperBound="-1"
        eType="#//Comment" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="constraints" upperBound="-1"
        eType="#//Constraint" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="version" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="root" lowerBound="1" eType="#//Feature"
        containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="groups" upperBound="-1"
        eType="#//Group" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="NamedElement" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
        iD="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Comment" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="element" lowerBound="1"
        eType="#//NamedElement"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="text" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Constraint" abstract="true" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="language" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="code" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Feature" eSuperTypes="#//NamedElement">
    <eOperations name="atMostInOneGroup" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
      <eParameters name="chain" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain"/>
      <eParameters name="context">
        <eGenericType eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap">
          <eTypeArguments/>
          <eTypeArguments/>
        </eGenericType>
      </eParameters>
    </eOperations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="mandatory" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="abstract" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="children" upperBound="-1"
        eType="#//Feature" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="requiredConstraints" upperBound="-1"
        eType="#//RequireConstraint" eOpposite="#//RequireConstraint/requiredFeature"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="requireConstraints" upperBound="-1"
        eType="#//RequireConstraint" eOpposite="#//RequireConstraint/feature"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="group" eType="#//Group"
        eOpposite="#//Group/features"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="excludeConstraintsA" upperBound="-1"
        eType="#//ExcludeConstraint" eOpposite="#//ExcludeConstraint/excludedFeatureA"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="excludeConstraintsB" upperBound="-1"
        eType="#//ExcludeConstraint" eOpposite="#//ExcludeConstraint/excludedFeatureB"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="RequireConstraint" eSuperTypes="#//Constraint">
    <eStructuralFeatures xsi:type="ecore:EReference" name="requiredFeature" lowerBound="1"
        eType="#//Feature" eOpposite="#//Feature/requiredConstraints"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="feature" lowerBound="1"
        eType="#//Feature" eOpposite="#//Feature/requireConstraints"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ExcludeConstraint" eSuperTypes="#//Constraint">
    <eStructuralFeatures xsi:type="ecore:EReference" name="excludedFeatureA" lowerBound="1"
        eType="#//Feature" eOpposite="#//Feature/excludeConstraintsA"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="excludedFeatureB" lowerBound="1"
        eType="#//Feature" eOpposite="#//Feature/excludeConstraintsB"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Group" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="features" lowerBound="2"
        upperBound="-1" eType="#//Feature" eOpposite="#//Feature/group"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="groupType" eType="#//GroupType"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="GroupType">
    <eLiterals name="OR"/>
    <eLiterals name="ALT" value="2"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"FeatureModel","nsURI":"http://de.imotep.variability/featuremodel","name":"FeatureModel","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"FeatureModel","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"NamedElement","instanceClass":null,"abstract":true,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Comment","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Constraint","instanceClass":null,"abstract":true,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Feature","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"RequireConstraint","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ExcludeConstraint","instanceClass":null,"abstract":false,"id":7,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Group","instanceClass":null,"abstract":false,"id":8,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"GroupType","instanceClass":null,"id":9,"serializable":true,"eClass":"EEnum"},{"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":"comments","changeable":true,"resolveProxies":true,"lowerBound":0,"id":10,"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":"constraints","changeable":true,"resolveProxies":true,"lowerBound":0,"id":11,"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":"version","changeable":true,"lowerBound":0,"iD":false,"id":12,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"root","changeable":true,"resolveProxies":true,"lowerBound":1,"id":13,"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":"groups","changeable":true,"resolveProxies":true,"lowerBound":0,"id":14,"derived":false},{"id":15,"eClass":"EGenericType"},{"id":16,"eClass":"EGenericType"},{"id":17,"eClass":"EGenericType"},{"id":18,"eClass":"EGenericType"},{"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":"name","changeable":true,"lowerBound":0,"iD":true,"id":21,"derived":false},{"id":22,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"element","changeable":true,"resolveProxies":true,"lowerBound":1,"id":23,"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":"text","changeable":true,"lowerBound":0,"iD":false,"id":24,"derived":false},{"id":25,"eClass":"EGenericType"},{"id":26,"eClass":"EGenericType"},{"id":27,"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":"language","changeable":true,"lowerBound":0,"iD":false,"id":28,"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":"code","changeable":true,"lowerBound":0,"iD":false,"id":29,"derived":false},{"id":30,"eClass":"EGenericType"},{"id":31,"eClass":"EGenericType"},{"id":32,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"atMostInOneGroup","lowerBound":0,"id":33,"many":false,"required":false,"eClass":"EOperation"},{"ordered":true,"upperBound":1,"defaultValue":false,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"mandatory","changeable":true,"lowerBound":0,"iD":false,"id":34,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":false,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"abstract","changeable":true,"lowerBound":0,"iD":false,"id":35,"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":"children","changeable":true,"resolveProxies":true,"lowerBound":0,"id":36,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"requiredConstraints","changeable":true,"resolveProxies":true,"lowerBound":0,"id":37,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"requireConstraints","changeable":true,"resolveProxies":true,"lowerBound":0,"id":38,"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":"group","changeable":true,"resolveProxies":true,"lowerBound":0,"id":39,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"excludeConstraintsA","changeable":true,"resolveProxies":true,"lowerBound":0,"id":40,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"excludeConstraintsB","changeable":true,"resolveProxies":true,"lowerBound":0,"id":41,"derived":false},{"id":42,"eClass":"EGenericType"},{"id":43,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"unique":true,"name":"chain","lowerBound":0,"id":44,"many":false,"required":false,"eClass":"EParameter"},{"ordered":true,"upperBound":1,"unique":true,"name":"context","lowerBound":0,"id":45,"many":false,"required":false,"eClass":"EParameter"},{"id":46,"eClass":"EGenericType"},{"id":47,"eClass":"EGenericType"},{"id":48,"eClass":"EGenericType"},{"id":49,"eClass":"EGenericType"},{"id":50,"eClass":"EGenericType"},{"id":51,"eClass":"EGenericType"},{"id":52,"eClass":"EGenericType"},{"id":53,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"requiredFeature","changeable":true,"resolveProxies":true,"lowerBound":1,"id":54,"derived":false},{"id":55,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"feature","changeable":true,"resolveProxies":true,"lowerBound":1,"id":56,"derived":false},{"id":57,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"features","changeable":true,"resolveProxies":true,"lowerBound":2,"id":58,"derived":false},{"id":59,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"excludedFeatureA","changeable":true,"resolveProxies":true,"lowerBound":1,"id":60,"derived":false},{"id":61,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"excludedFeatureB","changeable":true,"resolveProxies":true,"lowerBound":1,"id":62,"derived":false},{"id":63,"eClass":"EGenericType"},{"id":64,"eClass":"EGenericType"},{"id":65,"eClass":"EGenericType"},{"id":66,"eClass":"EGenericType"},{"id":67,"eClass":"EGenericType"},{"id":68,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"groupType","changeable":true,"lowerBound":0,"iD":false,"id":69,"derived":false},{"id":70,"eClass":"EGenericType"},{"id":71,"eClass":"EGenericType"},{"id":72,"eClass":"EGenericType"},{"name":"OR","id":73,"value":0,"literal":"OR","eClass":"EEnumLiteral"},{"name":"ALT","id":74,"value":2,"literal":"ALT","eClass":"EEnumLiteral"}],"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":1,"target":0},{"source":1,"target":2},{"source":1,"target":10},{"source":1,"target":11},{"source":1,"target":12},{"source":1,"target":13},{"source":1,"target":14},{"source":1,"target":15},{"source":10,"target":3},{"source":10,"target":16},{"source":10,"target":1},{"source":16,"target":3},{"source":11,"target":4},{"source":11,"target":17},{"source":11,"target":1},{"source":17,"target":4},{"source":12,"target":18},{"source":12,"target":1},{"source":13,"target":5},{"source":13,"target":19},{"source":13,"target":1},{"source":19,"target":5},{"source":14,"target":8},{"source":14,"target":20},{"source":14,"target":1},{"source":20,"target":8},{"source":15,"target":2},{"source":2,"target":0},{"source":2,"target":21},{"source":21,"target":22},{"source":21,"target":2},{"source":3,"target":0},{"source":3,"target":2},{"source":3,"target":23},{"source":3,"target":24},{"source":3,"target":25},{"source":23,"target":2},{"source":23,"target":26},{"source":23,"target":3},{"source":26,"target":2},{"source":24,"target":27},{"source":24,"target":3},{"source":25,"target":2},{"source":4,"target":0},{"source":4,"target":2},{"source":4,"target":28},{"source":4,"target":29},{"source":4,"target":30},{"source":28,"target":31},{"source":28,"target":4},{"source":29,"target":32},{"source":29,"target":4},{"source":30,"target":2},{"source":5,"target":0},{"source":5,"target":2},{"source":5,"target":33},{"source":5,"target":34},{"source":5,"target":35},{"source":5,"target":36},{"source":5,"target":37},{"source":5,"target":38},{"source":5,"target":39},{"source":5,"target":40},{"source":5,"target":41},{"source":5,"target":42},{"source":33,"target":43},{"source":33,"target":5},{"source":33,"target":44},{"source":33,"target":45},{"source":44,"target":46},{"source":44,"target":33},{"source":45,"target":47},{"source":45,"target":33},{"source":47,"target":48},{"source":47,"target":49},{"source":34,"target":50},{"source":34,"target":5},{"source":35,"target":51},{"source":35,"target":5},{"source":36,"target":5},{"source":36,"target":52},{"source":36,"target":5},{"source":52,"target":5},{"source":37,"target":6},{"source":37,"target":53},{"source":37,"target":5},{"source":37,"target":54},{"source":53,"target":6},{"source":38,"target":6},{"source":38,"target":55},{"source":38,"target":5},{"source":38,"target":56},{"source":55,"target":6},{"source":39,"target":8},{"source":39,"target":57},{"source":39,"target":5},{"source":39,"target":58},{"source":57,"target":8},{"source":40,"target":7},{"source":40,"target":59},{"source":40,"target":5},{"source":40,"target":60},{"source":59,"target":7},{"source":41,"target":7},{"source":41,"target":61},{"source":41,"target":5},{"source":41,"target":62},{"source":61,"target":7},{"source":42,"target":2},{"source":6,"target":0},{"source":6,"target":4},{"source":6,"target":54},{"source":6,"target":56},{"source":6,"target":63},{"source":54,"target":5},{"source":54,"target":64},{"source":54,"target":6},{"source":54,"target":37},{"source":64,"target":5},{"source":56,"target":5},{"source":56,"target":65},{"source":56,"target":6},{"source":56,"target":38},{"source":65,"target":5},{"source":63,"target":4},{"source":7,"target":0},{"source":7,"target":4},{"source":7,"target":60},{"source":7,"target":62},{"source":7,"target":66},{"source":60,"target":5},{"source":60,"target":67},{"source":60,"target":7},{"source":60,"target":40},{"source":67,"target":5},{"source":62,"target":5},{"source":62,"target":68},{"source":62,"target":7},{"source":62,"target":41},{"source":68,"target":5},{"source":66,"target":4},{"source":8,"target":0},{"source":8,"target":2},{"source":8,"target":58},{"source":8,"target":69},{"source":8,"target":70},{"source":58,"target":5},{"source":58,"target":71},{"source":58,"target":8},{"source":58,"target":39},{"source":71,"target":5},{"source":69,"target":9},{"source":69,"target":72},{"source":69,"target":8},{"source":72,"target":9},{"source":70,"target":2},{"source":9,"target":0},{"source":9,"target":73},{"source":9,"target":74},{"source":73,"target":9},{"source":74,"target":9}],"multigraph":true}