artdaq
v2_03_00
|
A RoutingMasterPolicy which simply assigns Sequence IDs to tokens in the order they were received. More...
Public Member Functions | |
NoOpPolicy (fhicl::ParameterSet ps) | |
NoOpPolicy Constructor. More... | |
virtual | ~NoOpPolicy ()=default |
Default virtual Destructor. | |
detail::RoutingPacket | GetCurrentTable () override |
Using the tokens received so far, create a Routing Table. More... | |
![]() | |
RoutingMasterPolicy (fhicl::ParameterSet ps) | |
RoutingMasterPolicy Constructor. More... | |
virtual | ~RoutingMasterPolicy ()=default |
Default virtual Destructor. | |
size_t | GetReceiverCount () const |
Get the number of configured receivers. More... | |
size_t | GetMaxNumberOfTokens () const |
Get the largest number of tokens that the RoutingMasterPolicy has seen at any one time. More... | |
void | AddReceiverToken (int rank, unsigned new_slots_free) |
Add a token to the token list. More... | |
void | Reset () |
Reset the policy, setting the next sequence ID to be used to 0. | |
Additional Inherited Members | |
![]() | |
std::unique_ptr< std::deque < int > > | getTokensSnapshot () |
Gets the current token list, used for building Routing Tables. | |
void | addUnusedTokens (std::unique_ptr< std::deque< int >> tokens) |
If necessary, return unused tokens to the token list, for subsequent updates. | |
![]() | |
Fragment::sequence_id_t | next_sequence_id_ |
The next sequence ID to be assigned. | |
A RoutingMasterPolicy which simply assigns Sequence IDs to tokens in the order they were received.
Definition at line 10 of file NoOp_policy.cc.
|
inlineexplicit |
NoOpPolicy Constructor.
ps | ParameterSet used to configure the NoOpPolicy |
NoOpPolicy takes no additional Parameters at this time
Definition at line 19 of file NoOp_policy.cc.
|
overridevirtual |
Using the tokens received so far, create a Routing Table.
Implements artdaq::RoutingMasterPolicy.
Definition at line 33 of file NoOp_policy.cc.