X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.simulation%2Fsrc%2Forg%2Fsimantics%2Fsimulation%2Fexperiment%2FIDynamicExperiment.java;h=19dba1ee9669feef5097d94a347f1e239ef9c6df;hb=14a4f7a9d486fba5be815e511fb2a497fca4eb70;hp=6c5e60ee5e50d3a7541520534f4b04f2f7ca833b;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.simulation/src/org/simantics/simulation/experiment/IDynamicExperiment.java b/bundles/org.simantics.simulation/src/org/simantics/simulation/experiment/IDynamicExperiment.java index 6c5e60ee5..19dba1ee9 100644 --- a/bundles/org.simantics.simulation/src/org/simantics/simulation/experiment/IDynamicExperiment.java +++ b/bundles/org.simantics.simulation/src/org/simantics/simulation/experiment/IDynamicExperiment.java @@ -1,54 +1,54 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * 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: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.simulation.experiment; - -import org.simantics.simulation.data.Datasource; - -/** - * An experiment that evolves in time. - */ -public interface IDynamicExperiment extends IExperiment { - - /** - * Starts or stops simulation depending on the - * parameter. - */ - public void simulate(boolean enabled); - - /** - * Simulates the experiment at lest the given period of time. - * Giving 0 as parameter simulates the experiment one 'step'. - * After the duration, the simulation is stopped. - */ - public void simulateDuration(double duration); - - /** - * Sets the simulation time to some time instance before - * the given time. Simulator continues running if it - * was already running before rewind. Many simulators don't - * support arbitrary rewinds and therefore reinitialize - * simulation and begin at zero. - */ - public void rewindTo(double time); - - /** - * Ensure that the current state of the experiment at the time of invocation - * is stored so that it can be returned to during a later session. - */ - void saveState(); - - /** - * Get data source for history collection purposes. - */ - Datasource getDatasource(); - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * 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: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.simulation.experiment; + +import org.simantics.simulation.data.Datasource; + +/** + * An experiment that evolves in time. + */ +public interface IDynamicExperiment extends IExperiment { + + /** + * Starts or stops simulation depending on the + * parameter. + */ + public void simulate(boolean enabled); + + /** + * Simulates the experiment at lest the given period of time. + * Giving 0 as parameter simulates the experiment one 'step'. + * After the duration, the simulation is stopped. + */ + public void simulateDuration(double duration); + + /** + * Sets the simulation time to some time instance before + * the given time. Simulator continues running if it + * was already running before rewind. Many simulators don't + * support arbitrary rewinds and therefore reinitialize + * simulation and begin at zero. + */ + public void rewindTo(double time); + + /** + * Ensure that the current state of the experiment at the time of invocation + * is stored so that it can be returned to during a later session. + */ + void saveState(); + + /** + * Get data source for history collection purposes. + */ + Datasource getDatasource(); + +}