Commit 4463e20f authored by Johannes Eder's avatar Johannes Eder
Browse files

- removed old constraints ecore and all dependencies to it

- removed deployment and scheduling synthesis with old fortiss.tools calls
refs 2856
parent 9c5ff53a
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="model" nsURI="http://www.fortiss.org/af3/exploration/constraints"
nsPrefix="org-fortiss-af3-exploration-constraints">
<eClassifiers xsi:type="ecore:EClass" name="AllocationConstraint">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="@deprecated"/>
</eAnnotations>
<eOperations name="getLimitation" eType="ecore:EClass platform:/resource/org.fortiss.af3.deployment/model/deployment.ecore#//ComponentAllocation">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return allocation;"/>
<details key="documentation" value="Returns the allocation of a component to a hardware architecture."/>
</eAnnotations>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EReference" name="allocation" eType="ecore:EClass platform:/resource/org.fortiss.af3.deployment/model/deployment.ecore#//ComponentAllocation"
containment="true">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="TODO: write documentation (in the model!)"/>
</eAnnotations>
</eStructuralFeatures>
<eGenericSuperTypes eClassifier="ecore:EClass exploration.ecore#//ExplorationConstraint">
<eTypeArguments eClassifier="ecore:EClass exploration.ecore#//DummyType">
<eTypeArguments eClassifier="ecore:EClass platform:/resource/org.fortiss.af3.deployment/model/deployment.ecore#//ComponentAllocation"/>
</eTypeArguments>
</eGenericSuperTypes>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="CostConstraint">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="@deprecated"/>
</eAnnotations>
<eOperations name="getLimitation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EIntegerObject">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return cost;"/>
</eAnnotations>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="cost" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eGenericSuperTypes eClassifier="ecore:EClass exploration.ecore#//ExplorationConstraint">
<eTypeArguments eClassifier="ecore:EClass exploration.ecore#//DummyType">
<eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EIntegerObject"/>
</eTypeArguments>
</eGenericSuperTypes>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="DislocationConstraint">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="@deprecated"/>
</eAnnotations>
<eOperations name="getLimitation" eType="ecore:EClass platform:/resource/org.fortiss.af3.deployment/model/deployment.ecore#//ComponentAllocation">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return dislocation;"/>
<details key="documentation" value="Returns the dislocation of a component to a hardware architecture. This means that this component must not be allocated to the given hardware unit."/>
</eAnnotations>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EReference" name="dislocation" eType="ecore:EClass platform:/resource/org.fortiss.af3.deployment/model/deployment.ecore#//ComponentAllocation"
containment="true"/>
<eGenericSuperTypes eClassifier="ecore:EClass exploration.ecore#//ExplorationConstraint">
<eTypeArguments eClassifier="ecore:EClass exploration.ecore#//DummyType">
<eTypeArguments eClassifier="ecore:EClass platform:/resource/org.fortiss.af3.deployment/model/deployment.ecore#//ComponentAllocation"/>
</eTypeArguments>
</eGenericSuperTypes>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EnergyConstraint">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="@deprecated"/>
</eAnnotations>
<eOperations name="getLimitation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EIntegerObject">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return energy;"/>
</eAnnotations>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="energy" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eGenericSuperTypes eClassifier="ecore:EClass exploration.ecore#//ExplorationConstraint">
<eTypeArguments eClassifier="ecore:EClass exploration.ecore#//DummyType">
<eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EIntegerObject"/>
</eTypeArguments>
</eGenericSuperTypes>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="PMHFNodeConstraint">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="@deprecated"/>
</eAnnotations>
<eOperations name="getLimitation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return true;"/>
</eAnnotations>
</eOperations>
<eGenericSuperTypes eClassifier="ecore:EClass exploration.ecore#//ExplorationConstraint">
<eTypeArguments eClassifier="ecore:EClass exploration.ecore#//DummyType">
<eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject"/>
</eTypeArguments>
</eGenericSuperTypes>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="PMHFBusConstraint">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="@deprecated"/>
</eAnnotations>
<eOperations name="getLimitation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return true;"/>
</eAnnotations>
</eOperations>
<eGenericSuperTypes eClassifier="ecore:EClass exploration.ecore#//ExplorationConstraint">
<eTypeArguments eClassifier="ecore:EClass exploration.ecore#//DummyType">
<eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject"/>
</eTypeArguments>
</eGenericSuperTypes>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="MemoryConstraint">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="@deprecated"/>
</eAnnotations>
<eOperations name="getLimitation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return true;"/>
</eAnnotations>
</eOperations>
<eGenericSuperTypes eClassifier="ecore:EClass exploration.ecore#//ExplorationConstraint">
<eTypeArguments eClassifier="ecore:EClass exploration.ecore#//DummyType">
<eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject"/>
</eTypeArguments>
</eGenericSuperTypes>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="NodeUsageConstraint">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="@deprecated"/>
</eAnnotations>
<eOperations name="getLimitation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EIntegerObject">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return nodes;"/>
</eAnnotations>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nodes" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eGenericSuperTypes eClassifier="ecore:EClass exploration.ecore#//ExplorationConstraint">
<eTypeArguments eClassifier="ecore:EClass exploration.ecore#//DummyType">
<eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject"/>
</eTypeArguments>
</eGenericSuperTypes>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="PartitioningConstraint">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="@deprecated"/>
</eAnnotations>
<eOperations name="getLimitation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return generate;"/>
</eAnnotations>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="generate" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
<eGenericSuperTypes eClassifier="ecore:EClass exploration.ecore#//ExplorationConstraint">
<eTypeArguments eClassifier="ecore:EClass exploration.ecore#//DummyType">
<eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBooleanObject"/>
</eTypeArguments>
</eGenericSuperTypes>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="TimingConstraint">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="@deprecated"/>
</eAnnotations>
<eOperations name="getLimitation" eType="ecore:EClass platform:/resource/org.fortiss.af3.msc/model/msc.ecore#//MSCTimeSpecification">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="body" value="return msc;"/>
</eAnnotations>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EReference" name="msc" eType="ecore:EClass platform:/resource/org.fortiss.af3.msc/model/msc.ecore#//MSCTimeSpecification"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="ticks" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="portName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="timeInstantName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eGenericSuperTypes eClassifier="ecore:EClass exploration.ecore#//ExplorationConstraint">
<eTypeArguments eClassifier="ecore:EClass platform:/resource/org.fortiss.af3.msc/model/msc.ecore#//MSCTimeSpecification"/>
</eGenericSuperTypes>
</eClassifiers>
</ecore:EPackage>
<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.fortiss.af3.exploration/generated-src" editDirectory="/org.fortiss.af3.exploration.edit/generated-src"
editorDirectory="/org.fortiss.af3.exploration.editor/generated-src" modelPluginID="org.fortiss.af3.exploration"
modelName="Model" editPluginClass="org.fortiss.af3.exploration.model.provider.ConstraintEditPlugin"
editorPluginClass="org.fortiss.af3.exploration.presentation.ConstraintEditorPlugin"
testsDirectory="/org.fortiss.af3.exploration.tests/generated-src" importerID="org.eclipse.emf.importer.ecore"
containmentProxies="true" complianceLevel="5.0" copyrightFields="false" usedGenPackages="platform:/resource/org.fortiss.af3.msc/model/msc.genmodel#//model platform:/resource/org.fortiss.tooling.base/model/base.genmodel#//model platform:/resource/org.fortiss.af3.component/model/component.genmodel#//model platform:/resource/org.fortiss.af3.deployment/model/deployment.genmodel#//model exploration.genmodel#//model dsl_v2.genmodel#//model platform:/resource/org.fortiss.af3.expression/model/expression.genmodel#//model platform:/resource/org.fortiss.af3.platform/model/platform.genmodel#//model platform:/resource/org.fortiss.af3.project/model/project.genmodel#//model platform:/resource/org.fortiss.af3.safety/model/safety.genmodel#//model platform:/resource/org.fortiss.tooling.kernel/model/kernel.genmodel#//model platform:/resource/org.fortiss.af3.timing/model/timing.genmodel#//model">
<foreignModel>constraints.ecore</foreignModel>
<genPackages prefix="Constraints" basePackage="org.fortiss.af3.exploration" disposableProviderFactory="true"
ecorePackage="constraints.ecore#/">
<genClasses ecoreClass="constraints.ecore#//AllocationConstraint">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference constraints.ecore#//AllocationConstraint/allocation"/>
<genOperations ecoreOperation="constraints.ecore#//AllocationConstraint/getLimitation"/>
</genClasses>
<genClasses ecoreClass="constraints.ecore#//CostConstraint">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute constraints.ecore#//CostConstraint/cost"/>
<genOperations ecoreOperation="constraints.ecore#//CostConstraint/getLimitation"/>
</genClasses>
<genClasses ecoreClass="constraints.ecore#//DislocationConstraint">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference constraints.ecore#//DislocationConstraint/dislocation"/>
<genOperations ecoreOperation="constraints.ecore#//DislocationConstraint/getLimitation"/>
</genClasses>
<genClasses ecoreClass="constraints.ecore#//EnergyConstraint">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute constraints.ecore#//EnergyConstraint/energy"/>
<genOperations ecoreOperation="constraints.ecore#//EnergyConstraint/getLimitation"/>
</genClasses>
<genClasses ecoreClass="constraints.ecore#//PMHFNodeConstraint">
<genOperations ecoreOperation="constraints.ecore#//PMHFNodeConstraint/getLimitation"/>
</genClasses>
<genClasses ecoreClass="constraints.ecore#//PMHFBusConstraint">
<genOperations ecoreOperation="constraints.ecore#//PMHFBusConstraint/getLimitation"/>
</genClasses>
<genClasses ecoreClass="constraints.ecore#//MemoryConstraint">
<genOperations ecoreOperation="constraints.ecore#//MemoryConstraint/getLimitation"/>
</genClasses>
<genClasses ecoreClass="constraints.ecore#//NodeUsageConstraint">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute constraints.ecore#//NodeUsageConstraint/nodes"/>
<genOperations ecoreOperation="constraints.ecore#//NodeUsageConstraint/getLimitation"/>
</genClasses>
<genClasses ecoreClass="constraints.ecore#//PartitioningConstraint">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute constraints.ecore#//PartitioningConstraint/generate"/>
<genOperations ecoreOperation="constraints.ecore#//PartitioningConstraint/getLimitation"/>
</genClasses>
<genClasses ecoreClass="constraints.ecore#//TimingConstraint">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference constraints.ecore#//TimingConstraint/msc"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute constraints.ecore#//TimingConstraint/ticks"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute constraints.ecore#//TimingConstraint/portName"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute constraints.ecore#//TimingConstraint/timeInstantName"/>
<genOperations ecoreOperation="constraints.ecore#//TimingConstraint/getLimitation"/>
</genClasses>
</genPackages>
</genmodel:GenModel>
/*--------------------------------------------------------------------------+
$Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $
| |
| Copyright 2016 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.af3.exploration.util;
import static org.fortiss.af3.deployment.utils.DeploymentModelElementFactory.createComponentAllocation;
import org.fortiss.af3.component.model.Component;
import org.fortiss.af3.deployment.model.ComponentAllocation;
import org.fortiss.af3.exploration.model.AllocationConstraint;
import org.fortiss.af3.exploration.model.ConstraintsFactory;
import org.fortiss.af3.exploration.model.CostConstraint;
import org.fortiss.af3.exploration.model.DislocationConstraint;
import org.fortiss.af3.exploration.model.EnergyConstraint;
import org.fortiss.af3.exploration.model.MemoryConstraint;
import org.fortiss.af3.exploration.model.NodeUsageConstraint;
import org.fortiss.af3.exploration.model.PMHFBusConstraint;
import org.fortiss.af3.exploration.model.PMHFNodeConstraint;
import org.fortiss.af3.exploration.model.PartitioningConstraint;
import org.fortiss.af3.exploration.model.TimingConstraint;
import org.fortiss.af3.msc.model.MSCTimeSpecification;
import org.fortiss.af3.platform.model.ExecutionUnit;
/**
* Model element factory for constraints.
*
* @author eder
* @author $Author: eder $
* @version $Rev: 18709 $
* @ConQAT.Rating GREEN Hash: 8A6A708E073F4A68FD08CDD74840D3B1
*/
// TODO #2856: Remove this class due to deprecation. Suppress warnings until then.
@SuppressWarnings({"deprecation", "javadoc"})
public class ConstraintModelElementFactory {
/** Creates and returns a new {@link CostConstraint}. */
public static CostConstraint createCostConstraint(int cost) {
CostConstraint costConstraint = ConstraintsFactory.eINSTANCE.createCostConstraint();
costConstraint.setCost(cost);
return costConstraint;
}
/** Creates and returns a new {@link EnergyConstraint}. */
public static EnergyConstraint createEnergyConstraint(int energy) {
EnergyConstraint energyConstraint = ConstraintsFactory.eINSTANCE.createEnergyConstraint();
energyConstraint.setEnergy(energy);
return energyConstraint;
}
/** Creates and returns a new {@link AllocationConstraint}s */
public static AllocationConstraint createAllocationConstraint(ComponentAllocation allocation) {
AllocationConstraint allocationConstraint =
ConstraintsFactory.eINSTANCE.createAllocationConstraint();
allocationConstraint.setAllocation(allocation);
return allocationConstraint;
}
/** Creates and returns a new {@link AllocationConstraint}s */
public static DislocationConstraint
createDislocationConstraint(ComponentAllocation dislocation) {
DislocationConstraint dislocationConstraint =
ConstraintsFactory.eINSTANCE.createDislocationConstraint();
dislocationConstraint.setDislocation(dislocation);
return dislocationConstraint;
}
/** Creates and returns a new {@link AllocationConstraint}. */
public static AllocationConstraint createAllocationConstraint(Component component,
ExecutionUnit executionUnit) {
AllocationConstraint allocationConstraint =
ConstraintsFactory.eINSTANCE.createAllocationConstraint();
ComponentAllocation allocation = createComponentAllocation(component, executionUnit);
allocationConstraint.setAllocation(allocation);
return allocationConstraint;
}
/** Creates and returns a new {@link AllocationConstraint}. */
public static DislocationConstraint createDislocationConstraint(Component component,
ExecutionUnit executionUnit) {
DislocationConstraint dislocationConstraint =
ConstraintsFactory.eINSTANCE.createDislocationConstraint();
ComponentAllocation dislocation = createComponentAllocation(component, executionUnit);
dislocationConstraint.setDislocation(dislocation);
return dislocationConstraint;
}
/** Creates and returns a {@link PartitioningConstraint}. */
public static PartitioningConstraint createPartitioningConstraint(boolean generate) {
PartitioningConstraint partitioningConstraint =
ConstraintsFactory.eINSTANCE.createPartitioningConstraint();
partitioningConstraint.setGenerate(generate);
return partitioningConstraint;
}
/** Creates and returns a {@link MemoryConstraint}. */
public static MemoryConstraint createMemoryConstraint() {
MemoryConstraint memoryConstraint = ConstraintsFactory.eINSTANCE.createMemoryConstraint();
return memoryConstraint;
}
/** Creates and returns a {@link NodeUsageConstraint}. */
public static NodeUsageConstraint createNodeUsageConstraint(int nodes) {
NodeUsageConstraint nodeUsageConstraint =
ConstraintsFactory.eINSTANCE.createNodeUsageConstraint();
nodeUsageConstraint.setNodes(nodes);
return nodeUsageConstraint;
}
/** Creates and returns a {@link PMHFBusConstraint}. */
public static PMHFBusConstraint createPmhfBusConstraint() {
PMHFBusConstraint pmhfBusConstraint =
ConstraintsFactory.eINSTANCE.createPMHFBusConstraint();
return pmhfBusConstraint;
}
/** Creates and returns a {@link PMHFNodeConstraint}. */
public static PMHFNodeConstraint createPmhfNodeConstraint() {
PMHFNodeConstraint pmhfNodeConstraint =
ConstraintsFactory.eINSTANCE.createPMHFNodeConstraint();
return pmhfNodeConstraint;
}
/** Creates and returns a {@link TimingConstraint}. */
public static TimingConstraint createTimingConstraint(MSCTimeSpecification msc, int ticks,
String portName, String timeInstantName) {
TimingConstraint timingConstraint = ConstraintsFactory.eINSTANCE.createTimingConstraint();
timingConstraint.setMsc(msc);
timingConstraint.setTicks(ticks);
timingConstraint.setPortName(portName);
timingConstraint.setTimeInstantName(timeInstantName);
return timingConstraint;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment