1 /*******************************************************************************
2 * Copyright (c) 2018 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Semantum Oy - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.simulator;
14 import org.eclipse.core.runtime.IProgressMonitor;
16 public interface IExperimentLocal {
18 <T> T getService(Class<T> clazz);
20 String getIdentifier();
24 * the progress monitor to use for reporting progress to the user
25 * during the operation. It is the caller's responsibility to
26 * call done() on the given monitor. Accepts null, indicating
27 * that no progress should be reported and that the operation
28 * cannot be cancelled.
30 void shutdown(IProgressMonitor monitor);
32 ExperimentState getStateL();
33 void changeStateL(ExperimentState state);