]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.simulator/src/org/simantics/simulator/IExperimentLocal.java
Simulator toolkit enhancements
[simantics/platform.git] / bundles / org.simantics.simulator / src / org / simantics / simulator / IExperimentLocal.java
1 /*******************************************************************************
2  * Copyright (c) 2018 Association for Decentralized Information Management
3  * in Industry THTH ry.
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
8  *
9  * Contributors:
10  *     Semantum Oy - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.simulator;
13
14 import org.eclipse.core.runtime.IProgressMonitor;
15
16 public interface IExperimentLocal {
17
18     <T> T getService(Class<T> clazz);
19
20     String getIdentifier();
21
22     /**
23      * @param monitor
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.
29      */
30     void shutdown(IProgressMonitor monitor);
31
32     ExperimentState getStateL();
33     void changeStateL(ExperimentState state);
34
35 }