The Dynamics class represents the dynamics of the network.
More...
#include <Dynamics.hpp>
|
| Dynamics (network_t &graph, std::optional< unsigned int > seed=std::nullopt) |
| Construct a new Dynamics object.
|
|
void | resetTime () |
| Reset the simulation time to 0.
|
|
const network_t & | graph () const |
| Get the graph.
|
|
Time | time () const |
| Get the current simulation time-step.
|
|
|
Time | m_time |
|
std::mt19937_64 | m_generator |
|
template<typename network_t>
class dsm::Dynamics< network_t >
The Dynamics class represents the dynamics of the network.
- Template Parameters
-
network_t | The type of the network |
◆ Dynamics()
template<typename network_t>
dsm::Dynamics< network_t >::Dynamics |
( |
network_t & | graph, |
|
|
std::optional< unsigned int > | seed = std::nullopt ) |
Construct a new Dynamics object.
- Parameters
-
graph | The graph representing the network |
seed | The seed for the random number generator (default is std::nullopt) |
◆ graph()
template<typename network_t>
Get the graph.
- Returns
- const network_t&, The graph
◆ time()
template<typename network_t>
Get the current simulation time-step.
- Returns
- Time The current simulation time
The documentation for this class was generated from the following file: