Package tests.MSOM
Class Collector
- All Implemented Interfaces:
Runnable
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 Summary
FieldsModifier and TypeFieldDescription(package private) boolean[]
(package private) int
(package private) int
(package private) int
(package private) bestPosition
(package private) int
(package private) int
final int
Fields inherited from class bbflow.defaultCollector
FIRSTCOME, GATHER, position, ROUNDROBIN
Fields inherited from class bbflow.defaultJob
combined, combined_side, CUSTOM_FUNCTION, id, in, INLINE, INLINE_MULTI, out, runType
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class bbflow.defaultCollector
preload
Methods inherited from class bbflow.defaultJob
addInputChannel, addOutputChannel, getInputChannel, getOutputChannel, init, removeInputChannel, removeOutputChannel, run, runJob, runJobMulti, sendEOS, sendEOS, sendOut, sendOut, sendOutTo, sendOutTo, sendOutToAll, setId, uniqueJob, uniqueJob
-
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
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 classdefaultCollector<SOMData>
- Throws:
InterruptedException
-
EOS
public void EOS()Description copied from class:defaultJob
EOS() function to override- Overrides:
EOS
in classdefaultJob<SOMData,
SOMData>
-