Skip to content
Snippets Groups Projects
Commit d3cec7bd authored by Johannes Eder's avatar Johannes Eder
Browse files

removed memory and sil from platform model

added new specification for memory and sil in scheduling model instead
moved addSpecifications functionality to tooling base
refs 1598
parent b02c6515
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,12 @@
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Super class of first class model elements."/>
</eAnnotations>
<eOperations name="addSpecification">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="org.fortiss.tooling.base.model.element.impl.IModelElementStaticImpl.addSpecification(this, spec);"/>
</eAnnotations>
<eParameters name="spec" eType="#//element/IModelElementSpecification"/>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EReference" name="specifications" upperBound="-1"
eType="#//element/IModelElementSpecification" containment="true" eOpposite="#//element/IModelElementSpecification/specificationOf">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
......
......@@ -14,6 +14,9 @@
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference base.ecore#//element/IModelElement/specifications"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true"
ecoreFeature="ecore:EReference base.ecore#//element/IModelElement/referencedBy"/>
<genOperations ecoreOperation="base.ecore#//element/IModelElement/addSpecification">
<genParameters ecoreParameter="base.ecore#//element/IModelElement/addSpecification/spec"/>
</genOperations>
</genClasses>
<genClasses image="false" ecoreClass="base.ecore#//element/IModelElementSpecification">
<genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference base.ecore#//element/IModelElementSpecification/specificationOf"/>
......
/*--------------------------------------------------------------------------+
$Id$
| |
| Copyright 2013 ForTISS GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.model.element.impl;
import org.fortiss.tooling.base.model.element.IModelElement;
import org.fortiss.tooling.base.model.element.IModelElementSpecification;
/**
*
* @author eder
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash:
*/
public class IModelElementStaticImpl {
/**
* Adds a {@link IModelElementSpecification} to the {@link IModelElement}
*
* @param iModelElement
* @param spec
*/
public static void
addSpecification(IModelElement iModelElement, IModelElementSpecification spec) {
iModelElement.getSpecifications().add(spec);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment