1#ifndef XRPL_TEST_CSF_SUBMITTERS_H_INCLUDED 
    2#define XRPL_TEST_CSF_SUBMITTERS_H_INCLUDED 
    4#include <test/csf/Peer.h> 
    5#include <test/csf/Scheduler.h> 
    6#include <test/csf/SimTime.h> 
    7#include <test/csf/Tx.h> 
   48template <
class Distribution, 
class Generator, 
class Selector>
 
   69        return SimDuration{
static_cast<SimDuration::rep
>(t)};
 
 
 
   96template <
class Distribution, 
class Generator, 
class Selector>
 
   97Submitter<Distribution, Generator, Selector>
 
  107        dist, start, end, sel, s, g);
 
 
Simulated discrete-event scheduler.
 
cancel_token at(time_point const &when, Function &&f)
Schedule an event at a specific time.
 
time_point now() const
Return the current network time.
 
cancel_token in(duration const &delay, Function &&f)
Schedule an event after a specified duration passes.
 
Invocable that returns random samples from a range according to a discrete distribution.
 
Submits transactions to a specified peer.
 
static std::enable_if_t< std::is_arithmetic< T >::value, SimDuration > asDuration(T t)
 
Submitter(Distribution dist, SimTime start, SimTime end, Selector &selector, Scheduler &s, Generator &g)
 
static SimDuration asDuration(SimDuration d)
 
Submitter< Distribution, Generator, Selector > makeSubmitter(Distribution dist, SimTime start, SimTime end, Selector &sel, Scheduler &s, Generator &g)
 
typename SimClock::duration SimDuration
 
typename SimClock::time_point SimTime
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
Represents rate as a count/duration.