1 /*******************************************************************************
\r
2 * Copyright (c) 2007 VTT Technical Research Centre of Finland and others.
\r
3 * All rights reserved. This program and the accompanying materials
\r
4 * are made available under the terms of the Eclipse Public License v1.0
\r
5 * which accompanies this distribution, and is available at
\r
6 * http://www.eclipse.org/legal/epl-v10.html
\r
9 * VTT Technical Research Centre of Finland - initial API and implementation
\r
10 *******************************************************************************/
\r
11 package org.simantics.simulation.data;
\r
13 import org.simantics.databoard.accessor.error.AccessorException;
\r
14 import org.simantics.databoard.binding.Binding;
\r
17 * A handle to a variable of a {@link Datasource}.
\r
19 * @author Toni Kalajainen <toni.kalajainen@vtt.fi>
\r
21 public interface VariableHandle {
\r
24 * @return key (ID) of the variable
\r
29 * @return binding for the variable
\r
34 * @return current value associated with this handle
\r
35 * @throws AccessorException if value cannot be retrieved
\r
37 Object getValue() throws AccessorException;
\r
40 * Frees any resource related to this handle.
\r