|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--algod.SommetAbstract | +--algod.SommetIO | +--algod.SommetElection | +--algod.SommetArbreCouvrant | +--algod.SommetNumProfondeur | +--algod.SommetColoration | +--algod.SommetColorationAsynch1 | +--algod.Sommet
Défini pour un sommet les méthodes propres aux threads. Sommet complètement défini.
Field Summary | |
private GrapheInterface |
arretNotify
Contrôleur à prévenir lors de la destruction effective de ce Sommet(Thread). |
(package private) boolean |
tourne
Indique si le thread est en cours d'exécution |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
Sommet(int couleur,
int identifiant)
|
Method Summary | |
void |
arrete(GrapheInterface arretNotify)
Arrête l'exécution du thread proprement. |
void |
destroy()
Détruit le thread sans préavis. |
java.lang.String |
getLabel()
Texte à afficher pour ce sommet. |
void |
run()
Appelle les méthodes de démarrage parentes, puis boucle tant que tourne
est vrai, en traitant les messages éventuellements en attente. |
java.lang.String |
toString()
Informations sur ce sommet. |
protected void |
traiteReception(AlgoDMessage adm)
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface graphelastic.SommetInterface |
getCouleur, getIdentifiant, isCouleurOfficielle, isElu, isFilsDe |
Field Detail |
boolean tourne
private GrapheInterface arretNotify
Constructor Detail |
public Sommet(int couleur, int identifiant)
Method Detail |
public void destroy()
destroy
in class SommetColoration
arrete(algod.GrapheInterface)
public void arrete(GrapheInterface arretNotify)
destroy()
destroy()
public void run()
tourne
est vrai, en traitant les messages éventuellements en attente.
run
in interface java.lang.Runnable
run
in class java.lang.Thread
tourne
,
SommetIO.algoDMessageFIFO
public java.lang.String getLabel()
getLabel
in interface SommetInterface
protected void traiteReception(AlgoDMessage adm)
public java.lang.String toString()
SommetAbstract
toString
in class SommetColoration
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |