]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.simulator.variable/src/org/simantics/simulator/variable/Realm.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.simulator.variable / src / org / simantics / simulator / variable / Realm.java
index b3ecdeec3a11b2d6213fbbb21ddc50e854cbb060..849bfe0d49950a50cb8d175396744d9750e37b44 100644 (file)
@@ -1,41 +1,41 @@
-/*******************************************************************************\r
- * Copyright (c) 2013 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *     Semantum Oy - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.simulator.variable;\r
-\r
-/**\r
- * Realm controls access to some local resource.\r
- * \r
- * @author Hannu Niemistö\r
- * @author Antti Villberg\r
- */\r
-public interface Realm {\r
-\r
-    /**\r
-     * Executes the given runnable in this realm synchronously so that the method\r
-     * returns only after the runnable has finished. Can be called only when not \r
-     * inside the realm. Calling the method in the realm either causes \r
-     * a deadlock or {@link IllegalStateException}. \r
-     * @throws InterruptedException \r
-     */\r
-       void syncExec(Runnable runnable) throws InterruptedException;\r
-       \r
-    /**\r
-     * Executes the runnable in this realm asynchronously.\r
-     * This method can be called freely inside or outside of the realm. \r
-     * When executed inside the realm it is guaranteed that no \r
-     * internal event (for example a simulator step) is taken before\r
-     * executing the runnable.\r
-     */\r
-       void asyncExec(Runnable runnable);\r
-       \r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2013 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
+ *     Semantum Oy - initial API and implementation
+ *******************************************************************************/
+package org.simantics.simulator.variable;
+
+/**
+ * Realm controls access to some local resource.
+ * 
+ * @author Hannu Niemistö
+ * @author Antti Villberg
+ */
+public interface Realm {
+
+    /**
+     * Executes the given runnable in this realm synchronously so that the method
+     * returns only after the runnable has finished. Can be called only when not 
+     * inside the realm. Calling the method in the realm either causes 
+     * a deadlock or {@link IllegalStateException}. 
+     * @throws InterruptedException 
+     */
+       void syncExec(Runnable runnable) throws InterruptedException;
+       
+    /**
+     * Executes the runnable in this realm asynchronously.
+     * This method can be called freely inside or outside of the realm. 
+     * When executed inside the realm it is guaranteed that no 
+     * internal event (for example a simulator step) is taken before
+     * executing the runnable.
+     */
+       void asyncExec(Runnable runnable);
+       
+}