$treeview $search $mathjax $extrastylesheet
artdaq  v3_04_01
$projectbrief
$projectbrief
$searchbox

artdaq::RoundRobinPolicy Class Reference

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...

Inheritance diagram for artdaq::RoundRobinPolicy:
artdaq::RoutingMasterPolicy

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

artdaq::RoundRobinPolicy::RoundRobinPolicy ( fhicl::ParameterSet  ps  )  [inline, explicit]

RoundRobinPolicy Constructor.

Parameters:
ps ParameterSet used to configure RoundRobinPolicy

RoundRobinPolicy accepts the following Parameter: "minimum_participants" (Default: 0): Minimum number of receivers to distribute between. Use negative number to indicate how many can be missing from total.

Definition at line 23 of file RoundRobin_policy.cc.


Member Function Documentation

detail::RoutingPacket artdaq::RoundRobinPolicy::GetCurrentTable (  )  [override, virtual]

Create a Routing Table using the tokens that have been received.

Returns:
A detail::RoutingPacket containing the table update

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 48 of file RoundRobin_policy.cc.


The documentation for this class was generated from the following file:

Generated on 28 Mar 2019 for artdaq by  doxygen 1.6.1