|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsims.mar.Graphe
sims.mar.Programme
public class Programme
Programme de la machine à registre
Constructor Summary | |
---|---|
Programme()
|
Method Summary | |
---|---|
void |
allerPremiereInstruction()
Saute à la preimer instruction (debut) |
java.util.Collection |
arcs()
inplementation de l'interface GrapheInterface pour l'affichage du graphe |
Instruction |
getInstructionCourante()
|
int |
getNbrArc()
Gives the number of edges in the graph, equals to the number of instructions of a Turing Machine. |
int |
getNbrEtat()
Gives the number of states of the machine, hence the number of vertices in the graph. |
int |
getNbrRegistre()
|
Instruction |
getPremiereInstruction()
|
java.lang.Object |
getRacine()
Gives the root state of a machine, the start vertex in the graph. |
Registre |
getRegistre(int indice)
|
java.util.Collection |
getRegistres()
|
void |
prochaineInstruction()
Executre l'intruction courante, est saute à la prochaine instruction |
Methods inherited from class sims.mar.Graphe |
---|
ajouterArete, ajouterSommet, clear, getSommets, getSuccesseurs |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Programme()
Method Detail |
---|
public Instruction getPremiereInstruction()
public void prochaineInstruction() throws ExceptionPasDeSuccesseur
java.lang.Exception
- Lorsque la fin du programme est atteinte
ExceptionPasDeSuccesseur
public Instruction getInstructionCourante()
public java.util.Collection getRegistres()
public Registre getRegistre(int indice)
public int getNbrRegistre()
public void allerPremiereInstruction()
public java.util.Collection arcs()
arcs
in interface GrapheInterface
Arc.java
public int getNbrEtat()
GrapheInterface
getNbrEtat
in interface GrapheInterface
public int getNbrArc()
GrapheInterface
getNbrArc
in interface GrapheInterface
public java.lang.Object getRacine()
GrapheInterface
getRacine
in interface GrapheInterface
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |