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")); }
Cell(const devs::DynamicsInit& model, const devs::InitEventList& events) : extension::CellDevs(model, events) { if (events.exist("seed")) { mRand.seed(events.getInt("seed")); } }
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; }
DeleteConnection(const devs::ExecutiveInit &init, const devs::InitEventList &events) : devs::Executive(init, events) { mAlarm = events.getDouble("alarm"); mModelSource = events.getString("model source"); mPortSource = events.getString("port source"); mModelDest = events.getString("model dest"); mPortDest = events.getString("port dest"); mRemaining = mAlarm; }
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); } }
GraphGenerator(const devs::ExecutiveInit &mdl, const devs::InitEventList &events) : devs::Executive(mdl, events) , generator(123) , generator_type(events.getString("generator")) { }
Executive(const devs::ExecutiveInit& model, const devs::InitEventList& events) : devs::Executive(model, events) { m_buffer = events.get("translate")->clone(); }