/***************************************************************************** | |
* | |
* 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 v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* 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.Timed_ExecutionFactory; | |
import org.eclipse.uml2.uml.AddStructuralFeatureValueAction; | |
import org.eclipse.uml2.uml.Element; | |
public class FMUExecutionFactory extends Timed_ExecutionFactory { | |
@Override | |
public ISemanticVisitor instantiateVisitor(Element element) { | |
ISemanticVisitor visitor = null; | |
if (element instanceof AddStructuralFeatureValueAction) { | |
visitor = new FMUAddStructuralFeatureValueAction() ; | |
} else { | |
visitor = super.instantiateVisitor(element); | |
} | |
return visitor ; | |
} | |
} |