Package net.simplace.pipe.control
Klasse FWLoopProcessor
java.lang.Object
net.simplace.pipe.control.FWProcessor
net.simplace.pipe.control.FWLoopProcessor
- Bekannte direkte Unterklassen:
CreateSessionProcessor,LoopCounterProcessor,LoopListProcessor,LoopParameterProcessor,LoopScenarioProcessor,LoopSimModelRunProcessor,LoopSystemscenarioProcessor,LoopXMLChildProcessor
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 find the total run count ${runCount} and the run count ${Count}
This looping processor takes the parameter in ${looplist} converted to list or map to loop the
pipeline. Additionally to Count and runCount you can find the actual looplistentry in
parametername: "${looplist}.loop",
for maps the actual looplistvalue in parametername: "${looplist}.loopvalue"
as a special the looplist can be a String too.
Format: comma-separated for lists:
"first,next,last"
or
Format: comma-separated with = and leading and ending brace for maps:
"{first=firstvalue,next=nextvalue,last=lastvalue}
further parameter: ${startIndex} gives the first index of ${Count}-Parameter in looping pipeline.
- Autor:
- Andreas Enders
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected intIndicates the count of loops created by this processor - for non loop processors: -1protected Mapprotected StringIndicates the ID of the Pipe to be loopedprotected booleanSeparate different runs from each others dataVon Klasse geerbte Felder net.simplace.pipe.control.FWProcessor
iAllreadyLoopedCount, iContainer, iInObservable, iObservable, iProgressTasks -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected booleanCan be overridden to perform semantic checks on the pipeline Input.protected booleanCan be overridden to perform semantic checks on the pipeline Input.clone()Creates a connectlet by dynamically instancing the class given in the JDM element.intvoidprotected booleaninterveneRunLoop(FWObservable observable) overwrite this method to work on parameters before loop runningprotected final FWObservablerunLoop(String aLoopListParam, Map<?, Object> aLoopObjectMap, FWObservable aObservable) Must be overwritten to implement concrete pipe procedure.Von Klasse geerbte Methoden 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, process, removeOutParameter, setConfiguration, setEndOfPipeFlag, setInitialParameters, setInParameterMap, setLoopedCount, setOutParameter, setStateOfTask, setStateProgressing, toXML
-
Felddetails
-
iLoopCount
protected int iLoopCountIndicates the count of loops created by this processor - for non loop processors: -1 -
iLoopPipeId
Indicates the ID of the Pipe to be looped -
iSeparateRuns
protected boolean iSeparateRunsSeparate different runs from each others data -
iLoopMap
-
-
Konstruktordetails
-
FWLoopProcessor
public FWLoopProcessor()
-
-
Methodendetails
-
clone
Beschreibung aus Klasse kopiert:FWProcessorCreates a connectlet by dynamically instancing the class given in the JDM element.- Setzt außer Kraft:
clonein KlasseFWProcessor
-
runLoop
protected final FWObservable runLoop(String aLoopListParam, Map<?, Object> aLoopObjectMap, FWObservable aObservable) throws PipeLineExceptionMust be overwritten to implement concrete pipe procedure.- Parameter:
aLoopListParam-aLoopObjectMap-aObservable-- Gibt zurück:
- FWObservable
- Löst aus:
PipeLineException
-
interveneRunLoop
overwrite this method to work on parameters before loop running- Parameter:
observable-- Gibt zurück:
- success
-
checkInParameterMap
protected boolean checkInParameterMap()Beschreibung aus Klasse kopiert:FWProcessorCan be overridden to perform semantic checks on the pipeline Input.- Setzt außer Kraft:
checkInParameterMapin KlasseFWProcessor- Gibt zurück:
- true if not overridden by implementations
-
checkOutParameterMap
protected boolean checkOutParameterMap()Beschreibung aus Klasse kopiert:FWProcessorCan be overridden to perform semantic checks on the pipeline Input.- Setzt außer Kraft:
checkOutParameterMapin KlasseFWProcessor- Gibt zurück:
- true if not overridden
-
getLoopCount
public int getLoopCount()- Gibt zurück:
- the the count of loops, invoked by this processor
-
getLoopPipeID
- Gibt zurück:
- the the count of loops, invoked by this processor
-
initLoop
- Parameter:
aParameterMap-
-
getLoopMap
- Gibt zurück:
- the LoopMap
-