|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a state of an automaton created via the automaton's addState method.
Copyright: Copyright (c) 2002
Company: B?ro f?r Softwarearchitektur www.karneim.com
Nested Class Summary | |
static interface |
IStatePro.IChangeListener
The listener interface for receiving change events of an IStatePro. |
static interface |
IStatePro.ITransition
|
static interface |
IStatePro.IVisitListener
The listener interface for receiving visit events of an IStatePro. |
Method Summary | |
void |
addChangeListener(IStatePro.IChangeListener listener)
|
IStatePro.ITransition |
addTransition(ISet_char charSet,
IStatePro toState)
Adds a new transition to this state. |
void |
addVisitListener(IStatePro.IVisitListener listener)
|
StateProSet |
getAllReachableStates()
Returns all states that are reachable from this state through it's transitions and so on. |
IStatePro.ITransition[] |
getAllTransitions()
|
IStatePro.ITransition[] |
getETransitions()
|
int |
getStateNumber()
|
IStatePro.ITransition[] |
getTransitions()
|
boolean |
isFinal()
|
void |
removeAllTransitions()
|
boolean |
removeChangeListener(IStatePro.IChangeListener listener)
|
boolean |
removeTransition(IStatePro.ITransition transition)
Removes the specified transition from this state. |
boolean |
removeVisitListener(IStatePro.IVisitListener listener)
|
void |
setFinal(boolean isFinal)
Makes this state final or non final. |
IState |
visit()
Visits this state with an epsilon transition and returns its epsilon closure. |
Method Detail |
public void addVisitListener(IStatePro.IVisitListener listener)
public boolean removeVisitListener(IStatePro.IVisitListener listener)
public void addChangeListener(IStatePro.IChangeListener listener)
public boolean removeChangeListener(IStatePro.IChangeListener listener)
public boolean isFinal()
public void setFinal(boolean isFinal)
public IStatePro.ITransition addTransition(ISet_char charSet, IStatePro toState)
charSet
and it's destionation
state toState
, so that you can transit from this state to the destination state
only with a character contained in charSet
. There is only one exception,
if charSet
is null, an epsilon transition will be added, which means that there
are no chars needed to get to the destinationState toState
; in other words a
state that has an epsilon transition can get through this epsilon transition to the destination
state toState
without any char, so that we can say that toState
melts
into the state.
charSet
- the characters for this transitiontoState
- the destination state where to transit to
public boolean removeTransition(IStatePro.ITransition transition)
transition
-
public void removeAllTransitions()
public IStatePro.ITransition[] getTransitions()
public IStatePro.ITransition[] getETransitions()
public IStatePro.ITransition[] getAllTransitions()
public StateProSet getAllReachableStates()
public IState visit()
public int getStateNumber()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |