|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.utils.AbstractState<StateType,RuntimeException>
org.opcfoundation.ua.utils.State<StateType>
public class State<StateType>
State class.
| Constructor Summary | |
|---|---|
State(StateType initialState)
Constructor for State. |
|
| Method Summary | |
|---|---|
void |
assertNoError()
assertNoError. |
StateType |
attemptSetState(Set<StateType> prerequisiteState,
StateType newState)
attemptSetState. |
protected void |
clearError()
clearError. |
void |
setError(RuntimeException error)
setError. |
boolean |
setState(StateType state)
setState. |
StateType |
setState(StateType state,
Executor listenerExecutor,
Set<StateType> prerequisiteStates)
Set state |
| Methods inherited from class org.opcfoundation.ua.utils.AbstractState |
|---|
addStateListener, addStateNotifiable, getError, getState, hasError, isStateTransitionAllowed, onListenerException, onStateTransition, removeStateListener, removeStateNotifiable, waitForState, waitForState, waitForStateUninterruptibly |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public State(StateType initialState)
Constructor for State.
initialState - a StateType object.| Method Detail |
|---|
public boolean setState(StateType state)
setState.
setState in class AbstractState<StateType,RuntimeException>state - a StateType object.
public StateType setState(StateType state,
Executor listenerExecutor,
Set<StateType> prerequisiteStates)
setState in class AbstractState<StateType,RuntimeException>state - a StateType object.listenerExecutor - executor for post listener handling or null for immediateprerequisiteStates - old state prerequisite or null
public void setError(RuntimeException error)
setError.
setError in class AbstractState<StateType,RuntimeException>error - a RuntimeException object.
public StateType attemptSetState(Set<StateType> prerequisiteState,
StateType newState)
attemptSetState.
attemptSetState in class AbstractState<StateType,RuntimeException>prerequisiteState - a Set object.newState - a StateType object.
public void assertNoError()
throws RuntimeException
assertNoError.
assertNoError in class AbstractState<StateType,RuntimeException>RuntimeExceptionprotected void clearError()
clearError.
clearError in class AbstractState<StateType,RuntimeException>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||