fsm
StateMachine
ownedStates
initialState
ownedTransitions
variables
State
owningFSM
outgoingTransitions
incomingTransitions
Transition
source
target
guard
action
NamedElement
name
Variable
name
UnnamedVariable
NumberVariable
initialValue
Guard
not
false
NumberGuard
value
-1
source
EqualNumberGuard
Action
target
AssignValueAction
value
LessThanNumberGuard
GreaterThanNumberGuard
IncreaseValueAction
stepValue
DecreaseValueAction
stepValue
<?xml version="1.0" encoding="ASCII"?>
<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="fsm" nsURI="http://www.gemoc.org/legacyfsm/fsm" nsPrefix="fsm">
  <eAnnotations source="http://www.eclipse.org/OCL/Import">
    <details key="ecore" value="http://www.eclipse.org/emf/2002/Ecore"/>
  </eAnnotations>
  <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
    <details key="invocationDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
    <details key="settingDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
    <details key="validationDelegates" value="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot"/>
  </eAnnotations>
  <eClassifiers xsi:type="ecore:EClass" name="StateMachine" eSuperTypes="//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedStates" upperBound="-1" eType="//State" containment="true" eOpposite="//State/owningFSM"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="initialState" lowerBound="1" eType="//State"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="ownedTransitions" upperBound="-1" eType="//Transition" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="variables" upperBound="-1" eType="//Variable" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="State" eSuperTypes="//NamedElement">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="TutorialSect24"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
      <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
        <details key="documentation" value="New invariant"/>
      </eAnnotations>
      <details key="TutorialSect24" value="Tuple {&#xA;&#x9;message : String = 'State has non-deterministic outgoing transitions',&#xA;&#x9;status : Boolean = &#xA;            self.outgoingTransitions->forAll(t1, t2 | (t1 &lt;> t2 and t1.guard=null) implies t2.guard &lt;> null)&#xA;}.status"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EReference" name="owningFSM" lowerBound="1" eType="//StateMachine" eOpposite="//StateMachine/ownedStates"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="outgoingTransitions" upperBound="-1" eType="//Transition" eOpposite="//Transition/source"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="incomingTransitions" upperBound="-1" eType="//Transition" eOpposite="//Transition/target"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Transition" eSuperTypes="//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="source" lowerBound="1" eType="//State" eOpposite="//State/outgoingTransitions"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="target" lowerBound="1" eType="//State" eOpposite="//State/incomingTransitions"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="guard" lowerBound="1" eType="//Guard" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="action" lowerBound="1" eType="//Action" containment="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="NamedElement" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1">
      <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Variable" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" defaultValueLiteral="UnnamedVariable">
      <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="NumberVariable" eSuperTypes="//Variable">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="initialValue" lowerBound="1">
      <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Guard" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="not" defaultValueLiteral="false">
      <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="NumberGuard" abstract="true" eSuperTypes="//Guard">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" lowerBound="1" defaultValueLiteral="-1">
      <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="source" lowerBound="1" eType="//NumberVariable"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="EqualNumberGuard" eSuperTypes="//NumberGuard"/>
  <eClassifiers xsi:type="ecore:EClass" name="Action" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EReference" name="target" lowerBound="1" eType="//NumberVariable"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="AssignValueAction" eSuperTypes="//Action">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" lowerBound="1">
      <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="LessThanNumberGuard" eSuperTypes="//NumberGuard"/>
  <eClassifiers xsi:type="ecore:EClass" name="GreaterThanNumberGuard" eSuperTypes="//NumberGuard"/>
  <eClassifiers xsi:type="ecore:EClass" name="IncreaseValueAction" eSuperTypes="//Action">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="stepValue" lowerBound="1">
      <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="DecreaseValueAction" eSuperTypes="//Action">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="stepValue" lowerBound="1">
      <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    </eStructuralFeatures>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"fsm","nsURI":"http://www.gemoc.org/legacyfsm/fsm","name":"fsm","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"StateMachine","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"State","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Transition","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"NamedElement","instanceClass":null,"abstract":true,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Variable","instanceClass":null,"abstract":true,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"NumberVariable","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Guard","instanceClass":null,"abstract":true,"id":7,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"NumberGuard","instanceClass":null,"abstract":true,"id":8,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"EqualNumberGuard","instanceClass":null,"abstract":false,"id":9,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Action","instanceClass":null,"abstract":true,"id":10,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"AssignValueAction","instanceClass":null,"abstract":false,"id":11,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"LessThanNumberGuard","instanceClass":null,"abstract":false,"id":12,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"GreaterThanNumberGuard","instanceClass":null,"abstract":false,"id":13,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"IncreaseValueAction","instanceClass":null,"abstract":false,"id":14,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"DecreaseValueAction","instanceClass":null,"abstract":false,"id":15,"interface":false,"eClass":"EClass"},{"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":"ownedStates","changeable":true,"resolveProxies":true,"lowerBound":0,"id":16,"derived":false},{"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":"initialState","changeable":true,"resolveProxies":true,"lowerBound":1,"id":17,"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":"ownedTransitions","changeable":true,"resolveProxies":true,"lowerBound":0,"id":18,"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":"variables","changeable":true,"resolveProxies":true,"lowerBound":0,"id":19,"derived":false},{"id":20,"eClass":"EGenericType"},{"id":21,"eClass":"EGenericType"},{"container":true,"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":"owningFSM","changeable":true,"resolveProxies":true,"lowerBound":1,"id":22,"derived":false},{"id":23,"eClass":"EGenericType"},{"id":24,"eClass":"EGenericType"},{"id":25,"eClass":"EGenericType"},{"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":"outgoingTransitions","changeable":true,"resolveProxies":true,"lowerBound":0,"id":26,"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":"incomingTransitions","changeable":true,"resolveProxies":true,"lowerBound":0,"id":27,"derived":false},{"id":28,"eClass":"EGenericType"},{"id":29,"eClass":"EGenericType"},{"id":30,"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":"source","changeable":true,"resolveProxies":true,"lowerBound":1,"id":31,"derived":false},{"id":32,"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":"target","changeable":true,"resolveProxies":true,"lowerBound":1,"id":33,"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":"guard","changeable":true,"resolveProxies":true,"lowerBound":1,"id":34,"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":"action","changeable":true,"resolveProxies":true,"lowerBound":1,"id":35,"derived":false},{"id":36,"eClass":"EGenericType"},{"id":37,"eClass":"EGenericType"},{"id":38,"eClass":"EGenericType"},{"id":39,"eClass":"EGenericType"},{"id":40,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":1,"iD":false,"id":41,"derived":false},{"id":42,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":"UnnamedVariable","volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":"UnnamedVariable","unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":1,"iD":false,"id":43,"derived":false},{"id":44,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"initialValue","changeable":true,"lowerBound":1,"iD":false,"id":45,"derived":false},{"id":46,"eClass":"EGenericType"},{"id":47,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":false,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":"false","unsettable":false,"transient":false,"unique":true,"name":"not","changeable":true,"lowerBound":0,"iD":false,"id":48,"derived":false},{"id":49,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":-1,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":"-1","unsettable":false,"transient":false,"unique":true,"name":"value","changeable":true,"lowerBound":1,"iD":false,"id":50,"derived":false},{"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":"source","changeable":true,"resolveProxies":true,"lowerBound":1,"id":51,"derived":false},{"id":52,"eClass":"EGenericType"},{"id":53,"eClass":"EGenericType"},{"id":54,"eClass":"EGenericType"},{"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":"target","changeable":true,"resolveProxies":true,"lowerBound":1,"id":56,"derived":false},{"id":57,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"value","changeable":true,"lowerBound":1,"iD":false,"id":58,"derived":false},{"id":59,"eClass":"EGenericType"},{"id":60,"eClass":"EGenericType"},{"id":61,"eClass":"EGenericType"},{"id":62,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"stepValue","changeable":true,"lowerBound":1,"iD":false,"id":63,"derived":false},{"id":64,"eClass":"EGenericType"},{"id":65,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":true,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"stepValue","changeable":true,"lowerBound":1,"iD":false,"id":66,"derived":false},{"id":67,"eClass":"EGenericType"},{"id":68,"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":0,"target":14},{"source":0,"target":15},{"source":1,"target":0},{"source":1,"target":4},{"source":1,"target":16},{"source":1,"target":17},{"source":1,"target":18},{"source":1,"target":19},{"source":1,"target":20},{"source":16,"target":2},{"source":16,"target":21},{"source":16,"target":1},{"source":16,"target":22},{"source":21,"target":2},{"source":17,"target":2},{"source":17,"target":23},{"source":17,"target":1},{"source":23,"target":2},{"source":18,"target":3},{"source":18,"target":24},{"source":18,"target":1},{"source":24,"target":3},{"source":19,"target":5},{"source":19,"target":25},{"source":19,"target":1},{"source":25,"target":5},{"source":20,"target":4},{"source":2,"target":0},{"source":2,"target":4},{"source":2,"target":22},{"source":2,"target":26},{"source":2,"target":27},{"source":2,"target":28},{"source":22,"target":1},{"source":22,"target":29},{"source":22,"target":2},{"source":22,"target":16},{"source":29,"target":1},{"source":26,"target":3},{"source":26,"target":30},{"source":26,"target":2},{"source":26,"target":31},{"source":30,"target":3},{"source":27,"target":3},{"source":27,"target":32},{"source":27,"target":2},{"source":27,"target":33},{"source":32,"target":3},{"source":28,"target":4},{"source":3,"target":0},{"source":3,"target":4},{"source":3,"target":31},{"source":3,"target":33},{"source":3,"target":34},{"source":3,"target":35},{"source":3,"target":36},{"source":31,"target":2},{"source":31,"target":37},{"source":31,"target":3},{"source":31,"target":26},{"source":37,"target":2},{"source":33,"target":2},{"source":33,"target":38},{"source":33,"target":3},{"source":33,"target":27},{"source":38,"target":2},{"source":34,"target":7},{"source":34,"target":39},{"source":34,"target":3},{"source":39,"target":7},{"source":35,"target":10},{"source":35,"target":40},{"source":35,"target":3},{"source":40,"target":10},{"source":36,"target":4},{"source":4,"target":0},{"source":4,"target":41},{"source":41,"target":42},{"source":41,"target":4},{"source":5,"target":0},{"source":5,"target":43},{"source":43,"target":44},{"source":43,"target":5},{"source":6,"target":0},{"source":6,"target":5},{"source":6,"target":45},{"source":6,"target":46},{"source":45,"target":47},{"source":45,"target":6},{"source":46,"target":5},{"source":7,"target":0},{"source":7,"target":48},{"source":48,"target":49},{"source":48,"target":7},{"source":8,"target":0},{"source":8,"target":7},{"source":8,"target":50},{"source":8,"target":51},{"source":8,"target":52},{"source":50,"target":53},{"source":50,"target":8},{"source":51,"target":6},{"source":51,"target":54},{"source":51,"target":8},{"source":54,"target":6},{"source":52,"target":7},{"source":9,"target":0},{"source":9,"target":8},{"source":9,"target":55},{"source":55,"target":8},{"source":10,"target":0},{"source":10,"target":56},{"source":56,"target":6},{"source":56,"target":57},{"source":56,"target":10},{"source":57,"target":6},{"source":11,"target":0},{"source":11,"target":10},{"source":11,"target":58},{"source":11,"target":59},{"source":58,"target":60},{"source":58,"target":11},{"source":59,"target":10},{"source":12,"target":0},{"source":12,"target":8},{"source":12,"target":61},{"source":61,"target":8},{"source":13,"target":0},{"source":13,"target":8},{"source":13,"target":62},{"source":62,"target":8},{"source":14,"target":0},{"source":14,"target":10},{"source":14,"target":63},{"source":14,"target":64},{"source":63,"target":65},{"source":63,"target":14},{"source":64,"target":10},{"source":15,"target":0},{"source":15,"target":10},{"source":15,"target":66},{"source":15,"target":67},{"source":66,"target":68},{"source":66,"target":15},{"source":67,"target":10}],"multigraph":true}