Revision 842775ab src/eventlog/event.cc

View differences:

src/eventlog/event.cc
41 41
    numEventLogMessages = -1;
42 42
    numBeginSendEntries = -1;
43 43
    eventEntry = NULL;
44
    eventEndEntry = NULL;
45 44
    moduleCreatedEntry = NULL;
46 45
    cause = NULL;
47 46
    causes = NULL;
48 47
    consequences = NULL;
49 48
    eventLogEntries.clear();
50

  
51
    _earliestProcessingTime = 0;
52 49
}
53 50

  
54 51
void Event::deleteConsequences()
......
139 136

  
140 137
        EventLogEntry *eventLogEntry = EventLogEntry::parseEntry(eventLog, this, index, reader->getCurrentLineStartOffset(), line, reader->getCurrentLineLength());
141 138

  
142
        // check for eventEndEntries. We do not include such entries in the eventLogEntries
143
        // for backwards compatibility with other plugins (e.g., eventTable)
144
        EventEndEntry * readEventEndEntry = dynamic_cast<EventEndEntry*>(eventLogEntry);
145
        if(readEventEndEntry) {
146
            eventEndEntry = readEventEndEntry;
147
            continue;
148
        }
149

  
150 139
        // skip empty lines
151 140
        if (!eventLogEntry)
152 141
            continue;
......
191 180
        if (dynamic_cast<BeginSendEntry *>(eventLogEntry))
192 181
            numBeginSendEntries++;
193 182
    }
183

  
194 184
    Assert(eventEntry);
195 185
    return endOffset = reader->getCurrentLineStartOffset();
196 186
}
......
306 296
    return (Event *)nextEvent;
307 297
}
308 298

  
309
Event *Event::getPreviousEventRealTime()
310
{
311
    if (eventLog->getFirstEventRealTime() == this) {
312
        return NULL;
313
    }
314
    Assert(previousEventRealTime != NULL);
315
    return (Event*)previousEventRealTime;
316
}
317

  
318
Event *Event::getNextEventRealTime()
319
{
320
    if (eventLog->getLastEventRealTime() == this) {
321
        return NULL;
322
    }
323
    Assert(nextEventRealTime != NULL);
324
    return (Event*)nextEventRealTime;
325
}
326

  
327 299
Event *Event::getCauseEvent()
328 300
{
329 301
    int causeEventNumber = getCauseEventNumber();
......
396 368
    }
397 369
    return consequences;
398 370
}
399

  
400
long Event::getEarliestProcessingTime() {
401
    return _earliestProcessingTime;
402
}
403
long Event::getEarliestStartTime() {
404
    return ((_earliestProcessingTime == 0) ? 0 : _earliestProcessingTime - getComplexity());
405
}

Also available in: Unified diff