|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--Distribuer
Effectue la distrubution et la capture des graine en affichant chaque etape avec des animations
Field Summary | |
private int |
_depart
indice de la case jouee |
private InterUtil |
_interUtil
interUtil courant |
private int[] |
_plateau
le plateau sur lequel il fait la distribution |
private int[] |
_reserves
les reserves sur lesquels il fait l'anime |
private static Semaphore |
_s
semaphore d'exclusion mutuelle |
private int |
_tour
indique a qui c'est le tour |
Fields inherited from class java.lang.Thread |
contextClassLoader,
daemon,
eetop,
group,
inheritedAccessControlContext,
MAX_PRIORITY,
MIN_PRIORITY,
name,
NORM_PRIORITY,
priority,
single_step,
stillborn,
stopThreadPermission,
target,
threadInitNumber,
threadQ,
values |
Constructor Summary | |
Distribuer(int[] plateau,
int[] reserves,
int depart,
InterUtil interUtil,
int tour)
constructeur de Distribuer |
Method Summary | |
void |
capture(int fin,
int nb_min_graine,
int nb_max_graine)
effectue la capture de graines avec animations |
void |
run()
effectue la distribution et la capture etape par etape, en faisant les animations |
Methods inherited from class java.lang.Thread |
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
private int[] _plateau
private int[] _reserves
private int _depart
private InterUtil _interUtil
private int _tour
private static Semaphore _s
Constructor Detail |
public Distribuer(int[] plateau, int[] reserves, int depart, InterUtil interUtil, int tour)
Method Detail |
public void run()
public void capture(int fin, int nb_min_graine, int nb_max_graine)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |