public static class SimulationService.PrepareSimulationJob extends Object implements Runnable, Iterator<SimulationJob>, SimulationJob.PostAction
SimulationJob.| Modifier and Type | Field and Description |
|---|---|
protected SimulationControl |
control |
protected int |
done |
protected boolean |
doNext |
protected String |
id |
protected SimulationJob |
job |
protected SimulationJob |
nextJob |
protected SimulationParameter |
param |
protected SimulationPlanContext |
planContext |
protected List<SimulationPlan> |
simulationPlan |
protected SimulationService |
simulationService |
| Constructor and Description |
|---|
SimulationService.PrepareSimulationJob(SimulationService simulationService,
SimulationJob job) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected SimulationService simulationService
protected SimulationPlanContext planContext
protected SimulationJob job
protected SimulationJob nextJob
protected boolean doNext
protected String id
protected SimulationControl control
protected SimulationParameter param
protected int done
protected List<SimulationPlan> simulationPlan
public SimulationService.PrepareSimulationJob(SimulationService simulationService, SimulationJob job)
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_SIMULATIONhasNext 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.PostActionfinished in interface SimulationJob.PostActionjob - le job qui a fait la simulationsim - la simulation qui vient d'etre faitepublic void exception(SimulationJob job, Throwable eee)
SimulationJob.PostActionexception in interface SimulationJob.PostActionjob - le job qui a fait la simulationeee - l'exception qui a ete leveeCopyright © 1999-2012 CodeLutin. All Rights Reserved.