Sometimes the sysml profile norm do not reflect the text/pdf norm document. It is pertinent to modify the sysml profile to add new operations.

SOP

Documentation

Reference your new operations here, in order to be able to process the model automatically in a near future.: /org.eclipse.papyrus.sysml14/doc/SysML-Extension.di

Open it with UML Editor to access UML type and cardinality

Add your requirements here by creating a new derive requirement with Papyrus Req plugin: /org.eclipse.papyrus.sysml14/doc/org.eclipse.papyrus.sysml14.di

You should export the org.eclipse.papyrus.sysml14 plugin to have access to the pathmap for the different UML models, such as:

  • OMG norm: resources/doc/omg.sysml.uml
  • MDE model: resources/doc/org.eclipse.papyrus.sysml14.uml
  • SysML 1.4 extension model: resources/doc/SysML-Extension.uml

SysML profile: semantic upgrade

Modify /org.eclipse.papyrus.sysml14/resources/profile/SysML.profile.uml to add a new operation, with its parameters.

Open the genmodel, right click on ti and click on Reload the UML profile and regenerate the Model and Edit code.

Validate your enhancement by looking in /org.eclipse.papyrus.sysml14/src-gen

Implement the function in the /org.eclipse.papyrus.sysml14/src; do not forget to reference the requirement

You have to procide eventually a new XFactoryCustomImpl that has to be referenced in the plugin.xml

SysML diagram upgrade

Modify the Expansion diagram of your /org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/configuration/blockDefinitionDiagramConfig.expansionmodel

Add new representation, a new induced representation and do not forget to add it to the context.

Becareful to replace with text editor the kind href="../../../../plugin/org.eclipse.papyrus.uml.diagram.common/ with kind href="platform:/plugin/

SysML element type

/org.eclipse.papyrus.sysml14.diagram.common/resources/SysML14ClassDiagram-extension.elementtypesconfigurations

Add a new Specialization type configuration and eventually its edit helper

Palette

Add your element in the palette: /org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/blockDefinitionDiagram.paletteconfiguration

CSS

Modify the CSS to display your compartment:/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/style/blockDefinitionDiagram.css

Test

Implement your test in /org.eclipse.papyrus.sysml14.tests/src/org/eclipse/papyrus/sysml14/tests/blocks/BlockTest.java

Open a runtime, you should be able to do the move from the palette to your compartment

todo

Back to top

Version: 0.9.0. Last Published: 2016-06-02.

Reflow Maven skin by Andrius Velykis.