Package tests.MSOM

Class Collector

All Implemented Interfaces:
Runnable

public class Collector extends defaultCollector<SOMData>
this is our Collector, waiting result from ALL workers in case of SEARCH and waiting ONLY from node involved in case of LEARN. Result sent to Emitter through feedback channel
  • Field Details

    • receivedcount

      int receivedcount
    • result

      bestPosition result
    • parts

      int parts
    • split

      int split
    • listeningState

      int listeningState
    • WAITSINGLE

      public final int WAITSINGLE
      See Also:
    • waitingnode

      int waitingnode
    • ignore_channels

      boolean[] ignore_channels
  • Constructor Details

    • Collector

      public Collector(int parts)
  • Method Details

    • initChannels

      public void initChannels()
    • runJob

      public void runJob() throws InterruptedException
      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 defaultCollector<SOMData>
      Throws:
      InterruptedException
    • EOS

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