![]() |
Project
|
#include <DispatchPolicy.h>
Public Types | |
enum struct | DispatchOp { AfterComputation , WhenReady } |
using | DeviceMatcher = std::function< bool(DeviceSpec const &device)> |
using | TriggerMatcher = std::function< bool(Output const &)> |
Static Public Member Functions | |
static TriggerMatcher | defaultDispatchPolicy () |
static std::vector< DispatchPolicy > | createDefaultPolicies () |
Helper to create the default configuration. | |
Public Attributes | |
std::string | name |
Name of the policy itself. | |
DeviceMatcher | deviceMatcher |
DispatchOp | action = DispatchOp::AfterComputation |
the action to be used for matched devices | |
TriggerMatcher | triggerMatcher = defaultDispatchPolicy() |
matcher on specific output to trigger sending | |
Policy to describe when to dispatch objects As for now we describe this policy per device, however it can be extended to match on specific outputs of the device.
Definition at line 29 of file DispatchPolicy.h.
using o2::framework::DispatchPolicy::DeviceMatcher = std::function<bool(DeviceSpec const& device)> |
Definition at line 41 of file DispatchPolicy.h.
using o2::framework::DispatchPolicy::TriggerMatcher = std::function<bool(Output const&)> |
Definition at line 43 of file DispatchPolicy.h.
|
strong |
Action to take whenever an object in the output gets ready:
Definition at line 32 of file DispatchPolicy.h.
|
static |
Helper to create the default configuration.
By default the DispatchPolicy matches any Device and messages are sent after computation
Definition at line 24 of file DispatchPolicy.cxx.
|
static |
Definition at line 29 of file DispatchPolicy.cxx.
DispatchOp o2::framework::DispatchPolicy::action = DispatchOp::AfterComputation |
the action to be used for matched devices
Definition at line 51 of file DispatchPolicy.h.
DeviceMatcher o2::framework::DispatchPolicy::deviceMatcher |
Callback to be used to understand if the policy should apply to the given device.
Definition at line 49 of file DispatchPolicy.h.
std::string o2::framework::DispatchPolicy::name |
Name of the policy itself.
Definition at line 46 of file DispatchPolicy.h.
TriggerMatcher o2::framework::DispatchPolicy::triggerMatcher = defaultDispatchPolicy() |
matcher on specific output to trigger sending
Definition at line 53 of file DispatchPolicy.h.