A RoutingMasterPolicy which evenly distributes Sequence IDs to all receivers. If an uneven number of tokens have been received, extra tokens are stored for the next table update. More...
Public Member Functions | |
RoundRobinPolicy (fhicl::ParameterSet ps) | |
RoundRobinPolicy Constructor. | |
virtual | ~RoundRobinPolicy () |
Default virtual Destructor. | |
detail::RoutingPacket | GetCurrentTable () override |
Create a Routing Table using the tokens that have been received. |
A RoutingMasterPolicy which evenly distributes Sequence IDs to all receivers. If an uneven number of tokens have been received, extra tokens are stored for the next table update.
Definition at line 13 of file RoundRobin_policy.cc.
artdaq::RoundRobinPolicy::RoundRobinPolicy | ( | fhicl::ParameterSet | ps | ) | [inline, explicit] |
RoundRobinPolicy Constructor.
ps | ParameterSet used to configure RoundRobinPolicy |
RoundRobinPolicy accepts the following Parameter: "use_all_tokens" (Default: false): Whether to use all tokens or to stop when we can no longer complete a "turn"
Definition at line 23 of file RoundRobin_policy.cc.
detail::RoutingPacket artdaq::RoundRobinPolicy::GetCurrentTable | ( | ) | [override, virtual] |
Create a Routing Table using the tokens that have been received.
RoundRobinPolicy will go through the list of receivers as many times as it can, until one or more receivers have no tokens. It always does full "turns" through the recevier list.
Implements artdaq::RoutingMasterPolicy.
Definition at line 47 of file RoundRobin_policy.cc.