From e11bce7ad3e803e80883499fec0ad6e4540ffe43 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Tue, 30 Jun 2020 18:03:48 +0200 Subject: Add modified VIATRA-DSE version --- .../dse/visualizer/IDesignSpaceVisualizer.java | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Solvers/VIATRA-Solver/org.eclipse.viatra.dse/src/org/eclipse/viatra/dse/visualizer/IDesignSpaceVisualizer.java (limited to 'Solvers/VIATRA-Solver/org.eclipse.viatra.dse/src/org/eclipse/viatra/dse/visualizer/IDesignSpaceVisualizer.java') diff --git a/Solvers/VIATRA-Solver/org.eclipse.viatra.dse/src/org/eclipse/viatra/dse/visualizer/IDesignSpaceVisualizer.java b/Solvers/VIATRA-Solver/org.eclipse.viatra.dse/src/org/eclipse/viatra/dse/visualizer/IDesignSpaceVisualizer.java new file mode 100644 index 00000000..da598b91 --- /dev/null +++ b/Solvers/VIATRA-Solver/org.eclipse.viatra.dse/src/org/eclipse/viatra/dse/visualizer/IDesignSpaceVisualizer.java @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2010-2014, Miklos Foldenyi, Andras Szabolcs Nagy, Abel Hegedus, Akos Horvath, Zoltan Ujhelyi and Daniel Varro + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v. 2.0 which is available at + * http://www.eclipse.org/legal/epl-v20.html. + * + * SPDX-License-Identifier: EPL-2.0 + *******************************************************************************/ +package org.eclipse.viatra.dse.visualizer; + +import org.eclipse.viatra.dse.api.DesignSpaceExplorer; +import org.eclipse.viatra.dse.base.ThreadContext; + +/** + * + * An implementation of this interface is notified about the traversal of the design space from every traversing thread, + * if registered to the {@link DesignSpaceExplorer}. Its purpose is to able to visualize the design space (a directed + * graph with IDs of the nodes and transitions) and to able to visualize the order of the exploration (the trace of a + * thread). + * + * @author Andras Szabolcs Nagy + * + */ +public interface IDesignSpaceVisualizer extends IExploreEventHandler { + + /** + * Initializes the instance with a starting thread's context. Can be called multiple times and concurrently. + * + * @see DesignSpaceVisualizerOptions + * @param context + */ + void init(ThreadContext context); + + /** + * Saves the captured data. + */ + void save(); + +} -- cgit v1.2.3-54-g00ecf