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 | setInitTime (std::time_t timeEpoch) |
| Set the initial time as epoch time.
|
|
const network_t & | graph () const |
| Get the graph.
|
|
std::time_t | time () const |
| Get the current simulation time as epoch time.
|
|
std::time_t | time_step () const |
| Get the current simulation time-step.
|
|
auto | strDateTime () const |
| Get the current simulation time as formatted string (YYYY-MM-DD HH:MM:SS)
|
|
|
tbb::task_arena | m_taskArena |
|
std::time_t | m_timeInit |
|
std::time_t | m_timeStep |
|
std::mt19937_64 | m_generator |
|
template<typename network_t>
class dsf::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>
dsf::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
◆ setInitTime()
template<typename network_t>
void dsf::Dynamics< network_t >::setInitTime |
( |
std::time_t | timeEpoch | ) |
|
|
inline |
Set the initial time as epoch time.
- Parameters
-
timeEpoch | The initial time as epoch time |
◆ strDateTime()
template<typename network_t>
Get the current simulation time as formatted string (YYYY-MM-DD HH:MM:SS)
- Returns
- std::string, The current simulation time as formatted string
◆ time()
template<typename network_t>
Get the current simulation time as epoch time.
- Returns
- std::time_t, The current simulation time as epoch time
◆ time_step()
template<typename network_t>
Get the current simulation time-step.
- Returns
- std::time_t, The current simulation time-step
The documentation for this class was generated from the following file: