artdaq  v3_06_00
artdaq::NoOpPolicy Class Reference

A RoutingMasterPolicy which simply assigns Sequence IDs to tokens in the order they were received. More...

Inheritance diagram for artdaq::NoOpPolicy:
artdaq::RoutingMasterPolicy

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...
 
- Public Member Functions inherited from artdaq::RoutingMasterPolicy
 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 1, and removing any tokens.
 

Additional Inherited Members

- Protected Member Functions inherited from artdaq::RoutingMasterPolicy
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.
 
- Protected Attributes inherited from artdaq::RoutingMasterPolicy
Fragment::sequence_id_t next_sequence_id_
 The next sequence ID to be assigned.
 

Detailed Description

A RoutingMasterPolicy which simply assigns Sequence IDs to tokens in the order they were received.

Definition at line 11 of file NoOp_policy.cc.

Constructor & Destructor Documentation

artdaq::NoOpPolicy::NoOpPolicy ( fhicl::ParameterSet  ps)
inlineexplicit

NoOpPolicy Constructor.

Parameters
psParameterSet used to configure the NoOpPolicy

NoOpPolicy takes no additional Parameters at this time

Definition at line 20 of file NoOp_policy.cc.

Member Function Documentation

detail::RoutingPacket artdaq::NoOpPolicy::GetCurrentTable ( )
overridevirtual

Using the tokens received so far, create a Routing Table.

Returns
A detail::RoutingPacket containing the Routing Table

Implements artdaq::RoutingMasterPolicy.

Definition at line 34 of file NoOp_policy.cc.


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