1 /*******************************************************************************
2 * Copyright (c) 2018 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 * Semantum Oy - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.simulator;
14 import org.simantics.databoard.binding.Binding;
16 public interface IDynamicExperimentLocal extends IExperimentLocal {
19 * Starts or stops simulation depending on the
22 public void simulate(boolean enabled);
25 * Simulates the experiment at lest the given period of time.
26 * Giving 0 as parameter simulates the experiment one 'step'.
27 * After the duration, the simulation is stopped.
29 public void simulateDuration(double duration);
31 void setVariableValueById(String id, Object value, Binding binding);
32 Object getVariableValueById(String id);
34 double getSimulationTime();