1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 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 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.simulation.experiment;
14 import org.simantics.simulation.data.Datasource;
17 * An experiment that evolves in time.
19 public interface IDynamicExperiment extends IExperiment {
22 * Starts or stops simulation depending on the
25 public void simulate(boolean enabled);
28 * Simulates the experiment at lest the given period of time.
29 * Giving 0 as parameter simulates the experiment one 'step'.
30 * After the duration, the simulation is stopped.
32 public void simulateDuration(double duration);
35 * Sets the simulation time to some time instance before
36 * the given time. Simulator continues running if it
37 * was already running before rewind. Many simulators don't
38 * support arbitrary rewinds and therefore reinitialize
39 * simulation and begin at zero.
41 public void rewindTo(double time);
44 * Ensure that the current state of the experiment at the time of invocation
45 * is stored so that it can be returned to during a later session.
50 * Get data source for history collection purposes.
52 Datasource getDatasource();