Class LoopSystemscenarioProcessor


public final class LoopSystemscenarioProcessor extends FWLoopProcessor
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. further parameter: ${other_SystemID} Loops over scenarios of the given System. further parameter: ${other_scenarioOID} Loops only once over given Scenario. further information: ${resultFolderMap} will contain resultFolders of the different scenarios which have been saved in each scenario within parameter resultFolder
Author:
Andreas Enders
  • Constructor Details

    • LoopSystemscenarioProcessor

      public LoopSystemscenarioProcessor()
  • Method Details

    • process

      public boolean process() throws PipeLineException
      Must be overridden to implement concrete pipe procedure.
      Specified by:
      process in class FWProcessor
      Returns:
      true on success; false makes FWProcessor.pipe(FWObservable, Integer) fail
      Throws:
      PipeLineException - if processing fails
    • interveneRunLoop

      protected boolean interveneRunLoop(net.simplace.core.FWObservable aObservable)
      Description copied from class: FWLoopProcessor
      Can be overridden to change the parameters of a run before it is started.
      Overrides:
      interveneRunLoop in class FWLoopProcessor
      Parameters:
      aObservable - the parameters of the run
      Returns:
      true to run the pipeline, false to skip this run; the default returns true
    • checkInParameterMap

      protected boolean checkInParameterMap()
      Description copied from class: FWLoopProcessor
      Checks that the loop pipeline (PipeID, default counterPipe) exists.
      Overrides:
      checkInParameterMap in class FWLoopProcessor
      Returns:
      true if the pipeline exists
    • initLoop

      public void initLoop(Map<String,Object> aParameterMap)
      Description copied from class: FWLoopProcessor
      Initialises the loop count (from runCount, with parameter tokens replaced) and the separateLoops flag. Called when the processor is created.
      Overrides:
      initLoop in class FWLoopProcessor
      Parameters:
      aParameterMap - parameters of the container plus the initial parameters of the processor