blob: 3054083b37aeb9c17c39657b5e87152bc6ca9226 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/*******************************************************************************
* Copyright (c) 2013 Wind River Systems, Inc. and others. 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:
* Wind River Systems - initial API and implementation
*******************************************************************************/
package org.eclipse.tcf.te.runtime.services.interfaces;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.tcf.te.runtime.interfaces.callback.ICallback;
/**
* Simulator service.
* <p>
* Allows to start/stop external simulators.
* <p>
* Simulator instance related UI parts, like configuration panels, are retrieved
* by clients via the {@link IUIService}.
*/
public interface ISimulatorService extends IService {
/**
* Starts the simulator.
*
* @param context The context. Must not be <code>null</code>.
* @param settings The encoded simulator settings or <code>null</code>.
* @param callback The callback to invoke once the operation finishes. Must not be <code>null</code>.
* @param monitor The progress monitor or <code>null</code>.
*/
public void start(Object context, String settings, ICallback callback, IProgressMonitor monitor);
/**
* Stops the simulator.
*
* @param context The context. Must not be <code>null</code>.
* @param settings The encoded simulator settings or <code>null</code>.
* @param callback The callback to invoke once the operation finishes. Must not be <code>null</code>.
* @param monitor The progress monitor or <code>null</code>.
*/
public void stop(Object context, String settings, ICallback callback, IProgressMonitor monitor);
/**
* Checks if the simulator is running.
* <p>
* The result of the check is return as {@link Boolean} object by the callback's {@link ICallback#getResult()} method.
*
* @param context The context. Must not be <code>null</code>.
* @param settings The encoded simulator settings or <code>null</code>.
* @param callback The callback to invoke once the operation finishes. Must not be <code>null</code>.
*/
public void isRunning(Object context, String settings, ICallback callback);
}
|