Référence de la classe Node

Graphe de collaboration de Node:

Collaboration graph
[légende]

Liste de tous les membres


Description détaillée

Classe utilisée pour le test doTreads.

Il s'agit d'un des noeuds de l'anneau de messagerie.

Fonctions membres publiques

void injectSignal (int signal)
void initialize (int signal)
void start ()
void run ()
void setNextNode (Node nextNode)

Attributs publics

int received = 0

Attributs publics statiques

static ArrayList ALIVES = new ArrayList ()


Documentation des fonctions membres

void injectSignal ( int  signal  ) 

00025     {
00026       lock (tagazok) {
00027         this.signal = signal;
00028         this.received++;
00029         Monitor.Pulse (tagazok);
00030       }
00031     }

Voici le graphe d'appel pour cette fonction :

void initialize ( int  signal  ) 

00033     {
00034       this.signal = signal;
00035       this.signal--;
00036       nextNode.injectSignal (signal);
00037       run ();
00038     }

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void start (  ) 

00050     {
00051       Thread thread = new Thread (new ThreadStart (run));
00052 
00053       thread.Start ();
00054     }

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void run (  ) 

00057     {
00058       lock (ALIVES) {
00059         ALIVES.Add (this);
00060       }
00061       while (signal >= 0) {
00062         this.relaySignal ();
00063       }
00064     }

Voici le graphe d'appel pour cette fonction :

void setNextNode ( Node  nextNode  ) 

00067     {
00068       this.nextNode = nextNode;
00069     }

Voici le graphe d'appel pour cette fonction :


Documentation des données membres

int received = 0

ArrayList ALIVES = new ArrayList () [static]


La documentation de cette classe a été générée à partir du fichier suivant :

Généré le Fri Jun 27 14:52:53 2008 par  doxygen 1.5.5