--- /dev/null
+/*******************************************************************************\r
+ * Copyright (c) 2007, 2010 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
+ *******************************************************************************/\r
+\r
+package org.simantics.utils.threads.ua;\r
+\r
+/**\r
+ *\r
+ * \r
+ * @author Toni Kalajainen (toni.kalajainen@vtt.fi)\r
+ */\r
+public class State<StateType> extends AbstractState<StateType, RuntimeException> {\r
+\r
+ public State(StateType initialState) {\r
+ super(initialState);\r
+ }\r
+ \r
+ public boolean setState(StateType state) {\r
+ return super.setState(state);\r
+ }\r
+ \r
+ public StateType setState(StateType state, java.util.concurrent.Executor listenerExecutor, java.util.Set<StateType> prerequisiteStates) {\r
+ return super.setState(state, listenerExecutor, prerequisiteStates);\r
+ };\r
+ \r
+ public void setError(RuntimeException error) {\r
+ super.setError(error);\r
+ }\r
+ \r
+ public StateType attemptSetState(java.util.Set<StateType> prerequisiteState, StateType newState) {\r
+ return super.attemptSetState(prerequisiteState, newState);\r
+ }\r
+ \r
+ @Override\r
+ public void assertNoError() throws RuntimeException {\r
+ super.assertNoError();\r
+ }\r
+ \r
+ @Override\r
+ protected void clearError() {\r
+ super.clearError();\r
+ }\r
+\r
+}\r