|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.simulator.launcher.SimulationService.PrepareSimulationJob
public static class SimulationService.PrepareSimulationJob
Permet de genere les sous simulations d'un plan d'analyse. Pour les
plan independant, on l'utilise en Runnable pour genere tous les plans
possible et les soumettre a la queue. Pour les plans dependant
on l'utilise seulement comme iterator. La methode afterSimulation des plans
est appelee automatiquement a la fin de la simulation grace au mecanisme
de PostAction sur les SimulationJob.
| Field Summary | |
|---|---|
protected SimulationControl |
control
|
protected int |
done
|
protected boolean |
doNext
|
protected String |
id
|
protected SimulationJob |
job
|
protected SimulationJob |
nextJob
|
protected SimulationParameter |
param
|
protected AnalysePlanContext |
planContext
|
protected SimulationService |
simulationService
|
| Constructor Summary | |
|---|---|
SimulationService.PrepareSimulationJob(SimulationService simulationService,
SimulationJob job)
|
|
| Method Summary | |
|---|---|
void |
exception(SimulationJob job,
Throwable eee)
Appeler lorsque la simulation a echoué. |
void |
finished(SimulationJob job,
SimulationStorage sim)
Appelé lorsque la simulation s'arrete normalement. |
boolean |
hasNext()
Indique s'il y a encore des simulations dans le plan. |
SimulationJob |
next()
|
void |
remove()
|
void |
run()
Genere toutes les sous simulations et les places dans la queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SimulationService simulationService
protected AnalysePlanContext planContext
protected SimulationJob job
protected SimulationJob nextJob
protected boolean doNext
protected String id
protected SimulationControl control
protected SimulationParameter param
protected int done
| Constructor Detail |
|---|
public SimulationService.PrepareSimulationJob(SimulationService simulationService,
SimulationJob job)
| Method Detail |
|---|
public void run()
run() est appelée seulement dans le cas de la
génération de plans indépendants.
run in interface Runnablepour les plans dépendantspublic boolean hasNext()
SimulationService.MAX_PLAN_SIMULATION
hasNext in interface Iterator<SimulationJob>public SimulationJob next()
next in interface Iterator<SimulationJob>public void remove()
remove in interface Iterator<SimulationJob>
public void finished(SimulationJob job,
SimulationStorage sim)
SimulationJob.PostAction
finished in interface SimulationJob.PostActionjob - le job qui a fait la simulationsim - la simulation qui vient d'etre faite
public void exception(SimulationJob job,
Throwable eee)
SimulationJob.PostAction
exception in interface SimulationJob.PostActionjob - le job qui a fait la simulationeee - l'exception qui a ete levee
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||