Commit 3b9b9d92 authored by Alexander Diewald's avatar Alexander Diewald

org.fortiss.af3.exploration:

- Initial commit of common optimization goal model (moved from source.fortiss.org).
parent 93ab82eb
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="generated-src"/>
<classpathentry kind="output" path="build"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.fortiss.af3.exploration</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.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: EA-based Design Space Exploration
Bundle-SymbolicName: org.fortiss.af3.exploration;singleton:=true
Bundle-Version: 2.8.0.qualifier
Bundle-ClassPath: .
Bundle-Vendor: fortiss GmbH
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Bundle-Activator: org.fortiss.af3.exploration.ExplorationActivator
Export-Package: org.fortiss.af3.exploration,
org.fortiss.af3.exploration.model,
org.fortiss.af3.exploration.model.impl,
org.fortiss.af3.exploration.model.util,
org.fortiss.af3.exploration.prototypes,
org.fortiss.af3.exploration.util
Require-Bundle: org.fortiss.af3.platform;bundle-version="2.8.0";visibility:=reexport
<?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/exploration" nsPrefix="org-fortiss-af3-exploration">
<eClassifiers xsi:type="ecore:EClass" name="ExplorationManager" eSuperTypes="platform:/resource/org.fortiss.tooling.kernel/model/kernel.ecore#//IProjectRootElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="dseModel" upperBound="-1"
eType="#//DesignSpaceExploration" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="DesignSpaceExploration" eSuperTypes="platform:/resource/org.fortiss.tooling.kernel/model/kernel.ecore#//INamedElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="optimizer" lowerBound="1"
eType="#//IOptimizer" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="parameters" lowerBound="1"
eType="#//DSEParameters" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="goalSpecification" lowerBound="1"
eType="#//GoalSpecification" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="IOptimizer" abstract="true" interface="true"/>
<eClassifiers xsi:type="ecore:EClass" name="EAOptimizer" eSuperTypes="#//IOptimizer">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="generations" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" defaultValueLiteral="100"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="alpha" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
defaultValueLiteral="100"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="spea2Tournament" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt" defaultValueLiteral="5"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="parallelExecution" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="DSEParameters">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="executionModel" lowerBound="1"
eType="#//ExecutionModel"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="ExecutionModel">
<eLiterals name="TT_FAIL_SILENCE"/>
<eLiterals name="TT_FAULT_DETECTION_VOTING" value="1"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="GoalSpecification">
<eStructuralFeatures xsi:type="ecore:EReference" name="dimensions" lowerBound="1"
upperBound="-1" eType="#//IProblemDimension" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="OptimizationDirection">
<eLiterals name="MIN"/>
<eLiterals name="MAX" value="1"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="IProblemDimension" abstract="true" interface="true"
eSuperTypes="platform:/resource/org.fortiss.tooling.kernel/model/kernel.ecore#//INamedElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="objectives" upperBound="-1"
eType="#//OptimizationObjective" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="constraints" upperBound="-1"
eType="#//OptimizationConstraint" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="OptimizationGoal" abstract="true" interface="true"
eSuperTypes="platform:/resource/org.fortiss.tooling.kernel/model/kernel.ecore#//INamedElement">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="priority" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="OptimizationObjective" abstract="true"
interface="true" eSuperTypes="#//OptimizationGoal">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="direction" lowerBound="1"
eType="#//OptimizationDirection"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="OptimizationConstraint" abstract="true"
interface="true" eSuperTypes="#//OptimizationGoal">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="allowedViolation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"
defaultValueLiteral="1e-9"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="IHiddenOptimizationConstraint" abstract="true"
interface="true"/>
<eClassifiers xsi:type="ecore:EClass" name="TimeDimension" eSuperTypes="#//IProblemDimension"/>
<eClassifiers xsi:type="ecore:EClass" name="ReliabilityDimension" eSuperTypes="#//IProblemDimension"/>
<eClassifiers xsi:type="ecore:EClass" name="EnergyDimension" eSuperTypes="#//IProblemDimension"/>
<eClassifiers xsi:type="ecore:EClass" name="SafetyDimension" eSuperTypes="#//IProblemDimension"/>
<eClassifiers xsi:type="ecore:EClass" name="SeparationDimension" eSuperTypes="#//IProblemDimension"/>
<eClassifiers xsi:type="ecore:EClass" name="FailureMinObjective" eSuperTypes="#//ReliabilityDimension #//OptimizationObjective">
<eStructuralFeatures xsi:type="ecore:EReference" name="component" lowerBound="1"
eType="ecore:EClass platform:/resource/org.fortiss.af3.component/model/component.ecore#//Component"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="mode" lowerBound="1" eType="#//FailureMode"
defaultValueLiteral="FailSafe"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" lowerBound="1" eType="#//FailureType"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="FailureMode">
<eLiterals name="FailSafe"/>
<eLiterals name="FailOperational" value="1"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="FailureType">
<eLiterals name="DUF"/>
<eLiterals name="SDC" value="1"/>
<eLiterals name="ALL" value="2" literal="ALL"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EnergyMinObjective" eSuperTypes="#//EnergyDimension #//OptimizationObjective"/>
<eClassifiers xsi:type="ecore:EClass" name="DeadlineConstraint" eSuperTypes="#//TimeDimension #//OptimizationConstraint">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="deadline" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="startComponent" lowerBound="1"
eType="ecore:EClass platform:/resource/org.fortiss.af3.component/model/component.ecore#//Component"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="endComponent" lowerBound="1"
eType="ecore:EClass platform:/resource/org.fortiss.af3.component/model/component.ecore#//Component"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="SafetyIntegrityLevelConstraint" eSuperTypes="#//SafetyDimension #//OptimizationConstraint">
<eStructuralFeatures xsi:type="ecore:EReference" name="components" lowerBound="1"
upperBound="-1" eType="ecore:EClass platform:/resource/org.fortiss.af3.component/model/component.ecore#//Component"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="FixedDeploymentConstraint" eSuperTypes="#//OptimizationConstraint #//SeparationDimension">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="replication" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="deployableComponent" lowerBound="1"
eType="ecore:EClass platform:/resource/org.fortiss.af3.component/model/component.ecore#//Component"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="deploymentTargets" lowerBound="1"
upperBound="-1" eType="ecore:EClass platform:/resource/org.fortiss.af3.platform/model/platform.ecore#//ExecutionUnit"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ExcludeDeploymentConstraint" eSuperTypes="#//OptimizationConstraint #//SeparationDimension">
<eStructuralFeatures xsi:type="ecore:EReference" name="deployableComponent" lowerBound="1"
eType="ecore:EClass platform:/resource/org.fortiss.af3.component/model/component.ecore#//Component"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="deploymentTargets" lowerBound="1"
upperBound="-1" eType="ecore:EClass platform:/resource/org.fortiss.af3.platform/model/platform.ecore#//ExecutionUnit"/>
</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" modelPluginID="org.fortiss.af3.exploration"
modelName="Exploration" editPluginClass="org.fortiss.af3.exploration.provider.ExplorationEditPlugin"
editorPluginClass="org.fortiss.af3.exploration.presentation.ExplorationEditorPlugin"
importerID="org.eclipse.emf.importer.ecore" containmentProxies="true" complianceLevel="5.0"
copyrightFields="false" usedGenPackages="platform:/resource/org.fortiss.tooling.base/model/base.genmodel#//model platform:/resource/org.fortiss.tooling.kernel/model/kernel.genmodel#//model platform:/resource/org.fortiss.af3.component/model/component.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.expression/model/expression.genmodel#//model platform:/resource/org.fortiss.contract/model/contract.genmodel#//model">
<foreignModel>exploration.ecore</foreignModel>
<genPackages prefix="Exploration" basePackage="org.fortiss.af3.exploration" disposableProviderFactory="true"
ecorePackage="exploration.ecore#/">
<genEnums typeSafeEnumCompatible="false" ecoreEnum="exploration.ecore#//ExecutionModel">
<genEnumLiterals ecoreEnumLiteral="exploration.ecore#//ExecutionModel/TT_FAIL_SILENCE"/>
<genEnumLiterals ecoreEnumLiteral="exploration.ecore#//ExecutionModel/TT_FAULT_DETECTION_VOTING"/>
</genEnums>
<genEnums typeSafeEnumCompatible="false" ecoreEnum="exploration.ecore#//OptimizationDirection">
<genEnumLiterals ecoreEnumLiteral="exploration.ecore#//OptimizationDirection/MIN"/>
<genEnumLiterals ecoreEnumLiteral="exploration.ecore#//OptimizationDirection/MAX"/>
</genEnums>
<genEnums typeSafeEnumCompatible="false" ecoreEnum="exploration.ecore#//FailureMode">
<genEnumLiterals ecoreEnumLiteral="exploration.ecore#//FailureMode/FailSafe"/>
<genEnumLiterals ecoreEnumLiteral="exploration.ecore#//FailureMode/FailOperational"/>
</genEnums>
<genEnums typeSafeEnumCompatible="false" ecoreEnum="exploration.ecore#//FailureType">
<genEnumLiterals ecoreEnumLiteral="exploration.ecore#//FailureType/DUF"/>
<genEnumLiterals ecoreEnumLiteral="exploration.ecore#//FailureType/SDC"/>
<genEnumLiterals ecoreEnumLiteral="exploration.ecore#//FailureType/ALL"/>
</genEnums>
<genClasses ecoreClass="exploration.ecore#//ExplorationManager">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference exploration.ecore#//ExplorationManager/dseModel"/>
</genClasses>
<genClasses ecoreClass="exploration.ecore#//DesignSpaceExploration">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference exploration.ecore#//DesignSpaceExploration/optimizer"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference exploration.ecore#//DesignSpaceExploration/parameters"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference exploration.ecore#//DesignSpaceExploration/goalSpecification"/>
</genClasses>
<genClasses image="false" ecoreClass="exploration.ecore#//IOptimizer"/>
<genClasses ecoreClass="exploration.ecore#//EAOptimizer">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exploration.ecore#//EAOptimizer/generations"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exploration.ecore#//EAOptimizer/alpha"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exploration.ecore#//EAOptimizer/spea2Tournament"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exploration.ecore#//EAOptimizer/parallelExecution"/>
</genClasses>
<genClasses ecoreClass="exploration.ecore#//DSEParameters">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exploration.ecore#//DSEParameters/executionModel"/>
</genClasses>
<genClasses ecoreClass="exploration.ecore#//GoalSpecification">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference exploration.ecore#//GoalSpecification/dimensions"/>
</genClasses>
<genClasses image="false" ecoreClass="exploration.ecore#//IProblemDimension">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference exploration.ecore#//IProblemDimension/objectives"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference exploration.ecore#//IProblemDimension/constraints"/>
</genClasses>
<genClasses image="false" ecoreClass="exploration.ecore#//OptimizationGoal">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exploration.ecore#//OptimizationGoal/priority"/>
</genClasses>
<genClasses image="false" ecoreClass="exploration.ecore#//OptimizationObjective">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exploration.ecore#//OptimizationObjective/direction"/>
</genClasses>
<genClasses image="false" ecoreClass="exploration.ecore#//OptimizationConstraint">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exploration.ecore#//OptimizationConstraint/allowedViolation"/>
</genClasses>
<genClasses image="false" ecoreClass="exploration.ecore#//IHiddenOptimizationConstraint"/>
<genClasses image="false" ecoreClass="exploration.ecore#//TimeDimension"/>
<genClasses image="false" ecoreClass="exploration.ecore#//ReliabilityDimension"/>
<genClasses ecoreClass="exploration.ecore#//EnergyDimension"/>
<genClasses ecoreClass="exploration.ecore#//SafetyDimension"/>
<genClasses ecoreClass="exploration.ecore#//SeparationDimension"/>
<genClasses ecoreClass="exploration.ecore#//FailureMinObjective">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference exploration.ecore#//FailureMinObjective/component"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exploration.ecore#//FailureMinObjective/mode"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exploration.ecore#//FailureMinObjective/type"/>
</genClasses>
<genClasses ecoreClass="exploration.ecore#//EnergyMinObjective"/>
<genClasses ecoreClass="exploration.ecore#//DeadlineConstraint">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exploration.ecore#//DeadlineConstraint/deadline"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference exploration.ecore#//DeadlineConstraint/startComponent"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference exploration.ecore#//DeadlineConstraint/endComponent"/>
</genClasses>
<genClasses ecoreClass="exploration.ecore#//SafetyIntegrityLevelConstraint">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference exploration.ecore#//SafetyIntegrityLevelConstraint/components"/>
</genClasses>
<genClasses ecoreClass="exploration.ecore#//FixedDeploymentConstraint">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute exploration.ecore#//FixedDeploymentConstraint/replication"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference exploration.ecore#//FixedDeploymentConstraint/deployableComponent"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference exploration.ecore#//FixedDeploymentConstraint/deploymentTargets"/>
</genClasses>
<genClasses ecoreClass="exploration.ecore#//ExcludeDeploymentConstraint">
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference exploration.ecore#//ExcludeDeploymentConstraint/deployableComponent"/>
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference exploration.ecore#//ExcludeDeploymentConstraint/deploymentTargets"/>
</genClasses>
</genPackages>
</genmodel:GenModel>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
$Id$
@version $Rev$
@ConQAT.Rating YELLOW Hash: 6B2A0E16821A50B46B26EE1F8A40ED73
-->
<project name="org.fortiss.af3.exploration" default="generate-ecore" basedir="..">
<property name="exploration.name" value="exploration" />
<property name="annotation.name" value="annotation" />
<property name="project" value="org.fortiss.af3.exploration" />
<!-- 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/${exploration.name}.ecore"
genModel="model/${exploration.name}.genmodel"
modelProject="/${project}"
modelProjectFragmentPath="generated-src"
reconcileGenModel="reload">
</emf.Ecore2Java>
</target>
</project>
\ No newline at end of file
# <copyright>
# </copyright>
#
# $Id$
pluginName = EA-based Design Space Exploration
providerName = fortiss GmbH
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!--
<copyright>
</copyright>
$Id$
-->
<plugin>
<extension point="org.fortiss.tooling.kernel.modelPrototypeProvider">
<modelPrototypeProvider provider="org.fortiss.af3.exploration.prototypes.PrototypeProvider"/>
</extension>
<extension point="org.eclipse.emf.ecore.generated_package">
<!-- @generated exploration -->
<package
class="org.fortiss.af3.exploration.model.ExplorationPackage"
genModel="model/exploration.genmodel"
uri="http://www.fortiss.org/af3/exploration"/>
</extension>
</plugin>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Id$
@version $Rev$
@ConQAT.Rating YELLOW Hash: 8E4EDB3139807C233D5B61B625C07C5C
-->
<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.exploration</artifactId>
<packaging>eclipse-plugin</packaging>
<parent>
<groupId>org.fortiss.std.pom</groupId>
<artifactId>std-parent-pom-indigo</artifactId>
<version>1.0</version>
<relativePath>../fortiss-std-env/maven-build/pom.xml</relativePath>
</parent>
<version>2.8.0-SNAPSHOT</version>
</project>
\ No newline at end of file
/*--------------------------------------------------------------------------+
$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.af3.exploration;
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 RED Hash: 1EDCB4D508F43EB869C2B8F346C92083
*/
public class ExplorationActivator extends Plugin {
/** The plug-in ID. */
public static final String PLUGIN_ID = ExplorationActivator.class.getPackage().getName(); //$NON-NLS-1$
/** The shared instance. */
private static ExplorationActivator plugin;
/** {@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 ExplorationActivator getDefault() {
return plugin;
}
}
/*--------------------------------------------------------------------------+
$Id$
| |
| Copyright 2014 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.prototypes;
import org.fortiss.af3.exploration.model.DesignSpaceExploration;
import org.fortiss.af3.exploration.model.ExplorationManager;
import org.fortiss.af3.exploration.util.DesignSpaceExplorationModelElementFactory;
import org.fortiss.tooling.kernel.extension.base.PrototypeProviderBase;
/**
* Prototype provider for design space exploration object
*
* @author diewald
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: 1EEDD654223F0BE92A6457A73C44A60F
*/
public class PrototypeProvider extends PrototypeProviderBase {
/** Stores the category to display for these prototypes. */
protected final static String CATEGORY_NAME = "Design Space Exploration";
/** {@inheritDoc} */
@Override
protected void registerPrototypes() {
setupExplorationManagerPrototypes();
setupDesignSpaceExplorationPrototypes();
}
/**
* Defines prototypes for {@link ExplorationManager}s which are used to manage DSE
* models.
*/
private void setupExplorationManagerPrototypes() {
registerPrimaryPrototype("Design Space Exploration",
DesignSpaceExplorationModelElementFactory
.createExplorationManager("Design Space Exploration"), CATEGORY_NAME);
}
/**
* Defines prototypes for {@link DesignSpaceExploration}s which are used to create and configure
* DSE
* models.
*/
private void setupDesignSpaceExplorationPrototypes() {
registerPrimaryPrototype(
"DSE model",
DesignSpaceExplorationModelElementFactory.createDesignSpaceExploration("DSE model"),
CATEGORY_NAME);
}
}
/*--------------------------------------------------------------------------+
$Id$
| |
| Copyright 2014 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 org.fortiss.af3.exploration.model.DesignSpaceExploration;
import org.fortiss.af3.exploration.model.ExplorationFactory;
import org.fortiss.af3.exploration.model.ExplorationManager;
/**
* Model element factory for design space exploration
*
* @author diewald
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: F9B4F6D1C9DCC9188F888F8FE962997C
*/
public class DesignSpaceExplorationModelElementFactory {
/** Creates a ExplorationManager specification. */
public static ExplorationManager createExplorationManager(String name) {
ExplorationManager manager = ExplorationFactory.eINSTANCE.createExplorationManager();
manager.setName(name);
return manager;
}
/** Creates a DesignSpaceExploration specification */
public static DesignSpaceExploration createDesignSpaceExploration(String name) {
DesignSpaceExploration dse = ExplorationFactory.eINSTANCE.createDesignSpaceExploration();
dse.setName(name);
return dse;
}
}
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