blob: 49a767cabaf55a23b2fc57f57284ee32a0cadcfb [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2019 CEA LIST, and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Initial API and implementation
*
*****************************************************************************/
modeltype ecore "strict" uses 'http://www.eclipse.org/emf/2002/Ecore';
modeltype architecture "strict" uses 'http://www.eclipse.org/papyrus/infra/core/architecture';
transformation SysMLSemantic(inout inOutDiModel : architecture);
// Declare needed constants
property sysML16ArchitectureContext:String = 'org.eclipse.papyrus.sysml.architecture.SysML16';
main() {
inOutDiModel.objects()[architecture::ArchitectureDescription].map toSysML16ArchitectureDescription();
}
mapping architecture::ArchitectureDescription::toSysML16ArchitectureDescription() : architecture::ArchitectureDescription {
init{
result := self;
}
contextId := sysML16ArchitectureContext;
}