public class StateConfiguration extends Object implements Serializable
Constructor and Description |
---|
StateConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the state configuration
|
void |
enterState(EnterableState state)
Enter an active state
If the state is atomic also record it add it to the current states
|
void |
exitState(EnterableState state)
Exit an active state
If the state is atomic also remove it from current states
|
Set<EnterableState> |
getActiveStates()
Get the active states
|
Set<EnterableState> |
getStates()
Get the current atomic states (leaf only).
|
public StateConfiguration()
public Set<EnterableState> getActiveStates()
public Set<EnterableState> getStates()
public void enterState(EnterableState state)
state
- state to enterpublic void exitState(EnterableState state)
state
- state to exitpublic void clear()
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.