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>
161 synchronized()
const;
Abstraction for the underlying message destination.
virtual Severity threshold() const
Returns the minimum severity level this sink will report.
A generic endpoint for log messages.
time_point now() const override
Returns the current time.
Peer to peer network simulator.
Sink that prepends simulation time to messages.
void write(beast::severities::Severity level, std::string const &text) override
Write text to the sink at the specified severity.
void writeAlways(beast::severities::Severity level, std::string const &text) override
Bypass filter and write text to the sink at the specified severity.
BasicSink(Scheduler::clock_type const &clock)
Scheduler::clock_type const & clock_
A container of CollectorRefs.
Oracle maintaining unique ledgers for a simulation.
A group of simulation Peers.
Simulated discrete-event scheduler.
Sim()
Create a simulation.
std::size_t branches() const
Calculate the number of branches in the network.
TrustGraph< Peer * > trustGraph
void run(int ledgers)
Run consensus protocol to generate the provided number of ledgers.
BasicNetwork< Peer * > net
PeerGroup createGroup(std::size_t numPeers)
Create a new group of peers.
std::size_t size() const
The number of peers in the simulation.
T emplace_back(T... args)
Severity
Severity level / threshold of a Journal message.
typename SimClock::duration SimDuration
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.