Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] refining and abstract metaclass
[ATL] refining and abstract metaclass [message #89153] Tue, 26 August 2008 12:36
Eclipse UserFriend
Hello, I have 2 questions :

1) I have to do the transformation UML <-> SYSML. SYSML is a metamodel
based on the UML metamodel.

SysML contains:
- an independant part of UML
- a common part with UML

At current time, the refining mode can only be used to transform a single
source model into a single target model. Both source and target models
must conform to the same metamodel." (ATL_User_Manual)

I tried to use "refining" for my transformation.
I just write :

module sysml2uml; -- Module Template
create OUT : UML refining IN : SYSML;

I don't have an error but the transformation do nothing when a do a test
with a SysML diagram in enter.

I know that the source and target model are differents (UML and SYSML),
but SysML is based on UML.
So do you know if I can use "refining"?

2) I have to write a lot of rules which metaclasses often inherit of
abstract metaclass.

In this exemple,

Package -> Namespace -> NamedElement -> Element
-> PackageableElement -> NamedElement -> Element

(Package inherit of Namespace and PackageableElement which inherit of
NamedElement...)

abstract rule package{
from package : SYSML!Package
to paquetage : UML!Package ( -- Package
--nestedPackage <- package.nestedPackage,
packagedElement <-package.packagedElement,
--ownedType <- package.ownedType,
packageMerge <- package.packageMerge,
nestingPackage <- package.nestingPackage,
-- Package -> Namespace
elementImport <- package.elementImport,
--importedMember <-package.importedMember,
--member <- package.member,
--ownedMember <- package.ownedMember,
ownedRule <- package.ownedRule,
packageImport <- package.packageImport,
-- NamesSpace -> NamedElement
name <- package.name,
--qualifiedName <- package.qualifiedName,
visibility <- package.visibility,
-- NamedElement -> Element
ownedComment <- package.ownedComment
--ownedElement <- package.ownedElement,
--owner <- package.owner
--Package -> PackageableElement
)
}

I have a lot of classes which inherit of the abstract metaclass
NamedElement for example. Have I to write, for every rules, all attributs
of the metaclass NamedElement? Is there a mean to evoid it?
Previous Topic:[ATL] Rule inheritance
Next Topic:long-winded to copy all properties
Goto Forum:
  


Current Time: Thu Jul 24 11:15:12 EDT 2025

Powered by FUDForum. Page generated in 0.15243 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top