1 /*******************************************************************************
2 * Copyright (c) 2013 Ericsson
4 * All rights reserved. This program and the accompanying materials are made
5 * available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Alexandre Montplaisir - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.core
.ctfadaptor
;
15 import org
.eclipse
.linuxtools
.ctf
.core
.event
.IEventDeclaration
;
16 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfEventField
;
17 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfLostEvent
;
18 import org
.eclipse
.linuxtools
.tmf
.core
.timestamp
.TmfTimeRange
;
21 * An implementation of {@link ITmfLostEvent} for use in the CTF adaptor.
23 * @author Alexandre Montplaisir
26 public class CtfTmfLostEvent
extends CtfTmfEvent
implements ITmfLostEvent
{
28 private final TmfTimeRange fTimeRange
;
29 private final long fNbLost
;
32 * Constructor. Only {@link CtfTmfEventFactory} should call this.
37 * The rank of the event in the trace
39 * The event's payload (fields). In case this event has some.
41 * The name of the trace file from which this event comes
43 * The CPU on which this event happened
45 * The CTF Event Declaration object that created this event
47 * The time range of lost events indicated by this one
49 * The number of lost events in the range
51 CtfTmfLostEvent(CtfTmfTrace trace
,
53 ITmfEventField content
,
56 IEventDeclaration declaration
,
57 TmfTimeRange timeRange
,
60 * Only the factory should call this method, the case to
61 * (CtfTmfTimestamp) should be safe.
63 super(trace
, rank
, (CtfTmfTimestamp
) timeRange
.getStartTime(), content
, fileName
, cpu
, declaration
);
64 fTimeRange
= timeRange
;
69 public TmfTimeRange
getTimeRange() {
74 public long getNbLostEvents() {