| /***************************************************************************** |
| * |
| * Copyright (c) 2016 CEA LIST. |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * CEA LIST Initial API and implementation |
| * |
| *****************************************************************************/ |
| package org.eclipse.papyrus.moka.fmu.engine.semantics; |
| |
| import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.ISemanticVisitor; |
| import org.eclipse.papyrus.moka.timedfuml.semantics.Loci.TimedExecutionFactory; |
| import org.eclipse.uml2.uml.AddStructuralFeatureValueAction; |
| import org.eclipse.uml2.uml.Element; |
| |
| public class FMUExecutionFactory extends TimedExecutionFactory { |
| |
| @Override |
| public ISemanticVisitor instantiateVisitor(Element element) { |
| ISemanticVisitor visitor = null; |
| if (element instanceof AddStructuralFeatureValueAction) { |
| visitor = new FMUAddStructuralFeatureValueAction() ; |
| } else { |
| visitor = super.instantiateVisitor(element); |
| } |
| return visitor ; |
| } |
| } |