]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.utils.thread/src/org/simantics/utils/threads/ua/State.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.utils.thread / src / org / simantics / utils / threads / ua / State.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
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
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12
13 package org.simantics.utils.threads.ua;
14
15 /**
16  *
17  * 
18  * @author Toni Kalajainen (toni.kalajainen@vtt.fi)
19  */
20 public class State<StateType> extends AbstractState<StateType, RuntimeException> {
21
22         public State(StateType initialState) {
23                 super(initialState);
24         }
25         
26         public boolean setState(StateType state) {
27                 return super.setState(state);
28         }
29         
30         public StateType setState(StateType state, java.util.concurrent.Executor listenerExecutor, java.util.Set<StateType> prerequisiteStates) {
31                 return super.setState(state, listenerExecutor, prerequisiteStates);
32         };
33         
34         public void setError(RuntimeException error) {
35                 super.setError(error);
36         }
37         
38         public StateType attemptSetState(java.util.Set<StateType> prerequisiteState, StateType newState) {
39                 return super.attemptSetState(prerequisiteState, newState);
40         }
41         
42         @Override
43         public void assertNoError() throws RuntimeException {
44                 super.assertNoError();
45         }
46         
47         @Override
48         protected void clearError() {
49                 super.clearError();
50         }
51
52 }