Example #1
0
 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"));
 }
Example #2
0
 Cell(const devs::DynamicsInit& model,
      const devs::InitEventList& events) :
     extension::CellDevs(model, events)
 {
     if (events.exist("seed")) {
         mRand.seed(events.getInt("seed"));
     }
 }
Example #3
0
 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;
 }
Example #4
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;
    }
Example #5
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);
            }
        }
Example #6
0
 GraphGenerator(const devs::ExecutiveInit &mdl,
                const devs::InitEventList &events)
     : devs::Executive(mdl, events)
     , generator(123)
     , generator_type(events.getString("generator"))
 {
 }
Example #7
0
 Executive(const devs::ExecutiveInit& model,
           const devs::InitEventList& events) :
     devs::Executive(model, events)
 {
     m_buffer = events.get("translate")->clone();
 }