Search code examples
omnet++veins

How to get access to the Veins Parameter "firstStepAt" in the Artery Framework?


I would like to access the Veins parameter "firstStepAt" in the Artery framework to skip the build up time from my SUMO simulation. But I cant find the part in the Artery framework, where it is possible to set Veins configuration parameter, or more general "How can I change the Veins .ned Parameters in Artery?" If someone can give me an hint for this problem it would be very helpful.


Solution

  • It looks like Artery has this functionality, too: It is called startTime and located in Core.cc.

    scheduleAt(par("startTime"), m_connectEvent);
    

    The m_connectEvent is used to connect to TraCI:

    m_traci->connect(m_launcher->launch());
    

    The value of startTime is 0.0s by default.