|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FSAState
The interface defining a representation of a state in a finite state automaton.
| Method Summary | |
|---|---|
void |
addIncomingTransition(FSATransition t)
Adds a transition that ends in this state. |
void |
addOutgoingTransition(FSATransition t)
Adds a transition that originates from this state. |
int |
getIncomingTransitionsCount()
Returns the number of transitions ending in this state. |
java.util.ListIterator<FSATransition> |
getIncomingTransitionsListIterator()
Returns an iterator for the transitions ending in this state. |
java.lang.String |
getName()
Gets the name of the state |
int |
getOutgoingTransitionsCount()
Returns the number of transitions originating from this state. |
java.util.ListIterator<FSATransition> |
getOutgoingTransitionsListIterator()
Returns an iterator for the transitions originating from this state. |
boolean |
isInitial()
Returns true iff this is an initial state. |
boolean |
isMarked()
Returns true iff this is a marked (final) state. |
void |
removeIncomingTransition(FSATransition t)
Removes a transition that ends in this state. |
void |
removeOutgoingTransition(FSATransition t)
Removes a transition that originates from this state. |
void |
setInitial(boolean b)
Sets the "initial" property of the state. |
void |
setMarked(boolean b)
Sets the "marked" property of the state. |
void |
setName(java.lang.String name)
Sets an annotation for the name of the state |
| Methods inherited from interface ides.api.plugin.model.DESElement |
|---|
getId, setId |
| Methods inherited from interface ides.api.core.Annotable |
|---|
getAnnotation, hasAnnotation, removeAnnotation, setAnnotation |
| Method Detail |
|---|
java.lang.String getName()
void setName(java.lang.String name)
name - , the name for the Stringvoid addOutgoingTransition(FSATransition t)
t - the transition to be addedvoid removeOutgoingTransition(FSATransition t)
t - the transition to be removedjava.util.ListIterator<FSATransition> getOutgoingTransitionsListIterator()
int getOutgoingTransitionsCount()
void addIncomingTransition(FSATransition t)
t - the transition to be added.void removeIncomingTransition(FSATransition t)
t - the transition to be removed.java.util.ListIterator<FSATransition> getIncomingTransitionsListIterator()
int getIncomingTransitionsCount()
boolean isInitial()
boolean isMarked()
void setInitial(boolean b)
b - true if state to become initial, false otherwisevoid setMarked(boolean b)
b - true if state to become marked, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||