1#ifndef XRPL_TEST_CSF_SIM_H_INCLUDED
2#define XRPL_TEST_CSF_SIM_H_INCLUDED
4#include <test/csf/BasicNetwork.h>
5#include <test/csf/CollectorRef.h>
6#include <test/csf/Digraph.h>
7#include <test/csf/Peer.h>
8#include <test/csf/PeerGroup.h>
9#include <test/csf/Scheduler.h>
10#include <test/csf/SimTime.h>
11#include <test/csf/TrustGraph.h>
142 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.