Commit fdbb5e92 authored by Faezeh KHORRAM's avatar Faezeh KHORRAM 💬
Browse files

Setting TDL Animation

parent 9fd73f0b
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.etsi.mts.tdl.graphical.viewpoint</name>
<name>org.imt.tdl.graphical.viewpoint</name>
<comment></comment>
<projects>
</projects>
......@@ -31,6 +31,4 @@
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
</natures>
<linkedResources>
</linkedResources>
</projectDescription>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.etsi.mts.tdl.graphical.viewpoint;singleton:=true
Bundle-SymbolicName: org.imt.tdl.graphical.viewpoint;singleton:=true
Bundle-Version: 0.9.0.qualifier
Bundle-ClassPath: .
Bundle-Vendor: %providerName
......
......@@ -866,8 +866,8 @@
</ownedTools>
</toolSections>
<decorationDescriptionsSet>
<decorationDescriptions xsi:type="description_2:MappingBasedDecoration" name="Enabled breakpoint" position="WEST" preconditionExpression="service:self.hasEnabledBreakpoint" imageExpression="/org.eclipse.gemoc.executionframework.extensions.sirius/icons/breakpoint_enabled.gif" mappings="//@ownedViewpoints[name='org.etsi.mts.tdl']/@ownedRepresentations[name='TestDescriptionDiagram']/@defaultLayer/@containerMappings[name='assignment']/@subNodeMappings[name='assignment.assignment'] //@ownedViewpoints[name='org.etsi.mts.tdl']/@ownedRepresentations[name='TestDescriptionDiagram']/@defaultLayer/@containerMappings[name='combinedBehaviour']/@subContainerMappings[name='boundedLoopBehaviour']/@subNodeMappings[name='boundedLoop.iteration'] //@ownedViewpoints[name='org.etsi.mts.tdl']/@ownedRepresentations[name='TestDescriptionDiagram']/@defaultLayer/@containerMappings[name='combinedBehaviour']/@subContainerMappings[name='periodicBehaviour']/@subNodeMappings[name='periodicBehaviour.iteration'] //@ownedViewpoints[name='org.etsi.mts.tdl']/@ownedRepresentations[name='TestDescriptionDiagram']/@defaultLayer/@edgeMappings[name='interaction']"/>
<decorationDescriptions xsi:type="description_2:MappingBasedDecoration" name="Disabled breakpoint" position="WEST" preconditionExpression="service:self.hasDisabledBreakpoint" imageExpression="/org.eclipse.gemoc.executionframework.extensions.sirius/icons/breakpoint_disabled.gif" mappings="//@ownedViewpoints[name='org.etsi.mts.tdl']/@ownedRepresentations[name='TestDescriptionDiagram']/@defaultLayer/@containerMappings[name='combinedBehaviour']/@subContainerMappings[name='boundedLoopBehaviour']/@subNodeMappings[name='boundedLoop.iteration'] //@ownedViewpoints[name='org.etsi.mts.tdl']/@ownedRepresentations[name='TestDescriptionDiagram']/@defaultLayer/@containerMappings[name='combinedBehaviour']/@subContainerMappings[name='periodicBehaviour']/@subNodeMappings[name='periodicBehaviour.iteration'] //@ownedViewpoints[name='org.etsi.mts.tdl']/@ownedRepresentations[name='TestDescriptionDiagram']/@defaultLayer/@edgeMappings[name='interaction']"/>
<decorationDescriptions xsi:type="description_2:MappingBasedDecoration" name="Enabled breakpoint" position="WEST" preconditionExpression="service:self.hasEnabledBreakpoint" imageExpression="/org.eclipse.gemoc.executionframework.extensions.sirius/icons/breakpoint_enabled.gif" mappings="//@ownedViewpoints[name='org.etsi.mts.tdl']/@ownedRepresentations[name='TestDescriptionDiagram']/@defaultLayer/@containerMappings[name='assignment']/@subNodeMappings[name='assignment.assignment'] //@ownedViewpoints[name='org.etsi.mts.tdl']/@ownedRepresentations[name='TestDescriptionDiagram']/@defaultLayer/@containerMappings[name='combinedBehaviour']/@subContainerMappings[name='boundedLoopBehaviour']/@subNodeMappings[name='boundedLoop.iteration'] //@ownedViewpoints[name='org.etsi.mts.tdl']/@ownedRepresentations[name='TestDescriptionDiagram']/@defaultLayer/@containerMappings[name='combinedBehaviour']/@subContainerMappings[name='periodicBehaviour']/@subNodeMappings[name='periodicBehaviour.iteration'] //@ownedViewpoints[name='org.etsi.mts.tdl']/@ownedRepresentations[name='TestDescriptionDiagram']/@defaultLayer/@edgeMappings[name='interaction'] //@ownedViewpoints[name='org.etsi.mts.tdl']/@ownedRepresentations[name='GenericDiagram']/@defaultLayer/@containerMappings[name='testDescription']"/>
<decorationDescriptions xsi:type="description_2:MappingBasedDecoration" name="Disabled breakpoint" position="WEST" preconditionExpression="service:self.hasDisabledBreakpoint" imageExpression="/org.eclipse.gemoc.executionframework.extensions.sirius/icons/breakpoint_disabled.gif" mappings="//@ownedViewpoints[name='org.etsi.mts.tdl']/@ownedRepresentations[name='TestDescriptionDiagram']/@defaultLayer/@containerMappings[name='combinedBehaviour']/@subContainerMappings[name='boundedLoopBehaviour']/@subNodeMappings[name='boundedLoop.iteration'] //@ownedViewpoints[name='org.etsi.mts.tdl']/@ownedRepresentations[name='TestDescriptionDiagram']/@defaultLayer/@containerMappings[name='combinedBehaviour']/@subContainerMappings[name='periodicBehaviour']/@subNodeMappings[name='periodicBehaviour.iteration'] //@ownedViewpoints[name='org.etsi.mts.tdl']/@ownedRepresentations[name='TestDescriptionDiagram']/@defaultLayer/@edgeMappings[name='interaction'] //@ownedViewpoints[name='org.etsi.mts.tdl']/@ownedRepresentations[name='GenericDiagram']/@defaultLayer/@containerMappings[name='testDescription']"/>
</decorationDescriptionsSet>
<customization>
<vsmElementCustomizations xsi:type="description:VSMElementCustomization" predicateExpression="service:self.isCurrentInstruction()">
......@@ -2032,6 +2032,8 @@
<ownedJavaExtensions qualifiedClassName="org.etsi.mts.tdl.graphical.extensions.BehaviourProvider"/>
<ownedJavaExtensions qualifiedClassName="org.etsi.mts.tdl.graphical.extensions.ModelHelper"/>
<ownedJavaExtensions qualifiedClassName="org.etsi.mts.tdl.graphical.extensions.BehaviourModifications"/>
<ownedJavaExtensions qualifiedClassName="org.imt.tdl.graphical.services.TdlDebugServices"/>
<ownedJavaExtensions qualifiedClassName="org.imt.tdl.graphical.services.TdlAnimationServices"/>
</ownedViewpoints>
<userColorsPalettes name="TDL Behavior Palette">
<entries xsi:type="description:UserFixedColor" red="255" green="255" blue="0" name="current instruction"/>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -13,7 +13,7 @@ import org.osgi.framework.BundleContext;
*/
public class Activator extends AbstractUIPlugin {
// The plug-in ID
public static final String PLUGIN_ID = "org.etsi.mts.tdl.graphical.viewpoint";
public static final String PLUGIN_ID = "org.imt.tdl.graphical.viewpoint";
// The shared instance
private static Activator plugin;
......@@ -35,7 +35,7 @@ public class Activator extends AbstractUIPlugin {
super.start(context);
plugin = this;
viewpoints = new HashSet<Viewpoint>();
viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/TDL.odesign"));
viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID + "/description/AnimatedTDL.odesign"));
}
/*
......
/*******************************************************************************
* Copyright (c) 2018 Inria.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Inria - initial API and implementation
*******************************************************************************/
package org.imt.tdl.graphical.services;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gemoc.executionframework.extensions.sirius.services.AbstractGemocAnimatorServices;
// tag::FsmAnimatorServicesClass[]
public class TdlAnimatorServices extends AbstractGemocAnimatorServices {
@Override
protected List<StringCouple> getRepresentationRefreshList() { // <1>
final List<StringCouple> res = new ArrayList<StringCouple>();
res.add(new StringCouple("TDL", "Animation"));
return res;
}
}
// end::FsmAnimatorServicesClass[]
/*******************************************************************************
* Copyright (c) 2018 Inria.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Inria - initial API and implementation
*******************************************************************************/
package org.imt.tdl.graphical.services;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.gemoc.executionframework.extensions.sirius.services.AbstractGemocDebuggerServices;
public class TdlDebugServices extends AbstractGemocDebuggerServices {
@Override
protected List<StringCouple> getRepresentationRefreshList() {
// Add in res the list of layers that should be activated and refreshed while debugging the model
// in case of a single odesign with all layers in a single viewpoint:
// - the first String is the id of the Diagram Description
// - the second String is the id of the Layer
//
// in case of a diagram extension:
// - the first String is the Representation Name of the Diagram Extension (do not confuse with the Name !!)
// - the second String is the id of the Layer
final List<StringCouple> res = new ArrayList<StringCouple>();
res.add(new StringCouple("TDL", "Debug"));
return res;
}
@Override
public String getModelIdentifier(){
// Important Note:
// by default the wizard generates a ModelIdentifier linked with the sequential engine.
// ie. return org.eclipse.gemoc.execution.sequential.javaengine.ui.Activator.DEBUG_MODEL_ID;
// however, if the Debug service is to be used by another engine, you must use the targeted engine's
// debug model id and update the manifest dependencies accordingly.
// for example, org.eclipse.gemoc.execution.concurrent.ccsljavaengine.ui.Activator.DEBUG_MODEL_ID for the concurrent engine.
return org.eclipse.gemoc.execution.sequential.javaengine.ui.Activator.DEBUG_MODEL_ID;
}
}
package org.imt.tdl.executionEngine;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunchConfigurationType;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
......@@ -34,8 +30,6 @@ import org.eclipse.gemoc.dsl.debug.ide.launch.AbstractDSLLaunchConfigurationDele
import org.eclipse.gemoc.dsl.debug.ide.sirius.ui.launch.AbstractDSLLaunchConfigurationDelegateSiriusUI;
import org.eclipse.gemoc.executionframework.engine.commons.DslHelper;
import org.eclipse.gemoc.executionframework.engine.commons.EngineContextException;
import org.eclipse.gemoc.executionframework.engine.commons.GenericModelExecutionContext;
import org.eclipse.gemoc.executionframework.engine.commons.K3DslHelper;
import org.eclipse.gemoc.executionframework.engine.commons.sequential.SequentialRunConfiguration;
import org.eclipse.gemoc.executionframework.engine.ui.Activator;
import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode;
......@@ -70,7 +64,7 @@ public class ALEEngineLauncher extends AbstractEngine{
this._animationFirstBreak = true;
this._modelInitializationMethod = getModelInitializationMethodName();
this._modelInitializationArguments = "";
this.executionMode = ExecutionMode.Run;
this.executionMode = ExecutionMode.Animation;
this.configureEngine();
}
//definition of a new configuration of ALE Engine for running a specific model
......
name = org.imt.xtdl.XTdl
ecore = platform:/resource/org.etsi.mts.tdl.model/model/tdl.ecore
k3 = org.imt.k3tdl.k3dsa.ActionBehaviourAspect,org.imt.k3tdl.k3dsa.ActionReferenceAspect,org.imt.k3tdl.k3dsa.AlternativeBehaviourAspect,org.imt.k3tdl.k3dsa.AssertionAspect,org.imt.k3tdl.k3dsa.AssignmentAspect,org.imt.k3tdl.k3dsa.AtomicBehaviourAspect,org.imt.k3tdl.k3dsa.BehaviourAspect,org.imt.k3tdl.k3dsa.BehaviourDescriptionAspect,org.imt.k3tdl.k3dsa.BlockAspect,org.imt.k3tdl.k3dsa.BoundedLoopBehaviourAspect,org.imt.k3tdl.k3dsa.BreakAspect,org.imt.k3tdl.k3dsa.CombinedBehaviourAspect,org.imt.k3tdl.k3dsa.CompoundBehaviourAspect,org.imt.k3tdl.k3dsa.ConditionalBehaviourAspect,org.imt.k3tdl.k3dsa.DataInstanceAspect,org.imt.k3tdl.k3dsa.DataInstanceUseAspect,org.imt.k3tdl.k3dsa.DataTypeAspect,org.imt.k3tdl.k3dsa.DefaultBehaviourAspect,org.imt.k3tdl.k3dsa.ExceptionalBehaviourAspect,org.imt.k3tdl.k3dsa.GateInstanceAspect,org.imt.k3tdl.k3dsa.GateTypeAspect,org.imt.k3tdl.k3dsa.InlineActionAspect,org.imt.k3tdl.k3dsa.InteractoinAspect,org.imt.k3tdl.k3dsa.InterruptBehaviourAspect,org.imt.k3tdl.k3dsa.MemberAssignmentAspect,org.imt.k3tdl.k3dsa.MemberAspect,org.imt.k3tdl.k3dsa.MessageAspect,org.imt.k3tdl.k3dsa.MultipleCombinedBehaviourAspect,org.imt.k3tdl.k3dsa.OptionalBehaviourAspect,org.imt.k3tdl.k3dsa.PackageAspect,org.imt.k3tdl.k3dsa.ParallelBehaviourAspect,org.imt.k3tdl.k3dsa.ParameterBindingAspect,org.imt.k3tdl.k3dsa.PeriodicBehaviourAspect,org.imt.k3tdl.k3dsa.ProcedureCallAspect,org.imt.k3tdl.k3dsa.QuiescenceAspect,org.imt.k3tdl.k3dsa.SimpleDataInstanceAspect,org.imt.k3tdl.k3dsa.SingleCombinedBehaviourAspect,org.imt.k3tdl.k3dsa.StopAspect,org.imt.k3tdl.k3dsa.StructuredDataInstanceAspect,org.imt.k3tdl.k3dsa.TestConfigurationAspect,org.imt.k3tdl.k3dsa.TestDescriptionAspect,org.imt.k3tdl.k3dsa.TestDescriptionReferenceAspect,org.imt.k3tdl.k3dsa.TimeConstraintAspect,org.imt.k3tdl.k3dsa.TimeLabelAspect,org.imt.k3tdl.k3dsa.TimeOperationAspect,org.imt.k3tdl.k3dsa.TimeOutAspect,org.imt.k3tdl.k3dsa.TimerAspect,org.imt.k3tdl.k3dsa.TimerOperationAspect,org.imt.k3tdl.k3dsa.TimerStartAspect,org.imt.k3tdl.k3dsa.TimerStopAspect,org.imt.k3tdl.k3dsa.UnBoundedLoopBehaviourAspect,org.imt.k3tdl.k3dsa.VerdictAssignmentAspect,org.imt.k3tdl.k3dsa.WaitAspect
sirius = platform:/resource/org.etsi.mts.tdl.graphical.viewpoint/description/TDL.odesign
sirius = platform:/resource/org.imt.tdl.graphical.viewpoint/description/AnimatedTDL.odesign
metaprog = org.eclipse.gemoc.metaprog.kermeta3
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