Class CreateSessionProcessor

All Implemented Interfaces:
EventListener, net.simplace.sim.event.FWSimulationListener

public class CreateSessionProcessor extends FWLoopProcessor implements net.simplace.sim.event.FWSimulationListener
Author:
Andreas Enders
  • Constructor Details

    • CreateSessionProcessor

      public CreateSessionProcessor()
  • Method Details

    • process

      protected boolean process() throws PipeLineException
      Description copied from class: FWProcessor
      Must be overridden to implement the concrete processing step. Reads from the in parameters and writes results with FWProcessor.setOutParameter(String, Object).
      Specified by:
      process in class FWProcessor
      Returns:
      true on success; false makes FWProcessor.pipe(FWObservable, Integer) fail
      Throws:
      PipeLineException - if processing fails
      See Also:
    • getNewProgressTask

      public FWProgressTask getNewProgressTask()
      Description copied from class: FWProcessor
      Adds 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 (see FWProcessor.clone()).
      Overrides:
      getNewProgressTask in class FWProcessor
      Returns:
      the new progress task, or null if the processor has no progress task
    • 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
    • clone

      public FWProcessor clone()
      Description copied from class: FWProcessor
      Creates 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:
      clone in class FWLoopProcessor
    • simulationStarted

      public void simulationStarted(net.simplace.sim.event.FWSimulationEvent<net.simplace.sim.model.FWSimModel> aEvent)
      Specified by:
      simulationStarted in interface net.simplace.sim.event.FWSimulationListener
    • simulationEnded

      public void simulationEnded(net.simplace.sim.event.FWSimulationEvent<net.simplace.sim.model.FWSimModel> aEvent)
      Specified by:
      simulationEnded in interface net.simplace.sim.event.FWSimulationListener
    • simulationErrored

      public void simulationErrored(net.simplace.sim.event.FWSimulationErrorEvent aEvent)
      Specified by:
      simulationErrored in interface net.simplace.sim.event.FWSimulationListener
    • projectEnded

      public void projectEnded(net.simplace.sim.event.FWSimulationEvent<net.simplace.sim.FWSimProject> aEvent)
      Specified by:
      projectEnded in interface net.simplace.sim.event.FWSimulationListener
    • iterationEnded

      public void iterationEnded(net.simplace.sim.event.FWSimulationEvent<net.simplace.sim.control.FWSimulationControlCache> aEvent)
      Specified by:
      iterationEnded in interface net.simplace.sim.event.FWSimulationListener