예제 #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"));
 }
예제 #2
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;
 }
예제 #3
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);
            }
        }
예제 #4
0
 Executive(const devs::ExecutiveInit& model,
           const devs::InitEventList& events) :
     devs::Executive(model, events)
 {
     m_buffer = events.get("translate")->clone();
 }