1 /*******************************************************************************
\r
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
\r
3 * in Industry THTH ry.
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.simulation.experiment;
\r
14 import org.simantics.simulation.data.Datasource;
\r
17 * An experiment that evolves in time.
\r
19 public interface IDynamicExperiment extends IExperiment {
\r
22 * Starts or stops simulation depending on the
\r
25 public void simulate(boolean enabled);
\r
28 * Simulates the experiment at lest the given period of time.
\r
29 * Giving 0 as parameter simulates the experiment one 'step'.
\r
30 * After the duration, the simulation is stopped.
\r
32 public void simulateDuration(double duration);
\r
35 * Sets the simulation time to some time instance before
\r
36 * the given time. Simulator continues running if it
\r
37 * was already running before rewind. Many simulators don't
\r
38 * support arbitrary rewinds and therefore reinitialize
\r
39 * simulation and begin at zero.
\r
41 public void rewindTo(double time);
\r
44 * Ensure that the current state of the experiment at the time of invocation
\r
45 * is stored so that it can be returned to during a later session.
\r
50 * Get data source for history collection purposes.
\r
52 Datasource getDatasource();
\r