20 #ifndef RIPPLE_TEST_CSF_SIM_H_INCLUDED
21 #define RIPPLE_TEST_CSF_SIM_H_INCLUDED
23 #include <test/csf/BasicNetwork.h>
24 #include <test/csf/CollectorRef.h>
25 #include <test/csf/Digraph.h>
26 #include <test/csf/Peer.h>
27 #include <test/csf/PeerGroup.h>
28 #include <test/csf/Scheduler.h>
29 #include <test/csf/SimTime.h>
30 #include <test/csf/TrustGraph.h>
153 synchronized()
const;
Abstraction for the underlying message destination.
Scheduler::clock_type const & clock_
clock_type & clock() const
Return the clock.
Simulated discrete-event scheduler.
BasicNetwork< Peer * > net
std::size_t size() const
The number of peers in the simulation.
TrustGraph< Peer * > trustGraph
std::size_t branches() const
Calculate the number of branches in the network.
Oracle maintaining unique ledgers for a simulation.
A generic endpoint for log messages.
A group of simulation Peers.
time_point now() const override
Returns the current time.
T emplace_back(T... args)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual Severity threshold() const
Returns the minimum severity level this sink will report.
void write(beast::severities::Severity level, std::string const &text) override
Write text to the sink at the specified severity.
Severity
Severity level / threshold of a Journal message.
Sink that prepends simulation time to messages.
A container of CollectorRefs.
typename SimClock::duration SimDuration
Sim()
Create a simulation.
void run(int ledgers)
Run consensus protocol to generate the provided number of ledgers.
PeerGroup createGroup(std::size_t numPeers)
Create a new group of peers.
Peer to peer network simulator.
BasicSink(Scheduler::clock_type const &clock)