Package net.simplace.pipe.processors
Class LoopScenarioProcessor
java.lang.Object
net.simplace.pipe.control.FWProcessor
net.simplace.pipe.control.FWLoopProcessor
net.simplace.pipe.processors.LoopScenarioProcessor
Looping processors are running a given Pipeline ${PipeID} several times. The number of loops
is given by the central value (see parameterlist). Loops are separated by default
(${separateLoops} (TRUE|FALSE)). For non separated loops all parameter values created in the
pipeline process are written to parameter map.
Within the looped pipeline you can finde the total run count ${runCount} and the run count ${Count}
This looping processor takes the parameter in ${runCount} to get the number of loop couts pipeline.
further parameter: ${startIndex} gives the first index of ${Count}-Parameter in looping pipeline.
Loops the pipeline ${PipeID} through configurations given in Configuration tag. Example:
1
1
6
2
1
10
0.5
1
1
6
2
1
10
0.5
set ${runCount} with sum of all scenarios for giving progressbar possibility to loop it through (in above example 56!.
use ${Count} for getting the Count of the scenario
use ${runInfo} for getting information of the changed parameter-key.
- Author:
- Andreas Enders
-
Field Summary
Fields inherited from class net.simplace.pipe.control.FWLoopProcessor
iLoopCount, iLoopMap, iLoopPipeId, iSeparateRunsFields inherited from class net.simplace.pipe.control.FWProcessor
iAllreadyLoopedCount, iContainer, iInObservable, iObservable, iProgressTasks -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanCan be overridden to perform semantic checks on the pipeline Input.protected booleanCan be overridden to perform semantic checks on the pipeline Input.voidprotected booleaninterveneRunLoop(FWObservable aObservable) overwrite this method to work on parameters before loop runningbooleanprocess()Must be overridden to implement concrete pipe procedure.Methods inherited from class net.simplace.pipe.control.FWLoopProcessor
clone, getLoopCount, getLoopMap, getLoopPipeID, runLoopMethods inherited from class net.simplace.pipe.control.FWProcessor
containsParameter, createProcessor, createProcessor, fireTaskEvent, getAllStringInParameters, getConfiguration, getInitialParameters, getInParameter, getInParameter, getInParameters, getNewProgressTask, getOutParameter, getOutParameterKeys, getPipeLine, getProgressTask, getStringInParameter, getStringInParameter, getSystemID, hasConfiguration, isEndOfPipe, pipe, removeOutParameter, setConfiguration, setEndOfPipeFlag, setInitialParameters, setInParameterMap, setLoopedCount, setOutParameter, setStateOfTask, setStateProgressing, toXML
-
Constructor Details
-
LoopScenarioProcessor
public LoopScenarioProcessor()
-
-
Method Details
-
process
Must be overridden to implement concrete pipe procedure.- Specified by:
processin classFWProcessor- Returns:
- success
- Throws:
PipeLineException
-
interveneRunLoop
Description copied from class:FWLoopProcessoroverwrite this method to work on parameters before loop running- Overrides:
interveneRunLoopin classFWLoopProcessor- Returns:
- success
-
checkInParameterMap
protected boolean checkInParameterMap()Description copied from class:FWProcessorCan be overridden to perform semantic checks on the pipeline Input.- Overrides:
checkInParameterMapin classFWLoopProcessor- Returns:
- true if not overridden by implementations
-
checkOutParameterMap
protected boolean checkOutParameterMap()Description copied from class:FWProcessorCan be overridden to perform semantic checks on the pipeline Input.- Overrides:
checkOutParameterMapin classFWLoopProcessor- Returns:
- true if not overridden
-
initLoop
- Overrides:
initLoopin classFWLoopProcessor
-