| /***************************************************************************** |
| * |
| * Copyright (c) 2017 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.externalcontrol.controller; |
| |
| import java.util.List; |
| |
| import org.eclipse.papyrus.moka.externalcontrol.advice.IControllerAdvice; |
| import org.eclipse.papyrus.moka.fuml.loci.ISemanticVisitor; |
| |
| public interface IExternallyControlledVisitor<T extends ISemanticVisitor> extends ISemanticVisitor{ |
| |
| public boolean isExecutionAllowed(); |
| |
| public void doExecute(); |
| |
| public void registerAdvice(IControllerAdvice advice); |
| |
| public List<IControllerAdvice> getRegisteredAdvices(); |
| |
| public T getDelegatedVisitor(); |
| |
| public ExternalController getController(); |
| |
| public void setController(ExternalController controller); |
| |
| public ControlledVisitorStep getState(); |
| |
| } |