FunctionModel.genmodel 8.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <genmodel:GenModel xmi:version="2.0"
  3. xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
  4. xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipselabs.mscript.language/src"
  5. modelPluginID="org.eclipselabs.mscript.language" modelName="FunctionModel" importerID="org.eclipse.emf.importer.ecore"
  6. complianceLevel="5.0" copyrightFields="false" usedGenPackages="Mscript.genmodel#//ast ../../org.eclipselabs.mscript.typesystem/model/TypeSystem.genmodel#//typesystem">
  7. <foreignModel>FunctionModel.ecore</foreignModel>
  8. <genPackages prefix="FunctionModel" basePackage="org.eclipselabs.mscript.language"
  9. disposableProviderFactory="true" ecorePackage="FunctionModel.ecore#/">
  10. <genEnums typeSafeEnumCompatible="false" ecoreEnum="FunctionModel.ecore#//VariableKind">
  11. <genEnumLiterals ecoreEnumLiteral="FunctionModel.ecore#//VariableKind/Unknown"/>
  12. <genEnumLiterals ecoreEnumLiteral="FunctionModel.ecore#//VariableKind/TemplateParameter"/>
  13. <genEnumLiterals ecoreEnumLiteral="FunctionModel.ecore#//VariableKind/InputParameter"/>
  14. <genEnumLiterals ecoreEnumLiteral="FunctionModel.ecore#//VariableKind/OutputParameter"/>
  15. <genEnumLiterals ecoreEnumLiteral="FunctionModel.ecore#//VariableKind/StateVariable"/>
  16. <genEnumLiterals ecoreEnumLiteral="FunctionModel.ecore#//VariableKind/Constant"/>
  17. <genEnumLiterals ecoreEnumLiteral="FunctionModel.ecore#//VariableKind/FunctionObject"/>
  18. </genEnums>
  19. <genClasses ecoreClass="FunctionModel.ecore#//FunctionDescriptor">
  20. <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FunctionModel.ecore#//FunctionDescriptor/definition"/>
  21. <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FunctionModel.ecore#//FunctionDescriptor/equationDescriptors"/>
  22. <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FunctionModel.ecore#//FunctionDescriptor/variableDescriptors"/>
  23. <genOperations ecoreOperation="FunctionModel.ecore#//FunctionDescriptor/getVariableDescriptor">
  24. <genParameters ecoreParameter="FunctionModel.ecore#//FunctionDescriptor/getVariableDescriptor/name"/>
  25. </genOperations>
  26. <genOperations ecoreOperation="FunctionModel.ecore#//FunctionDescriptor/hasNoDuplicateEquations">
  27. <genParameters ecoreParameter="FunctionModel.ecore#//FunctionDescriptor/hasNoDuplicateEquations/diagnostics"/>
  28. <genParameters ecoreParameter="FunctionModel.ecore#//FunctionDescriptor/hasNoDuplicateEquations/context"/>
  29. </genOperations>
  30. <genOperations ecoreOperation="FunctionModel.ecore#//FunctionDescriptor/hasNoCyclicEquations">
  31. <genParameters ecoreParameter="FunctionModel.ecore#//FunctionDescriptor/hasNoCyclicEquations/diagnostics"/>
  32. <genParameters ecoreParameter="FunctionModel.ecore#//FunctionDescriptor/hasNoCyclicEquations/context"/>
  33. </genOperations>
  34. <genOperations ecoreOperation="FunctionModel.ecore#//FunctionDescriptor/hasEquationsForEachOutput">
  35. <genParameters ecoreParameter="FunctionModel.ecore#//FunctionDescriptor/hasEquationsForEachOutput/diagnostics"/>
  36. <genParameters ecoreParameter="FunctionModel.ecore#//FunctionDescriptor/hasEquationsForEachOutput/context"/>
  37. </genOperations>
  38. <genOperations ecoreOperation="FunctionModel.ecore#//FunctionDescriptor/hasEquationsForEachVariableStep">
  39. <genParameters ecoreParameter="FunctionModel.ecore#//FunctionDescriptor/hasEquationsForEachVariableStep/diagnostics"/>
  40. <genParameters ecoreParameter="FunctionModel.ecore#//FunctionDescriptor/hasEquationsForEachVariableStep/context"/>
  41. </genOperations>
  42. </genClasses>
  43. <genClasses ecoreClass="FunctionModel.ecore#//EquationDescriptor">
  44. <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference FunctionModel.ecore#//EquationDescriptor/functionDescriptor"/>
  45. <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FunctionModel.ecore#//EquationDescriptor/equation"/>
  46. <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FunctionModel.ecore#//EquationDescriptor/sides"/>
  47. <genFeatures property="Readonly" notify="false" createChild="false" ecoreFeature="ecore:EReference FunctionModel.ecore#//EquationDescriptor/leftHandSide"/>
  48. <genFeatures property="Readonly" notify="false" createChild="false" ecoreFeature="ecore:EReference FunctionModel.ecore#//EquationDescriptor/rightHandSide"/>
  49. <genOperations ecoreOperation="FunctionModel.ecore#//EquationDescriptor/isLeftHandSideValid">
  50. <genParameters ecoreParameter="FunctionModel.ecore#//EquationDescriptor/isLeftHandSideValid/diagnostics"/>
  51. <genParameters ecoreParameter="FunctionModel.ecore#//EquationDescriptor/isLeftHandSideValid/context"/>
  52. </genOperations>
  53. <genOperations ecoreOperation="FunctionModel.ecore#//EquationDescriptor/isRightHandSideValid">
  54. <genParameters ecoreParameter="FunctionModel.ecore#//EquationDescriptor/isRightHandSideValid/diagnostics"/>
  55. <genParameters ecoreParameter="FunctionModel.ecore#//EquationDescriptor/isRightHandSideValid/context"/>
  56. </genOperations>
  57. </genClasses>
  58. <genClasses ecoreClass="FunctionModel.ecore#//EquationSide">
  59. <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference FunctionModel.ecore#//EquationSide/descriptor"/>
  60. <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FunctionModel.ecore#//EquationSide/expression"/>
  61. <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FunctionModel.ecore#//EquationSide/parts"/>
  62. <genOperations ecoreOperation="FunctionModel.ecore#//EquationSide/getOtherSide"/>
  63. </genClasses>
  64. <genClasses ecoreClass="FunctionModel.ecore#//EquationPart">
  65. <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference FunctionModel.ecore#//EquationPart/side"/>
  66. <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FunctionModel.ecore#//EquationPart/variableAccess"/>
  67. <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FunctionModel.ecore#//EquationPart/variableStep"/>
  68. </genClasses>
  69. <genClasses ecoreClass="FunctionModel.ecore#//VariableDescriptor">
  70. <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference FunctionModel.ecore#//VariableDescriptor/functionDescriptor"/>
  71. <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FunctionModel.ecore#//VariableDescriptor/name"/>
  72. <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FunctionModel.ecore#//VariableDescriptor/kind"/>
  73. <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference FunctionModel.ecore#//VariableDescriptor/steps"/>
  74. <genOperations ecoreOperation="FunctionModel.ecore#//VariableDescriptor/getStep">
  75. <genParameters ecoreParameter="FunctionModel.ecore#//VariableDescriptor/getStep/index"/>
  76. <genParameters ecoreParameter="FunctionModel.ecore#//VariableDescriptor/getStep/initial"/>
  77. </genOperations>
  78. <genOperations ecoreOperation="FunctionModel.ecore#//VariableDescriptor/getMinimumStep"/>
  79. <genOperations ecoreOperation="FunctionModel.ecore#//VariableDescriptor/getMaximumStep"/>
  80. </genClasses>
  81. <genClasses ecoreClass="FunctionModel.ecore#//VariableStep">
  82. <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference FunctionModel.ecore#//VariableStep/descriptor"/>
  83. <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FunctionModel.ecore#//VariableStep/index"/>
  84. <genFeatures createChild="false" ecoreFeature="ecore:EAttribute FunctionModel.ecore#//VariableStep/initial"/>
  85. <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference FunctionModel.ecore#//VariableStep/usingEquationParts"/>
  86. </genClasses>
  87. </genPackages>
  88. </genmodel:GenModel>