Package tests.MSOM
Class Emitter
- All Implemented Interfaces:
Runnable
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 Summary
FieldsModifier and TypeFieldDescription(package private) int
(package private) boolean
(package private) int
Fields inherited from class bbflow.defaultEmitter
BROADCAST, ROUNDROBIN, SCATTER
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.defaultEmitter
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
-
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 classdefaultEmitter<SOMData>
-
EOS
public void EOS()Description copied from class:defaultJob
EOS() function to override- Overrides:
EOS
in classdefaultJob<SOMData,
SOMData>
-