Class LoopSimModelRunProcessor
java.lang.Object
net.simplace.pipe.control.FWProcessor
net.simplace.pipe.control.FWLoopProcessor
net.simplace.client.sim.processors.LoopSimModelRunProcessor
- All Implemented Interfaces:
EventListener, net.simplace.sim.event.FWSimulationListener
public class LoopSimModelRunProcessor
extends FWLoopProcessor
implements net.simplace.sim.event.FWSimulationListener
- Author:
- Andreas Enders
-
Field Summary
Fields inherited from class FWLoopProcessor
iLoopCount, iLoopMap, iLoopPipeId, iSeparateRunsFields inherited from class FWProcessor
iAllreadyLoopedCount, iContainer, iInObservable, iObservable, iProgressTasks -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new instance of the same class with the same container, configuration, if-expression and end-of-pipe flag.Adds a clone of the first progress task (for a further loop).voidInitialises the loop count (fromrunCount, with parameter tokens replaced) and theseparateLoopsflag.voiditerationEnded(net.simplace.sim.event.FWSimulationEvent<net.simplace.sim.control.FWSimulationControlCache> aEvent) protected booleanprocess()Must be overridden to implement the concrete processing step.voidprojectEnded(net.simplace.sim.event.FWSimulationEvent<net.simplace.sim.FWSimProject> aEvent) voidsimulationEnded(net.simplace.sim.event.FWSimulationEvent<net.simplace.sim.model.FWSimModel> aEvent) voidsimulationErrored(net.simplace.sim.event.FWSimulationErrorEvent aEvent) voidsimulationStarted(net.simplace.sim.event.FWSimulationEvent<net.simplace.sim.model.FWSimModel> aEvent) Methods inherited from class FWLoopProcessor
checkInParameterMap, checkOutParameterMap, getLoopCount, getLoopMap, getLoopPipeID, interveneRunLoop, runLoopMethods inherited from class FWProcessor
containsParameter, createProcessor, createProcessor, fireTaskEvent, getAllStringInParameters, getConfiguration, getInitialParameters, getInParameter, getInParameter, getInParameters, getOutParameter, getOutParameterKeys, getPipeLine, getProgressTask, getStringInParameter, getStringInParameter, getSystemID, hasConfiguration, isEndOfPipe, pipe, removeOutParameter, setConfiguration, setEndOfPipeFlag, setInitialParameters, setInParameterMap, setLoopedCount, setOutParameter, setStateOfTask, setStateProgressing, toXML
-
Constructor Details
-
LoopSimModelRunProcessor
public LoopSimModelRunProcessor()
-
-
Method Details
-
process
Description copied from class:FWProcessorMust be overridden to implement the concrete processing step. Reads from the in parameters and writes results withFWProcessor.setOutParameter(String, Object).- Specified by:
processin classFWProcessor- Returns:
trueon success;falsemakesFWProcessor.pipe(FWObservable, Integer)fail- Throws:
PipeLineException- if processing fails- See Also:
-
getNewProgressTask
Description copied from class:FWProcessorAdds a clone of the first progress task (for a further loop). Synchronized on the task list, which is shared with the clones of this processor (seeFWProcessor.clone()).- Overrides:
getNewProgressTaskin classFWProcessor- Returns:
- the new progress task, or
nullif the processor has no progress task
-
initLoop
Description copied from class:FWLoopProcessorInitialises the loop count (fromrunCount, with parameter tokens replaced) and theseparateLoopsflag. Called when the processor is created.- Overrides:
initLoopin classFWLoopProcessor- Parameters:
aParameterMap- parameters of the container plus the initial parameters of the processor
-
clone
Description copied from class:FWProcessorCreates a new instance of the same class with the same container, configuration, if-expression and end-of-pipe flag. The list of progress tasks and the map of initial parameters are shared with the original on purpose: the progress view adds one task per clone to the shared list (FWProcessor.getNewProgressTask()), and each clone uses its task by its loop count; access to the list is synchronized. The initial parameters are not changed after the pipeline is created.- Overrides:
clonein classFWLoopProcessor
-
simulationStarted
public void simulationStarted(net.simplace.sim.event.FWSimulationEvent<net.simplace.sim.model.FWSimModel> aEvent) - Specified by:
simulationStartedin interfacenet.simplace.sim.event.FWSimulationListener
-
simulationEnded
public void simulationEnded(net.simplace.sim.event.FWSimulationEvent<net.simplace.sim.model.FWSimModel> aEvent) - Specified by:
simulationEndedin interfacenet.simplace.sim.event.FWSimulationListener
-
simulationErrored
public void simulationErrored(net.simplace.sim.event.FWSimulationErrorEvent aEvent) - Specified by:
simulationErroredin interfacenet.simplace.sim.event.FWSimulationListener
-
projectEnded
public void projectEnded(net.simplace.sim.event.FWSimulationEvent<net.simplace.sim.FWSimProject> aEvent) - Specified by:
projectEndedin interfacenet.simplace.sim.event.FWSimulationListener
-
iterationEnded
public void iterationEnded(net.simplace.sim.event.FWSimulationEvent<net.simplace.sim.control.FWSimulationControlCache> aEvent) - Specified by:
iterationEndedin interfacenet.simplace.sim.event.FWSimulationListener
-