Commit dc05dcba authored by Simon Barner's avatar Simon Barner
Browse files

Initial import of org.fortiss.af3.allocation.

refs 2950
parent 1e1102d0
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="generated-src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="build"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.fortiss.af3.allocation</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.fortiss.ide.dev_tools.emf.builder.EcoreBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.fortiss.ide.dev_tools.warnings.RemoveWarningsBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.fortiss.ide.dev_tools.warnings.GuidelinesChecker</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: fortiss Allocation Model
Bundle-SymbolicName: org.fortiss.af3.allocation;singleton:=true
Bundle-Version: 2.11.0.qualifier
Bundle-ClassPath: .
Bundle-Vendor: fortiss GmbH
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Bundle-Activator: org.fortiss.af3.allocation.AF3AllocationActivator
Require-Bundle: org.fortiss.af3.component;bundle-version="2.11.0",
org.fortiss.af3.platform;bundle-version="2.11.0"
<?xml version="1.0" encoding="UTF-8"?>
<cspecExtension
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">
<actions>
<!-- Place your Actions here -->
<public name="generate-ecore" actor="jdt.ant" always="true">
<actorProperties>
<property key="buildFile" value="model/generate-ecore.xml" />
<property key="targets" value="generate-ecore"/>
</actorProperties>
<products>
<path path="generated-src" />
</products>
</public>
</actions>
<alterGroups>
<!-- Place your Group alterations here -->
<public name="eclipse.build.source">
<attribute name="generate-ecore"/>
</public>
</alterGroups>
</cspecExtension>
# <copyright>
# </copyright>
#
# $Id$
bin.includes = .,\
model/,\
META-INF/,\
plugin.xml,\
plugin.properties
source.. = src/,\
generated-src/
output.. = build/
<?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/allocation" nsPrefix="org-fortiss-af3-allocation">
<eClassifiers xsi:type="ecore:EClass" name="AllocationTable" abstract="true" eSuperTypes="platform:/resource/org.fortiss.tooling.kernel/model/kernel.ecore#//IProjectRootElement platform:/resource/org.fortiss.tooling.base/model/base.ecore#//base/HierarchicElementBase">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Container for {@link org.fortiss.af3.allocation.model.Allocation} specializations."/>
</eAnnotations>
<eOperations name="getAllocations">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Returns the {@link org.fortiss.af3.allocation.model.Allocation}s contained by this {@link org.fortiss.af3.allocation.model.AllocationTable}."/>
<details key="body" value="return AllocationTableStaticImpl.getAllocations(this);"/>
</eAnnotations>
<eGenericType eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EEList">
<eTypeArguments eClassifier="#//Allocation"/>
</eGenericType>
</eOperations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Allocation" eSuperTypes="platform:/resource/org.fortiss.tooling.base/model/base.ecore#//base/HierarchicElementBase">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Base class for allocation / mapping between a source model and a target model (typically located in different modeling viewpoints). The relation is defined using specializations of {@link org.fortiss.af3.allocation.model.AllocationEntry}."/>
</eAnnotations>
<eOperations name="getOneToOneAllocationEntries">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Returns all allocation entries specializating {@link org.fortiss.af3.allocation.model.OneToOneAllocationEntry}. Specializations of {@link org.fortiss.af3.allocation.model.Allocation} that are not supposed to contain one-to-one allocations may throw a {@link java.lang.UnsupportedOperationException}."/>
<details key="body" value="return AllocationStaticImpl.getOneToOneAllocationEntries(this);"/>
</eAnnotations>
<eGenericType eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EEList">
<eTypeArguments eClassifier="#//OneToOneAllocationEntry"/>
</eGenericType>
</eOperations>
<eOperations name="getOneToManyAllocationEntries">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Returns all allocation entries specializating {@link org.fortiss.af3.allocation.model.OneToManyAllocationEntry}. Specializations of {@link org.fortiss.af3.allocation.model.Allocation} that are not supposed to contain one-to-many allocations may throw a {@link java.lang.UnsupportedOperationException}."/>
<details key="body" value="return AllocationStaticImpl.getOneToManyAllocationEntries(this);"/>
</eAnnotations>
<eGenericType eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EEList">
<eTypeArguments eClassifier="#//OneToManyAllocationEntry"/>
</eGenericType>
</eOperations>
<eOperations name="getManyToOneAllocationEntries">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Returns all allocation entries specializating {@link org.fortiss.af3.allocation.model.ManyToOneAllocationEntry}. Specializations of {@link org.fortiss.af3.allocation.model.Allocation} that are not supposed to contain many-to-one allocations may throw a {@link java.lang.UnsupportedOperationException}."/>
<details key="body" value="return AllocationStaticImpl.getManyToOneAllocationEntries(this);"/>
</eAnnotations>
<eGenericType eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EEList">
<eTypeArguments eClassifier="#//ManyToOneAllocationEntry"/>
</eGenericType>
</eOperations>
<eOperations name="getTarget" eType="ecore:EClass platform:/resource/org.fortiss.tooling.base/model/base.ecore#//element/IModelElement">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Returns the target element to which the given source element is mapped, or {@code null} in case no such mapping has been defined. Specializations of {@link org.fortiss.af3.allocation.model.Allocation} that can only contain {@link org.fortiss.af3.allocation.model.OneToManyAllocation}s may throw a {@link java.lang.UnsupportedOperationException}."/>
<details key="body" value="return AllocationStaticImpl.getTarget(this, source);"/>
</eAnnotations>
<eParameters name="source" lowerBound="1" eType="ecore:EClass platform:/resource/org.fortiss.tooling.base/model/base.ecore#//element/IModelElement"/>
</eOperations>
<eOperations name="getTargets">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Returns the target elements to which the given source element is mapped, or {@code null} in case no such mapping has been defined. The implementation also covers {@link org.fortiss.af3.allocation.model.OneToOneAllocation}s and {@link org.fortiss.af3.allocation.model.ManyToOneAllocation}s where it returns a list with one element."/>
<details key="body" value="return AllocationStaticImpl.getTargets(this, source);"/>
</eAnnotations>
<eGenericType eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EEList">
<eTypeArguments eClassifier="ecore:EClass platform:/resource/org.fortiss.tooling.base/model/base.ecore#//element/IModelElement"/>
</eGenericType>
<eParameters name="source" lowerBound="1" eType="ecore:EClass platform:/resource/org.fortiss.tooling.base/model/base.ecore#//element/IModelElement"/>
</eOperations>
<eOperations name="getSource" eType="ecore:EClass platform:/resource/org.fortiss.tooling.base/model/base.ecore#//element/IModelElement">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Returns the source element which is mapped to the given target element, or {@code null} in case no such mapping has been defined. Specializations of {@link org.fortiss.af3.allocation.model.Allocation} that can only contain {@link org.fortiss.af3.allocation.model.ManyToOneAllocation}s may throw a {@link java.lang.UnsupportedOperationException}."/>
<details key="body" value="return AllocationStaticImpl.getSource(this, target);"/>
</eAnnotations>
<eParameters name="target" lowerBound="1" eType="ecore:EClass platform:/resource/org.fortiss.tooling.base/model/base.ecore#//element/IModelElement"/>
</eOperations>
<eOperations name="getSources">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Returns the source elements which are mapped to the given target element, or {@code null} in case no such mapping has been defined. The implementation also covers {@link org.fortiss.af3.allocation.model.OneToOneAllocation}s and {@link org.fortiss.af3.allocation.model.OneToManyAllocation}s where it returns a list with one element."/>
<details key="body" value="return AllocationStaticImpl.getSources(this, target);"/>
</eAnnotations>
<eGenericType eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EEList">
<eTypeArguments eClassifier="ecore:EClass platform:/resource/org.fortiss.tooling.base/model/base.ecore#//element/IModelElement"/>
</eGenericType>
<eParameters name="target" lowerBound="1" eType="ecore:EClass platform:/resource/org.fortiss.tooling.base/model/base.ecore#//element/IModelElement"/>
</eOperations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AllocationEntry" abstract="true" eSuperTypes="platform:/resource/org.fortiss.tooling.base/model/base.ecore#//element/IHierarchicElement">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Base class for entries to be contained in {@link org.fortiss.af3.allocation.model.Allocation}s."/>
</eAnnotations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="OneToOneAllocationEntry" abstract="true"
eSuperTypes="#//AllocationEntry">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Base class for 1:1 {@link org.fortiss.af3.allocation.model.AllocationEntry}s. Must be specialized for mappings between concreate viewpoints/domains."/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="source" lowerBound="1"
eType="ecore:EClass platform:/resource/org.fortiss.tooling.base/model/base.ecore#//element/IModelElement">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="An element in the source domain/viewpoint of the {@link org.fortiss.af3.allocation.model.Allocation} containing this {@link org.fortiss.af3.allocation.model.OneToOneAllocationEntry}."/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="target" lowerBound="1"
eType="ecore:EClass platform:/resource/org.fortiss.tooling.base/model/base.ecore#//element/IModelElement">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="An element in the target domain/viewpoint of the {@link org.fortiss.af3.allocation.model.Allocation} containing this {@link org.fortiss.af3.allocation.model.OneToOneAllocationEntry}."/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="OneToManyAllocationEntry" abstract="true"
eSuperTypes="#//AllocationEntry">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Base class for 1:n {@link org.fortiss.af3.allocation.model.AllocationEntry}s. Must be specialized for mappings between concreate viewpoints/domains."/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="source" lowerBound="1"
eType="ecore:EClass platform:/resource/org.fortiss.tooling.base/model/base.ecore#//element/IModelElement">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="An element in the source domain/viewpoint of the {@link org.fortiss.af3.allocation.model.Allocation} containing this {@link org.fortiss.af3.allocation.model.OneToManyAllocationEntry}."/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="targets" lowerBound="1"
upperBound="-1" eType="ecore:EClass platform:/resource/org.fortiss.tooling.base/model/base.ecore#//element/IModelElement">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="A non-empty list of element in the target domain/viewpoint of the {@link org.fortiss.af3.allocation.model.Allocation} containing this {@link org.fortiss.af3.allocation.model.OneToManyAllocationEntry}."/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ManyToOneAllocationEntry" abstract="true"
eSuperTypes="#//AllocationEntry">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Base class for n:1 {@link org.fortiss.af3.allocation.model.AllocationEntry}s. Must be specialized for mappings between concreate viewpoints/domains."/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EReference" name="sources" lowerBound="1"
upperBound="-1" eType="ecore:EClass platform:/resource/org.fortiss.tooling.base/model/base.ecore#//element/IModelElement">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="A non-empty set of elements in the source domain/viewpoint of the {@link org.fortiss.af3.allocation.model.Allocation} containing this {@link org.fortiss.af3.allocation.model.ManyToOneAllocationEntry}."/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="target" lowerBound="1"
eType="ecore:EClass platform:/resource/org.fortiss.tooling.base/model/base.ecore#//element/IModelElement">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="An element in the target domain/viewpoint of the {@link org.fortiss.af3.allocation.model.Allocation} containing this {@link org.fortiss.af3.allocation.model.ManyToOneAllocationEntry}."/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eSubpackages name="sampleinst" nsURI="http://www.fortiss.org/af3/allocation/sampleinst"
nsPrefix="org-fortiss-af3-allocation-sampleinst">
<eClassifiers xsi:type="ecore:EClass" name="LogicalArchitectureToTaskArchitectureAllocation"
eSuperTypes="#//Allocation">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="To be moved to the component plugin or the task architecture plugin. This is here just to illustrate how the allocation framework is inteded to be instantiated. However, we are lacking the concrete types (({@code Component, Task})."/>
</eAnnotations>
<eOperations name="getTask" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="TODO: write documentation (in the model!)"/>
</eAnnotations>
<eParameters name="component" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
</eOperations>
<eOperations name="getComponents" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="TODO: write documentation (in the model!)"/>
</eAnnotations>
<eParameters name="task" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
</eOperations>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="LogicalArchictureToTaskArchitectureAllocationEntry"
eSuperTypes="#//ManyToOneAllocationEntry">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="To be moved to the component plugin or the task architecture plugin. This is here just to illustrate how the allocation framework is inteded to be instantiated. However, we are lacking the concrete types (({@code Component, Task})."/>
</eAnnotations>
</eClassifiers>
</eSubpackages>
</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" copyrightText="(c) 2011 ForTISS GmbH" modelDirectory="/org.fortiss.af3.allocation/generated-src"
editDirectory="/org.fortiss.af3.allocation.edit/generated-src" editorDirectory="/org.fortiss.af3.allocation.editor/generated-src"
modelPluginID="org.fortiss.af3.allocation" modelName="Model" modelPluginClass=""
editPluginClass="org.fortiss.af3.allocation.model.provider.ModelEditPlugin" editorPluginClass="org.fortiss.af3.allocation.model.presentation.ModelEditorPlugin"
testsDirectory="/org.fortiss.af3.allocation.tests/test-src" importerID="org.eclipse.emf.importer.ecore"
containmentProxies="true" complianceLevel="5.0" copyrightFields="false" language=""
usedGenPackages="platform:/resource/org.fortiss.tooling.base/model/base.genmodel#//model platform:/resource/org.fortiss.tooling.kernel/model/kernel.genmodel#//model">
<foreignModel>allocation.ecore</foreignModel>
<genPackages prefix="AF3Allocation" basePackage="org.fortiss.af3.allocation" disposableProviderFactory="true"
ecorePackage="allocation.ecore#/">
<genClasses ecoreClass="allocation.ecore#//AllocationTable">
<genOperations ecoreOperation="allocation.ecore#//AllocationTable/getAllocations"/>
</genClasses>
<genClasses ecoreClass="allocation.ecore#//Allocation">
<genOperations ecoreOperation="allocation.ecore#//Allocation/getOneToOneAllocationEntries"/>
<genOperations ecoreOperation="allocation.ecore#//Allocation/getOneToManyAllocationEntries"/>
<genOperations ecoreOperation="allocation.ecore#//Allocation/getManyToOneAllocationEntries"/>
<genOperations ecoreOperation="allocation.ecore#//Allocation/getTarget">
<genParameters ecoreParameter="allocation.ecore#//Allocation/getTarget/source"/>
</genOperations>
<genOperations ecoreOperation="allocation.ecore#//Allocation/getTargets">
<genParameters ecoreParameter="allocation.ecore#//Allocation/getTargets/source"/>
</genOperations>
<genOperations ecoreOperation="allocation.ecore#//Allocation/getSource">
<genParameters ecoreParameter="allocation.ecore#//Allocation/getSource/target"/>
</genOperations>
<genOperations ecoreOperation="allocation.ecore#//Allocation/getSources">
<genParameters ecoreParameter="allocation.ecore#//Allocation/getSources/target"/>
</genOperations>
</genClasses>
<genClasses image="false" ecoreClass="allocation.ecore#//AllocationEntry"/>
<genClasses ecoreClass="allocation.ecore#//OneToOneAllocationEntry">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference allocation.ecore#//OneToOneAllocationEntry/source"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference allocation.ecore#//OneToOneAllocationEntry/target"/>
</genClasses>
<genClasses ecoreClass="allocation.ecore#//OneToManyAllocationEntry">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference allocation.ecore#//OneToManyAllocationEntry/source"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference allocation.ecore#//OneToManyAllocationEntry/targets"/>
</genClasses>
<genClasses image="false" ecoreClass="allocation.ecore#//ManyToOneAllocationEntry">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference allocation.ecore#//ManyToOneAllocationEntry/sources"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference allocation.ecore#//ManyToOneAllocationEntry/target"/>
</genClasses>
<nestedGenPackages prefix="Sampleinst" basePackage="org.fortiss.af3.allocation.model"
disposableProviderFactory="true" ecorePackage="allocation.ecore#//sampleinst">
<genClasses ecoreClass="allocation.ecore#//sampleinst/LogicalArchitectureToTaskArchitectureAllocation">
<genOperations ecoreOperation="allocation.ecore#//sampleinst/LogicalArchitectureToTaskArchitectureAllocation/getTask">
<genParameters ecoreParameter="allocation.ecore#//sampleinst/LogicalArchitectureToTaskArchitectureAllocation/getTask/component"/>
</genOperations>
<genOperations ecoreOperation="allocation.ecore#//sampleinst/LogicalArchitectureToTaskArchitectureAllocation/getComponents">
<genParameters ecoreParameter="allocation.ecore#//sampleinst/LogicalArchitectureToTaskArchitectureAllocation/getComponents/task"/>
</genOperations>
</genClasses>
<genClasses ecoreClass="allocation.ecore#//sampleinst/LogicalArchictureToTaskArchitectureAllocationEntry"/>
</nestedGenPackages>
</genPackages>
</genmodel:GenModel>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project name="org.fortiss.af3.allocation" default="generate-ecore" basedir="..">
<property name="model.name" value="allocation" />
<property name="model.project" value="org.fortiss.af3.allocation" />
<!-- Classpath Definition -->
<buckminster.valuepath id="project.classpath" value="${fs:project.classpath}" />
<path id="classpath">
<path refid="project.classpath"/>
<!-- add src to the classpath as only the bin directory is in the classpath
and some resources such as the workflow or properties file might not yet
have been copied to the bin directory -->
<pathelement location="src"/>
</path>
<!-- Generation Tasks -->
<target name="generate-ecore">
<emf.Ecore2Java
model="model/${model.name}.ecore"
genModel="model/${model.name}.genmodel"
modelProject="/${model.project}"
modelProjectFragmentPath="generated-src"
reconcileGenModel="reload">
</emf.Ecore2Java>
</target>
</project>
\ No newline at end of file
# <copyright>
# </copyright>
#
# $Id$
pluginName = fortiss Allocation Model
providerName = fortiss GmbH
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!--
<copyright>
</copyright>
$Id$
-->
<plugin>
</plugin>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Id$
@version $Rev$
@ConQAT.Rating RED Hash: E1674C4A6DD3CBC4A7B7E85232D9695F
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.fortiss.af3</groupId>
<artifactId>org.fortiss.af3.allocation</artifactId>
<packaging>eclipse-plugin</packaging>
<parent>
<groupId>org.fortiss.std.pom</groupId>
<artifactId>std-parent-pom-indigo</artifactId>
<version>1.0</version>
<relativePath>../../parent-pom.xml</relativePath>
</parent>
<version>2.11.0-SNAPSHOT</version>
</project>
\ No newline at end of file
/*--------------------------------------------------------------------------+
$Id$
| |
| Copyright 2011 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.allocation;
import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle.
*
* @author barner
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: BCB77152A7E12C21CD858091697DA089
*/
public class AF3AllocationActivator extends Plugin {
/** The plug-in ID. */
public static final String PLUGIN_ID = AF3AllocationActivator.class.getPackage().getName(); //$NON-NLS-1$
/** The shared instance. */
private static AF3AllocationActivator plugin;
/** Constructor. */
public AF3AllocationActivator() {
// do nothing
}
/** {@inheritDoc} */
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}
/** {@inheritDoc} */
@Override
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
/** Returns the shared instance. */
public static AF3AllocationActivator getDefault() {
return plugin;
}
}
/*--------------------------------------------------------------------------+
$Id$
| |
| Copyright 2017 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.allocation.model.impl;
import static org.fortiss.tooling.kernel.utils.EcoreUtils.pickInstanceOf;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EOperation;
import org.fortiss.af3.allocation.model.Allocation;
import org.fortiss.af3.allocation.model.ManyToOneAllocationEntry;
import org.fortiss.af3.allocation.model.OneToManyAllocationEntry;
import org.fortiss.af3.allocation.model.OneToOneAllocationEntry;
import org.fortiss.tooling.base.model.element.IModelElement;
/**
* Implementation of {@link EOperation}s of class {@link Allocation}.
*
* @author barner
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: 7127AD0786EE182852E90D3B4B1A9560
*/
public class AllocationStaticImpl {
/**
* Returns the {@link OneToOneAllocationEntry}s contained by the given {@link Allocation}.
*
* @param allocation
* {@link Allocation} for which to the return the contained
* {@link OneToOneAllocationEntry}s.
*
* @return {@link OneToOneAllocationEntry}s contained by the given {@link Allocation}.
*/
public static EList<OneToOneAllocationEntry>
getOneToOneAllocationEntries(Allocation allocation) {
return pickInstanceOf(OneToOneAllocationEntry.class, allocation.getContainedElements());
}
/**
* Returns the {@link OneToManyAllocationEntry}s contained by the given {@link Allocation}.
*
* @param allocation
* {@link Allocation} for which to the return the contained
* {@link OneToManyAllocationEntry}s.
*
* @return {@link OneToManyAllocationEntry}s contained by the given {@link Allocation}.
*/
public static EList<OneToManyAllocationEntry> getOneToManyAllocationEntries(
Allocation allocation) {
return pickInstanceOf(OneToManyAllocationEntry.class, allocation.getContainedElements());
}
/**
* Returns the {@link ManyToOneAllocationEntry}s contained by the given {@link Allocation}.
*
* @param allocation
* {@link Allocation} for which to the return the contained
* {@link ManyToOneAllocationEntry}s.
*
* @return {@link ManyToOneAllocationEntry}s contained by the given {@link Allocation}.
*/
public static EList<ManyToOneAllocationEntry> getManyToOneAllocationEntries(
Allocation allocation) {
return pickInstanceOf(ManyToOneAllocationEntry.class, allocation.getContainedElements());
}
public static IModelElement getTarget(Allocation allocation, IModelElement source) {
// TODO Auto-generated method stub
return null;
}
public static EList<IModelElement> getTargets(Allocation allocation, IModelElement source) {
// TODO Auto-generated method stub
return null;
}
public static IModelElement getSource(Allocation allocation, IModelElement target) {
// TODO Auto-generated method stub
return null;
}
public static EList<IModelElement> getSources(Allocation allocation, IModelElement target) {
// TODO Auto-generated method stub