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 11 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 no Parameters at this time.

Definition at line 20 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 38 of file RoundRobin_policy.cc.


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

Generated on 15 Apr 2018 for artdaq by  doxygen 1.6.1