6 #include "fsm/scd_cont_fsm_if.h"
9 const bool SCD_MASTER = true;
10 const bool SCD_SLAVE = false;
12 const int SCD_CONT_DELAY = 20;
15 * Control manager. Shall be set up before the simulation is initialized.
17 class scd_cont_man : public scd_cont_fsm_if
20 virtual ~scd_cont_man() {};
23 * Sets the master simulator for a slave.
24 * \param host the FQDN or IP of the master simulator
25 * \param port the TCP port of the master simulator
26 * \exception scd_exception if the simulator is not a slave
28 virtual void set_master(const std::string& host, uint16_t port) = 0;
31 * Registers a slave simulator for the master.
32 * \param name the name of the slave
33 * \exception scd_exception if the simulator is not the master
35 virtual void register_slave(const std::string& name) = 0;