Пример #1
0
 virtual void output(const devs::Time& /* time */,
                     devs::ExternalEventList& output) const
 {
     if (mActive) {
         output.push_back(buildEvent("yes"));
     } else {
         output.push_back(buildEvent("no"));
     }
 }
Пример #2
0
 virtual void output(const devs::Time& /* time */,
                     devs::ExternalEventList& output) const
 {
     for (int i = 0; i < m_counter; ++i) {
         output.push_back(buildEvent("out"));
     }
 }
Пример #3
0
void GeneratorWrapper::output(const devs::Time& /* time */,
                              devs::ExternalEventList& output) const
{
    output.push_back(new devs::ExternalEvent("out"));
}
Пример #4
0
 virtual void output(const devs::Time& /* time */,
                     devs::ExternalEventList& output) const
 { output.push_back(new devs::ExternalEvent("out")); }