コード例 #1
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;
    }
コード例 #2
0
 GraphGenerator(const devs::ExecutiveInit &mdl,
                const devs::InitEventList &events)
     : devs::Executive(mdl, events)
     , generator(123)
     , generator_type(events.getString("generator"))
 {
 }