Cell(const devs::DynamicsInit& model, const devs::InitEventList& events) : extension::CellDevs(model, events) { if (events.exist("seed")) { mRand.seed(events.getInt("seed")); } }
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); } }