|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
sims.mar.MachineARegistre
public class MachineARegistre
Control le programme de la machine à registre (Simulateur) Appeler la methode start pour demarrer la machine dans un nouveau thread
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
Programme |
myProgramme
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Fields inherited from interface sims.InterfaceSimulation |
---|
VITESSES |
Constructor Summary | |
---|---|
MachineARegistre()
|
Method Summary | |
---|---|
void |
arreter()
|
void |
attendreLaFin()
Attend la fin de l'execution de la machine |
void |
charger(java.io.File file)
Charge un fichier |
void |
charger(java.lang.String fileName)
|
void |
decharger()
|
void |
decVitesse()
|
void |
demarrer()
|
boolean |
estArrete()
|
java.lang.String |
getNom()
|
java.util.Collection |
getPointArret()
|
Programme |
getProgramme()
|
int |
getVitesse()
|
void |
incVitesse()
|
void |
prochainPas()
|
void |
reinitialiser()
|
void |
run()
Lance la machine Pour savoir quand l'execution est terminé utiliser @see #attendreLaFin() La machine s'arrete si elle arrive sur un point d'arret elle repare quand on appel la methode reprendre |
void |
setAction(ActionMAR action)
|
void |
tuer()
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Programme myProgramme
Constructor Detail |
---|
public MachineARegistre()
Method Detail |
---|
public java.lang.String getNom()
getNom
in interface InterfaceSimulation
public int getVitesse()
getVitesse
in interface InterfaceSimulation
public java.util.Collection getPointArret()
public Programme getProgramme()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void setAction(ActionMAR action)
public void decharger()
public void charger(java.io.File file) throws java.io.IOException, ExceptionCompilation
path
- chemin du fichier
java.io.IOException
ExceptionCompilation
public void charger(java.lang.String fileName) throws java.io.IOException, ExceptionCompilation
java.io.IOException
ExceptionCompilation
public void tuer()
public boolean estArrete()
public void demarrer()
demarrer
in interface InterfaceSimulation
public void arreter()
arreter
in interface InterfaceSimulation
public void reinitialiser()
reinitialiser
in interface InterfaceSimulation
public void prochainPas()
prochainPas
in interface InterfaceSimulation
public void incVitesse()
incVitesse
in interface InterfaceSimulation
public void decVitesse()
decVitesse
in interface InterfaceSimulation
public void attendreLaFin() throws java.lang.InterruptedException
java.lang.InterruptedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |