-
Notifications
You must be signed in to change notification settings - Fork 2
uml_profile_update
If a Element inside the profile needs to be modified, a new revision for the UML profile shall be created. The changes need to be also implemented inside the at.ac.tuwien.auto.modelua.papyrus.opcua.diagram.transformation plugin project accordingly, please check out this page.
To add a new element to be used inside the OPC UA information models, the UANodeSet UML profile needs to be modified. There are two types of elements primitives and datatypes/classes. Primitives are added inside the types package and classes are added inside the root package.
For the new datatype create a new Stereotype and name it according the schema. If an attribute has the type NodeId and the field is not the identifier, replace the type with UANode, this makes moddeling easier as now references can be used instead of text searches.
If the new Element is a primitive type creat a new primitve type object inside the types package. Apply the Stereotype EDataType to it and set InstanceClassName to the corresponding underlying Java data type. Enumeration type shall be added to the same package, but use the type Enumeration instead and the Stereotype EEnum.
The new types require an update of the ElementTypes, therefore right click on the root Element of the Profile. Select Generate Tooling Model --> ElementTypes. Use at.ac.tuwien.auto.modelua.papyrus.opcua.nodeset as id and select UMLElementTypeSet as Base element type set. Set the parten folder to at.ac.tuwien.auto.modelua.papyrus.opcua.diagram/resources/elementtypes and the filename to UANodeSet.elementtypesconfigurations .
For the DI ElementTypes open again Generate Tooling Model --> ElementTypes. Use at.ac.tuwien.auto.modelua.papyrus.opcua.nodeset as id and select UMLDIElementTypeSet as Base element type set. Check both "Suppress semantic parent in diagram-specific element types" and "Add .di postfix to identifier in diagram-specific element types". Set the parten folder to at.ac.tuwien.auto.modelua.papyrus.opcua.diagram/resources/elementtypes and the filename to UANodeSet.di.elementtypesconfigurations .
As the ElementTypes changed and are linked with their ids the corresponding CreationMenuModel needs to be regnerated, also known as New Child Menu. Therefore right click on UANodeSet.elementtypesconfigurations and select "Create New Child Menu", then the newChild.xmi fille be updated.
If a new revision is created the UML Model of namespace 0 and the companion specifications need to be updated. For that workflow please check out this page.