coral
A C++ library for distributed co-simulation
slave_setup.hpp
Go to the documentation of this file.
1 
10 #ifndef CORAL_BUS_SLAVE_SETUP_HPP
11 #define CORAL_BUS_SLAVE_SETUP_HPP
12 
13 #include <chrono>
14 #include "coral/model.hpp"
15 
16 
17 namespace coral
18 {
19 namespace bus
20 {
21 
22 
27 struct SlaveSetup
28 {
29  SlaveSetup();
30  SlaveSetup(
31  coral::model::TimePoint startTime,
32  coral::model::TimePoint stopTime,
33  const std::string& executionName,
35  coral::model::TimePoint startTime;
36  coral::model::TimePoint stopTime;
37  std::string executionName;
38 
45 };
46 
47 
48 }} // namespace
49 #endif // header guard
Configuration data which is sent to each slave as they are added to the simulation.
Definition: slave_setup.hpp:27
STL class.
Definition: variable_io.hpp:28
std::chrono::milliseconds variableRecvTimeout
How long a slave should wait to receive variable values from other slaves before assuming that the co...
Definition: slave_setup.hpp:44
Main module header for coral::model.
double TimePoint
The type used to specify (simulation) time points.
Definition: model.hpp:42