1 #include "fsm/scd_stsw_init.h"
3 #include "scd_logging.h"
4 #include "scd_exception.h"
5 #include "scd_cont_slave_wrapper.h"
8 void scd_stsw_init::set_connected()
10 _sim.get_poller().register_handler(_fsm, SOCK_EV_READ | SOCK_EV_CLOSE);
11 _fsm.set_state(_st_busy);
15 void scd_stsw_init::set_failed()
17 _fsm.set_state(_st_failed);
21 void scd_stsw_init::set_idle(const sc_core::sc_time& time)
23 scd_error("init: illegal call to set_idle()");
24 throw scd_exception("illegal call");
28 void scd_stsw_init::set_busy()
30 scd_error("init: illegal call to set_idle()");
31 throw scd_exception("illegal call");
35 void scd_stsw_init::set_done()
37 scd_error("init: illegal call to set_done()");
38 throw scd_exception("illegal call");
42 void scd_stsw_init::set_fail()
44 _fsm.set_state(_st_failed);
48 void scd_stsw_init::process() {}
51 bool scd_stsw_init::active() const { return false; }
54 bool scd_stsw_init::advance_time() const
56 scd_error("illegal call to advance_time()");
57 throw scd_exception("illegal call");