public class AFD
extends java.lang.Object
AFD
represente un automate fini deterministe. On peut
verifier qu'un mot est reconnu par l'automate et afficher sa representation
au format DOT.Constructor and Description |
---|
AFD(Etat etatInitial,
java.util.ArrayList<Etat> etatsFinaux)
Creer une instance de
AFD . |
AFD(Etat etatInitial,
Etat... etatsFinaux)
Creer une instance de
AFD . |
Modifier and Type | Method and Description |
---|---|
void |
afficher()
Afficher sur la console une representation de l'AFD au
format DOT.
|
boolean |
estReconnu(java.lang.String mot)
Verifier si un mot est reconnu ou non par l'automate.
|
java.lang.String |
toString()
Une representation de l'AFD au format DOT.
|
public AFD(Etat etatInitial, java.util.ArrayList<Etat> etatsFinaux)
AFD
.etatInitial
- l'etat initial de l'automateetatsFinaux
- les etats finaux de l'automate contenus dans une
instance de ArrayList
public boolean estReconnu(java.lang.String mot)
mot
- le mot a reconnaitretrue
si le mot
est reconnu, false
sinonpublic void afficher()
public java.lang.String toString()
toString
in class java.lang.Object