Package tests.MSOM

Class Emitter

All Implemented Interfaces:
Runnable

public class Emitter extends defaultEmitter<SOMData>
Emitter receives commands from the external and send to workers what to do. Also received feedbacks from Collector as ACK and if there is a new task to execute. For other informations about MSOM read the thesis.
  • Field Details

    • command_channel

      int command_channel
    • feedback_channel

      int feedback_channel
    • commandRunning

      boolean commandRunning
  • Constructor Details

    • Emitter

      public Emitter()
  • Method Details

    • runJob

      public void runJob()
      Description copied from class: defaultJob
      blank function that should be overwritten by class extending bbflow.defaultJob. Here main computation task is done once we're sure there's data in at least one of the input channels Lists 'in' and 'out' must be used manually and EOS() must be managed by the user.
      Overrides:
      runJob in class defaultEmitter<SOMData>
    • EOS

      public void EOS()
      Description copied from class: defaultJob
      EOS() function to override
      Overrides:
      EOS in class defaultJob<SOMData,SOMData>