| /******************************************************************************* |
| * Copyright (c) 2008, 2011 Obeo. |
| * 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: |
| * Obeo - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.emf.eef.modelingBot.interpreter; |
| |
| import java.io.IOException; |
| |
| import org.eclipse.core.runtime.CoreException; |
| import org.eclipse.emf.eef.components.PropertiesEditionContext; |
| import org.eclipse.emf.eef.modelingBot.Action; |
| import org.eclipse.emf.eef.modelingBot.Processing; |
| import org.eclipse.emf.eef.modelingBot.Sequence; |
| |
| /** |
| * @author <a href="mailto:stephane.bouchet@obeo.fr">Stephane Bouchet</a> |
| */ |
| public interface IModelingBotInterpreter { |
| |
| /** |
| * Run the modeling bot : interprete the sequence and actions of the model. |
| * |
| * @param path |
| * @throws CoreException |
| * @throws IOException |
| */ |
| void runModelingBot(String path) throws CoreException, IOException; |
| |
| /** |
| * Run an action. |
| * |
| * @param action |
| * Action |
| */ |
| void runAction(Action action); |
| |
| /** |
| * Run a sequence. |
| * |
| * @param sequence |
| * Sequence |
| */ |
| void runSequence(Sequence sequence); |
| |
| /** |
| * Prepares the processing of a sequence. |
| * @param sequence {@link Sequence} to process. |
| */ |
| void preProcessing(Sequence sequence); |
| |
| /** |
| * Finishes the processing of a sequence. |
| * @param sequence {@link Sequence} to process. |
| */ |
| void postProcessing(Sequence sequence); |
| |
| /** |
| * @return the PropertiesEditionContext |
| */ |
| PropertiesEditionContext getPropertiesEditionContext(); |
| |
| /** |
| * @param context propertiesEditionContext to set |
| */ |
| void setPropertiesEditionContext(PropertiesEditionContext context); |
| |
| } |