T
- Type of the input eventspublic class State<T> extends Object implements Serializable
NFA
.
Each state is identified by a name and a state type. Furthermore, it contains a collection of state transitions. The state transitions describe under which conditions it is possible to enter a new state.
Modifier and Type | Class and Description |
---|---|
static class |
State.StateType
Set of valid state types.
|
Constructor and Description |
---|
State(String name,
State.StateType stateType) |
Modifier and Type | Method and Description |
---|---|
void |
addIgnore(IterativeCondition<T> condition) |
void |
addIgnore(State<T> targetState,
IterativeCondition<T> condition) |
void |
addProceed(State<T> targetState,
IterativeCondition<T> condition) |
void |
addStateTransition(StateTransitionAction action,
State<T> targetState,
IterativeCondition<T> condition) |
void |
addTake(IterativeCondition<T> condition) |
void |
addTake(State<T> targetState,
IterativeCondition<T> condition) |
boolean |
equals(Object obj) |
String |
getName() |
Collection<StateTransition<T>> |
getStateTransitions() |
State.StateType |
getStateType() |
int |
hashCode() |
boolean |
isFinal() |
boolean |
isStart() |
boolean |
isStop() |
void |
makeStart() |
String |
toString() |
public State(String name, State.StateType stateType)
public State.StateType getStateType()
public boolean isFinal()
public boolean isStart()
public String getName()
public Collection<StateTransition<T>> getStateTransitions()
public void makeStart()
public void addStateTransition(StateTransitionAction action, State<T> targetState, IterativeCondition<T> condition)
public void addIgnore(IterativeCondition<T> condition)
public void addIgnore(State<T> targetState, IterativeCondition<T> condition)
public void addTake(State<T> targetState, IterativeCondition<T> condition)
public void addProceed(State<T> targetState, IterativeCondition<T> condition)
public void addTake(IterativeCondition<T> condition)
public boolean isStop()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.