PetrinetBeep(const devs::DynamicsInit& model, const devs::InitEventList& events) : devs::Dynamics(model, events) { mStartTime = value::toDouble(events.get("start")); mTimeStep = value::toDouble(events.get("timestep")); }
controler( const devs::DynamicsInit& init, const devs::InitEventList& events) : devs::Dynamics(init, events) { m_delay = vv::toDouble(events.get("controlDelay")); m_disabled = vv::toBoolean(events.get("disabled")); m_nbInterventions = 0; }
PetrinetMeteo(const devs::DynamicsInit& model, const devs::InitEventList& events) : devs::Dynamics(model, events) { mInit = value::toBoolean(events.get("init")); mMin = value::toInteger(events.get("min")); mMax = value::toInteger(events.get("max")); if (events.exist("seed")) { mRand.seed(events.getInt("seed")); } else { mRand.seed(1); } }
Executive(const devs::ExecutiveInit& model, const devs::InitEventList& events) : devs::Executive(model, events) { m_buffer = events.get("translate")->clone(); }