Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 287562 | Differences between
and this patch

Collapse All | Expand All

(-)META-INF/MANIFEST.MF (-3 / +2 lines)
Lines 5-10 Link Here
5
Bundle-Version: 0.0.1
5
Bundle-Version: 0.0.1
6
Bundle-RequiredExecutionEnvironment: J2SE-1.5
6
Bundle-RequiredExecutionEnvironment: J2SE-1.5
7
Bundle-Vendor: Eclipse
7
Bundle-Vendor: Eclipse
8
Require-Bundle: org.junit4;bundle-version="4.5.0"
8
Require-Bundle: org.junit4;bundle-version="4.5.0",
9
Import-Package: org.eclipse.linuxtools.tmf.event,
9
 org.eclipse.linuxtools.tmf;bundle-version="0.0.1"
10
 org.eclipse.linuxtools.tmf.eventlog
(-)src/org/eclipse/linuxtools/tmf/eventlog/TmfEventRequestTest.java (-10 / +10 lines)
Lines 17-23 Link Here
17
import java.util.Vector;
17
import java.util.Vector;
18
18
19
import org.eclipse.linuxtools.tmf.event.TmfEvent;
19
import org.eclipse.linuxtools.tmf.event.TmfEvent;
20
import org.eclipse.linuxtools.tmf.event.TmfTimeWindow;
20
import org.eclipse.linuxtools.tmf.event.TmfTimeRange;
21
import org.eclipse.linuxtools.tmf.event.TmfTimestamp;
21
import org.eclipse.linuxtools.tmf.event.TmfTimestamp;
22
import org.junit.BeforeClass;
22
import org.junit.BeforeClass;
23
import org.junit.Test;
23
import org.junit.Test;
Lines 42-48 Link Here
42
42
43
    @Test
43
    @Test
44
    public void testConstructorForRange() throws Exception {
44
    public void testConstructorForRange() throws Exception {
45
        TmfTimeWindow range = new TmfTimeWindow(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
45
        TmfTimeRange range = new TmfTimeRange(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
46
        TmfEventRequest request = new TmfEventRequest(range, 0, -1, 1);
46
        TmfEventRequest request = new TmfEventRequest(range, 0, -1, 1);
47
47
48
        assertEquals("StartTime", TmfTimestamp.BigBang,   request.getRange().getStartTime());
48
        assertEquals("StartTime", TmfTimestamp.BigBang,   request.getRange().getStartTime());
Lines 53-59 Link Here
53
53
54
    @Test
54
    @Test
55
    public void testConstructorForNbEvents() throws Exception {
55
    public void testConstructorForNbEvents() throws Exception {
56
        TmfTimeWindow range = new TmfTimeWindow(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
56
        TmfTimeRange range = new TmfTimeRange(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
57
        TmfEventRequest request = new TmfEventRequest(range, 0, 10, 1);
57
        TmfEventRequest request = new TmfEventRequest(range, 0, 10, 1);
58
58
59
        assertEquals("StartTime", TmfTimestamp.BigBang,   request.getRange().getStartTime());
59
        assertEquals("StartTime", TmfTimestamp.BigBang,   request.getRange().getStartTime());
Lines 64-70 Link Here
64
64
65
    @Test
65
    @Test
66
    public void testConstructorWithOffset() throws Exception {
66
    public void testConstructorWithOffset() throws Exception {
67
        TmfTimeWindow range = new TmfTimeWindow(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
67
        TmfTimeRange range = new TmfTimeRange(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
68
        TmfEventRequest request = new TmfEventRequest(range, 5, 10, 1);
68
        TmfEventRequest request = new TmfEventRequest(range, 5, 10, 1);
69
69
70
        assertEquals("StartTime", TmfTimestamp.BigBang,   request.getRange().getStartTime());
70
        assertEquals("StartTime", TmfTimestamp.BigBang,   request.getRange().getStartTime());
Lines 75-81 Link Here
75
75
76
    @Test
76
    @Test
77
    public void testConstructorWithNegativeOffset() throws Exception {
77
    public void testConstructorWithNegativeOffset() throws Exception {
78
        TmfTimeWindow range = new TmfTimeWindow(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
78
        TmfTimeRange range = new TmfTimeRange(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
79
        TmfEventRequest request = new TmfEventRequest(range, -5, 10, 1);
79
        TmfEventRequest request = new TmfEventRequest(range, -5, 10, 1);
80
80
81
        assertEquals("StartTime", TmfTimestamp.BigBang,   request.getRange().getStartTime());
81
        assertEquals("StartTime", TmfTimestamp.BigBang,   request.getRange().getStartTime());
Lines 95-101 Link Here
95
        final int BLOCK_SIZE = 100;
95
        final int BLOCK_SIZE = 100;
96
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
96
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
97
97
98
        TmfTimeWindow range = new TmfTimeWindow(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
98
        TmfTimeRange range = new TmfTimeRange(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
99
        final TmfEventRequest request = new TmfEventRequest(range, 0, NB_EVENTS, BLOCK_SIZE) {
99
        final TmfEventRequest request = new TmfEventRequest(range, 0, NB_EVENTS, BLOCK_SIZE) {
100
            @Override
100
            @Override
101
            public void newEvents(Vector<TmfEvent> events) {
101
            public void newEvents(Vector<TmfEvent> events) {
Lines 125-131 Link Here
125
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
125
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
126
        int nbExpectedEvents = TmfRequestHandlerStub.MAX_GENERATED_EVENTS;
126
        int nbExpectedEvents = TmfRequestHandlerStub.MAX_GENERATED_EVENTS;
127
127
128
        TmfTimeWindow range = new TmfTimeWindow(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
128
        TmfTimeRange range = new TmfTimeRange(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
129
        final TmfEventRequest request = new TmfEventRequest(range, 0, NB_EVENTS, BLOCK_SIZE) {
129
        final TmfEventRequest request = new TmfEventRequest(range, 0, NB_EVENTS, BLOCK_SIZE) {
130
            @Override
130
            @Override
131
            public void newEvents(Vector<TmfEvent> events) {
131
            public void newEvents(Vector<TmfEvent> events) {
Lines 156-162 Link Here
156
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
156
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
157
        int nbExpectedEvents = TmfRequestHandlerStub.MAX_GENERATED_EVENTS;
157
        int nbExpectedEvents = TmfRequestHandlerStub.MAX_GENERATED_EVENTS;
158
158
159
        TmfTimeWindow range = new TmfTimeWindow(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
159
        TmfTimeRange range = new TmfTimeRange(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
160
        final TmfEventRequest request = new TmfEventRequest(range, OFFSET, NB_EVENTS, BLOCK_SIZE) {
160
        final TmfEventRequest request = new TmfEventRequest(range, OFFSET, NB_EVENTS, BLOCK_SIZE) {
161
            @Override
161
            @Override
162
            public void newEvents(Vector<TmfEvent> events) {
162
            public void newEvents(Vector<TmfEvent> events) {
Lines 187-193 Link Here
187
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
187
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
188
        int nbExpectedEvents = TmfRequestHandlerStub.MAX_GENERATED_EVENTS;
188
        int nbExpectedEvents = TmfRequestHandlerStub.MAX_GENERATED_EVENTS;
189
189
190
        TmfTimeWindow range = new TmfTimeWindow(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
190
        TmfTimeRange range = new TmfTimeRange(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
191
        final TmfEventRequest request = new TmfEventRequest(range, OFFSET, NB_EVENTS, BLOCK_SIZE) {
191
        final TmfEventRequest request = new TmfEventRequest(range, OFFSET, NB_EVENTS, BLOCK_SIZE) {
192
            @Override
192
            @Override
193
            public void newEvents(Vector<TmfEvent> events) {
193
            public void newEvents(Vector<TmfEvent> events) {
Lines 220-226 Link Here
220
        final int BLOCK_SIZE = 100;
220
        final int BLOCK_SIZE = 100;
221
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
221
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
222
222
223
        TmfTimeWindow range = new TmfTimeWindow(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
223
        TmfTimeRange range = new TmfTimeRange(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
224
        final TmfEventRequest request = new TmfEventRequest(range, 0, NB_EVENTS, BLOCK_SIZE) {
224
        final TmfEventRequest request = new TmfEventRequest(range, 0, NB_EVENTS, BLOCK_SIZE) {
225
            @Override
225
            @Override
226
            public void newEvents(Vector<TmfEvent> events) {
226
            public void newEvents(Vector<TmfEvent> events) {
(-)src/org/eclipse/linuxtools/tmf/eventlog/TmfEventLogTest.java (-8 / +8 lines)
Lines 19-25 Link Here
19
import java.util.Vector;
19
import java.util.Vector;
20
20
21
import org.eclipse.linuxtools.tmf.event.TmfEvent;
21
import org.eclipse.linuxtools.tmf.event.TmfEvent;
22
import org.eclipse.linuxtools.tmf.event.TmfTimeWindow;
22
import org.eclipse.linuxtools.tmf.event.TmfTimeRange;
23
import org.eclipse.linuxtools.tmf.event.TmfTimestamp;
23
import org.eclipse.linuxtools.tmf.event.TmfTimestamp;
24
import org.junit.BeforeClass;
24
import org.junit.BeforeClass;
25
import org.junit.Test;
25
import org.junit.Test;
Lines 54-60 Link Here
54
        assertEquals("GetEpoch", TmfTimestamp.BigBang, eventLog.getEpoch());
54
        assertEquals("GetEpoch", TmfTimestamp.BigBang, eventLog.getEpoch());
55
        assertEquals("GetNbEvents", fTotalNbEvents, eventLog.getNbEvents());
55
        assertEquals("GetNbEvents", fTotalNbEvents, eventLog.getNbEvents());
56
56
57
        TmfTimeWindow timeRange = eventLog.getTimeRange();
57
        TmfTimeRange timeRange = eventLog.getTimeRange();
58
        assertEquals("GetTimeRange", 0, timeRange.getStartTime().getValue());
58
        assertEquals("GetTimeRange", 0, timeRange.getStartTime().getValue());
59
        assertEquals("GetTimeRange", fTotalNbEvents - 1, timeRange.getEndTime().getValue());
59
        assertEquals("GetTimeRange", fTotalNbEvents - 1, timeRange.getEndTime().getValue());
60
	}
60
	}
Lines 68-74 Link Here
68
        assertEquals("GetEpoch", epoch, eventLog.getEpoch());
68
        assertEquals("GetEpoch", epoch, eventLog.getEpoch());
69
        assertEquals("GetNbEvents", fTotalNbEvents, eventLog.getNbEvents());
69
        assertEquals("GetNbEvents", fTotalNbEvents, eventLog.getNbEvents());
70
70
71
        TmfTimeWindow timeRange = eventLog.getTimeRange();
71
        TmfTimeRange timeRange = eventLog.getTimeRange();
72
        assertEquals("GetTimeRange", 0, timeRange.getStartTime().getValue());
72
        assertEquals("GetTimeRange", 0, timeRange.getStartTime().getValue());
73
        assertEquals("GetTimeRange", fTotalNbEvents - 1, timeRange.getEndTime().getValue());
73
        assertEquals("GetTimeRange", fTotalNbEvents - 1, timeRange.getEndTime().getValue());
74
	}
74
	}
Lines 86-92 Link Here
86
        final int BLOCK_SIZE = 100;
86
        final int BLOCK_SIZE = 100;
87
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
87
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
88
88
89
        TmfTimeWindow range = new TmfTimeWindow(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
89
        TmfTimeRange range = new TmfTimeRange(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
90
        final TmfEventRequest request = new TmfEventRequest(range, 0, NB_EVENTS, BLOCK_SIZE) {
90
        final TmfEventRequest request = new TmfEventRequest(range, 0, NB_EVENTS, BLOCK_SIZE) {
91
            @Override
91
            @Override
92
            public void newEvents(Vector<TmfEvent> events) {
92
            public void newEvents(Vector<TmfEvent> events) {
Lines 118-124 Link Here
118
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
118
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
119
        int nbExpectedEvents = eventLog.getNbEvents();
119
        int nbExpectedEvents = eventLog.getNbEvents();
120
120
121
        TmfTimeWindow range = new TmfTimeWindow(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
121
        TmfTimeRange range = new TmfTimeRange(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
122
        final TmfEventRequest request = new TmfEventRequest(range, 0, NB_EVENTS, BLOCK_SIZE) {
122
        final TmfEventRequest request = new TmfEventRequest(range, 0, NB_EVENTS, BLOCK_SIZE) {
123
            @Override
123
            @Override
124
            public void newEvents(Vector<TmfEvent> events) {
124
            public void newEvents(Vector<TmfEvent> events) {
Lines 151-157 Link Here
151
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
151
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
152
        int nbExpectedEvents = TmfRequestHandlerStub.MAX_GENERATED_EVENTS;
152
        int nbExpectedEvents = TmfRequestHandlerStub.MAX_GENERATED_EVENTS;
153
153
154
        TmfTimeWindow range = new TmfTimeWindow(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
154
        TmfTimeRange range = new TmfTimeRange(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
155
        final TmfEventRequest request = new TmfEventRequest(range, OFFSET, NB_EVENTS, BLOCK_SIZE) {
155
        final TmfEventRequest request = new TmfEventRequest(range, OFFSET, NB_EVENTS, BLOCK_SIZE) {
156
            @Override
156
            @Override
157
            public void newEvents(Vector<TmfEvent> events) {
157
            public void newEvents(Vector<TmfEvent> events) {
Lines 184-190 Link Here
184
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
184
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
185
        int nbExpectedEvents = TmfRequestHandlerStub.MAX_GENERATED_EVENTS;
185
        int nbExpectedEvents = TmfRequestHandlerStub.MAX_GENERATED_EVENTS;
186
186
187
        TmfTimeWindow range = new TmfTimeWindow(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
187
        TmfTimeRange range = new TmfTimeRange(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
188
        final TmfEventRequest request = new TmfEventRequest(range, OFFSET, NB_EVENTS, BLOCK_SIZE) {
188
        final TmfEventRequest request = new TmfEventRequest(range, OFFSET, NB_EVENTS, BLOCK_SIZE) {
189
            @Override
189
            @Override
190
            public void newEvents(Vector<TmfEvent> events) {
190
            public void newEvents(Vector<TmfEvent> events) {
Lines 219-225 Link Here
219
        final int BLOCK_SIZE = 100;
219
        final int BLOCK_SIZE = 100;
220
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
220
        final Vector<TmfEvent> requestedEvents = new Vector<TmfEvent>();
221
221
222
        TmfTimeWindow range = new TmfTimeWindow(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
222
        TmfTimeRange range = new TmfTimeRange(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
223
        final TmfEventRequest request = new TmfEventRequest(range, 0, NB_EVENTS, BLOCK_SIZE) {
223
        final TmfEventRequest request = new TmfEventRequest(range, 0, NB_EVENTS, BLOCK_SIZE) {
224
            @Override
224
            @Override
225
            public void newEvents(Vector<TmfEvent> events) {
225
            public void newEvents(Vector<TmfEvent> events) {
(-)src/org/eclipse/linuxtools/tmf/event/TmfEventTypeTest.java (-1 / +1 lines)
Lines 19-25 Link Here
19
/**
19
/**
20
 * <b><u>TmfEventTypeTest</u></b>
20
 * <b><u>TmfEventTypeTest</u></b>
21
 * <p>
21
 * <p>
22
 * TODO: Implement me. Please.
22
 * JUnit test suite for the TmfEventType class.
23
 */
23
 */
24
public class TmfEventTypeTest {
24
public class TmfEventTypeTest {
25
25
(-)src/org/eclipse/linuxtools/tmf/event/TmfTimestampTest.java (-2 / +10 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
Lines 19-25 Link Here
19
/**
19
/**
20
 * <b><u>TmfTimestampTest</u></b>
20
 * <b><u>TmfTimestampTest</u></b>
21
 * <p>
21
 * <p>
22
 * TODO: Implement me. Please.
22
 * JUnit test suite for the TmfTimestamp class.
23
 */
23
 */
24
public class TmfTimestampTest {
24
public class TmfTimestampTest {
25
25
Lines 37-42 Link Here
37
37
38
    @Test
38
    @Test
39
    public void testSimpleConstructor() throws Exception {
39
    public void testSimpleConstructor() throws Exception {
40
        TmfTimestamp ts = new TmfTimestamp(12345);
41
        assertEquals("getValue", 12345, ts.getValue());
42
        assertEquals("getscale",     0, ts.getScale());
43
        assertEquals("getPrecision", 0, ts.getPrecision());
44
    }
45
46
    @Test
47
    public void testSimpleConstructor2() throws Exception {
40
        TmfTimestamp ts = new TmfTimestamp(12345, (byte) -1);
48
        TmfTimestamp ts = new TmfTimestamp(12345, (byte) -1);
41
        assertEquals("getValue", 12345, ts.getValue());
49
        assertEquals("getValue", 12345, ts.getValue());
42
        assertEquals("getscale",    -1, ts.getScale());
50
        assertEquals("getscale",    -1, ts.getScale());
(-)src/org/eclipse/linuxtools/tmf/event/TmfEventFormatTest.java (-2 / +2 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
Lines 19-25 Link Here
19
/**
19
/**
20
 * <b><u>TmfEventFormatTest</u></b>
20
 * <b><u>TmfEventFormatTest</u></b>
21
 * <p>
21
 * <p>
22
 * TODO: Implement me. Please.
22
 * JUnit test suite for the TmfEventFormat class.
23
 */
23
 */
24
public class TmfEventFormatTest {
24
public class TmfEventFormatTest {
25
25
(-)src/org/eclipse/linuxtools/tmf/event/TmfTraceEventTest.java (-3 / +2 lines)
Lines 7-16 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
14
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
15
14
16
import static org.junit.Assert.assertEquals;
15
import static org.junit.Assert.assertEquals;
Lines 20-26 Link Here
20
/**
19
/**
21
 * <b><u>TmfTraceEventTest</u></b>
20
 * <b><u>TmfTraceEventTest</u></b>
22
 * <p>
21
 * <p>
23
 * TODO: Implement me. Please.
22
 * JUnit test suite for the TmfTraceEvent class.
24
 */
23
 */
25
public class TmfTraceEventTest {
24
public class TmfTraceEventTest {
26
25
(-)src/org/eclipse/linuxtools/tmf/event/TmfEventContentTest.java (-8 / +5 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
Lines 19-25 Link Here
19
/**
19
/**
20
 * <b><u>TmfEventContentTest</u></b>
20
 * <b><u>TmfEventContentTest</u></b>
21
 * <p>
21
 * <p>
22
 * TODO: Implement me. Please.
22
 * JUnit test suite for the TmfEventContent class.
23
 */
23
 */
24
public class TmfEventContentTest {
24
public class TmfEventContentTest {
25
25
Lines 29-36 Link Here
29
29
30
	@Test
30
	@Test
31
	public void testTmfEventContent() {
31
	public void testTmfEventContent() {
32
		TmfEventContent content = new TmfEventContent("Some content",
32
		TmfEventContent content = new TmfEventContent("Some content", new TmfEventFormat());
33
				new TmfEventFormat());
34
		assertEquals("getFormat", 1, content.getFormat().getLabels().length);
33
		assertEquals("getFormat", 1, content.getFormat().getLabels().length);
35
		assertEquals("getLabels", "Content", content.getFormat().getLabels()[0]);
34
		assertEquals("getLabels", "Content", content.getFormat().getLabels()[0]);
36
		assertEquals("getContent", "Some content", content.getContent());
35
		assertEquals("getContent", "Some content", content.getContent());
Lines 42-49 Link Here
42
41
43
	@Test
42
	@Test
44
	public void testBasicGetField() {
43
	public void testBasicGetField() {
45
		TmfEventContent content = new TmfEventContent("Some content",
44
		TmfEventContent content = new TmfEventContent("Some content", new TmfEventFormat());
46
				new TmfEventFormat());
47
		assertEquals("getField", 1, content.getFields().length);
45
		assertEquals("getField", 1, content.getFields().length);
48
		assertEquals("getField", "Some content", content.getField(0).toString());
46
		assertEquals("getField", "Some content", content.getField(0).toString());
49
	}
47
	}
Lines 56-63 Link Here
56
		assertEquals("getField", "-10", content.getField(1).toString());
54
		assertEquals("getField", "-10", content.getField(1).toString());
57
		assertEquals("getField", "true", content.getField(2).toString());
55
		assertEquals("getField", "true", content.getField(2).toString());
58
		assertEquals("getField", "some string", content.getField(3).toString());
56
		assertEquals("getField", "some string", content.getField(3).toString());
59
		assertEquals("getField", "[TmfTimestamp:1,2,3]", content.getField(4)
57
		assertEquals("getField", "[TmfTimestamp:1,2,3]", content.getField(4).toString());
60
				.toString());
61
	}
58
	}
62
59
63
}
60
}
(-)src/org/eclipse/linuxtools/tmf/event/TmfEventTest.java (-17 / +68 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
Lines 19-25 Link Here
19
/**
19
/**
20
 * <b><u>TmfEventTest</u></b>
20
 * <b><u>TmfEventTest</u></b>
21
 * <p>
21
 * <p>
22
 * TODO: Implement me. Please.
22
 * JUNit test suite for the TmfEvent class.
23
 */
23
 */
24
public class TmfEventTest {
24
public class TmfEventTest {
25
25
Lines 40-68 Link Here
40
        TmfEvent event = new TmfEvent(timestamp, source, type, content, reference);
40
        TmfEvent event = new TmfEvent(timestamp, source, type, content, reference);
41
41
42
        // Check the event timestamp
42
        // Check the event timestamp
43
        TmfTimestamp evTS = event.getTimestamp();
43
        TmfTimestamp ts = event.getTimestamp();
44
        assertEquals("getValue", 12345, evTS.getValue());
44
        assertEquals("getValue", 12345, ts.getValue());
45
        assertEquals("getscale",     2, evTS.getScale());
45
        assertEquals("getscale",     2, ts.getScale());
46
        assertEquals("getPrecision", 5, evTS.getPrecision());
46
        assertEquals("getPrecision", 5, ts.getPrecision());
47
48
        // Check the original event timestamp
49
        ts = event.getOriginalTimestamp();
50
        assertEquals("getValue", 12345, ts.getValue());
51
        assertEquals("getscale",     2, ts.getScale());
52
        assertEquals("getPrecision", 5, ts.getPrecision());
53
54
        // Check the event source
55
        TmfEventSource src = event.getSource();
56
        assertEquals("getValue", "Source", src.getSourceId());
57
58
        // Check the event type
59
        TmfEventType tp = event.getType();
60
        assertEquals("getValue", "Type", tp.getTypeId());
61
        assertEquals("getFormat", "field1", tp.getFormat().getLabels()[0]);
62
        assertEquals("getFormat", "field2", tp.getFormat().getLabels()[1]);
63
64
        // Check the event content
65
        TmfEventContent cnt = event.getContent();
66
        assertEquals("getField", 1, cnt.getFields().length);
67
        assertEquals("getField", "Some content", cnt.getField(0).toString());
68
69
        // Check the event reference
70
        TmfEventReference ref = event.getReference();
71
        assertEquals("getValue", "Reference", ref.getValue());
72
    }
73
74
    @Test
75
    public void testTmfEvent2() {
76
        TmfTimestamp      original  = new TmfTimestamp(12345, (byte) 2, 5);
77
        TmfTimestamp      effective = new TmfTimestamp(12350, (byte) 2, 5);
78
        TmfEventSource    source    = new TmfEventSource("Source");
79
        TmfEventFormat    format    = new TmfEventFormat(new String[] { "field1", "field2" });
80
        TmfEventType      type      = new TmfEventType("Type", format);
81
        TmfEventContent   content   = new TmfEventContent("Some content", format);
82
        TmfEventReference reference = new TmfEventReference("Reference");
83
84
        // Create the event
85
        TmfEvent event = new TmfEvent(original, effective, source, type, content, reference);
86
87
        // Check the event timestamp
88
        TmfTimestamp ts = event.getTimestamp();
89
        assertEquals("getValue", 12350, ts.getValue());
90
        assertEquals("getscale",     2, ts.getScale());
91
        assertEquals("getPrecision", 5, ts.getPrecision());
92
93
        // Check the original event timestamp
94
        ts = event.getOriginalTimestamp();
95
        assertEquals("getValue", 12345, ts.getValue());
96
        assertEquals("getscale",     2, ts.getScale());
97
        assertEquals("getPrecision", 5, ts.getPrecision());
47
98
48
        // Check the event source
99
        // Check the event source
49
        TmfEventSource evSrc = event.getSource();
100
        TmfEventSource src = event.getSource();
50
        assertEquals("getValue", "Source", evSrc.getSourceId());
101
        assertEquals("getValue", "Source", src.getSourceId());
51
102
52
        // Check the event type
103
        // Check the event type
53
        TmfEventType evType = event.getType();
104
        TmfEventType tp = event.getType();
54
        assertEquals("getValue", "Type", evType.getTypeId());
105
        assertEquals("getValue", "Type", tp.getTypeId());
55
        assertEquals("getFormat", "field1", evType.getFormat().getLabels()[0]);
106
        assertEquals("getFormat", "field1", tp.getFormat().getLabels()[0]);
56
        assertEquals("getFormat", "field2", evType.getFormat().getLabels()[1]);
107
        assertEquals("getFormat", "field2", tp.getFormat().getLabels()[1]);
57
108
58
        // Check the event content
109
        // Check the event content
59
        TmfEventContent evContent = event.getContent();
110
        TmfEventContent cnt = event.getContent();
60
        assertEquals("getField", 1, evContent.getFields().length);
111
        assertEquals("getField", 1, cnt.getFields().length);
61
        assertEquals("getField", "Some content", evContent.getField(0).toString());
112
        assertEquals("getField", "Some content", cnt.getField(0).toString());
62
113
63
        // Check the event reference
114
        // Check the event reference
64
        TmfEventReference evRef = event.getReference();
115
        TmfEventReference ref = event.getReference();
65
        assertEquals("getValue", "Reference", evRef.getValue());
116
        assertEquals("getValue", "Reference", ref.getValue());
66
    }
117
    }
67
118
68
}
119
}
(-)src/org/eclipse/linuxtools/tmf/event/TmfTimeRangeTest.java (+82 lines)
Line 0 Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2009 Ericsson
3
 * 
4
 * All rights reserved. This program and the accompanying materials are
5
 * made 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
8
 * 
9
 * Contributors:
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
12
13
package org.eclipse.linuxtools.tmf.event;
14
15
import static org.junit.Assert.assertEquals;
16
import static org.junit.Assert.assertTrue;
17
import static org.junit.Assert.assertFalse;
18
19
import org.junit.Test;
20
21
/**
22
 * <b><u>TmfTimeRangeTest</u></b>
23
 * <p>
24
 * JUnit test suite for the TmfTimeRange class.
25
 */
26
public class TmfTimeRangeTest {
27
28
    // ========================================================================
29
    // Constructors
30
    // ========================================================================
31
32
    @Test
33
    public void testConstructor() throws Exception {
34
        TmfTimestamp ts1   = new TmfTimestamp(12345);
35
        TmfTimestamp ts2   = new TmfTimestamp(12350);
36
        TmfTimeRange range = new TmfTimeRange(ts1, ts2);
37
        assertEquals("startTime", ts1, range.getStartTime());
38
        assertEquals("endTime",   ts2, range.getEndTime());
39
    }
40
41
    @Test
42
    public void testOpenRange1() throws Exception {
43
        TmfTimestamp ts2    = new TmfTimestamp(12350);
44
        TmfTimeRange range = new TmfTimeRange(TmfTimestamp.BigBang, ts2);
45
        assertEquals("startTime", TmfTimestamp.BigBang, range.getStartTime());
46
        assertEquals("endTime",   ts2, range.getEndTime());
47
    }
48
49
    @Test
50
    public void testOpenRange2() throws Exception {
51
        TmfTimestamp ts1   = new TmfTimestamp(12345);
52
        TmfTimeRange range = new TmfTimeRange(ts1, TmfTimestamp.BigCrunch);
53
        assertEquals("startTime", ts1, range.getStartTime());
54
        assertEquals("endTime",   TmfTimestamp.BigCrunch, range.getEndTime());
55
    }
56
57
    @Test
58
    public void testOpenRange3() throws Exception {
59
        TmfTimeRange range = new TmfTimeRange(TmfTimestamp.BigBang, TmfTimestamp.BigCrunch);
60
        assertEquals("startTime", TmfTimestamp.BigBang,   range.getStartTime());
61
        assertEquals("endTime",   TmfTimestamp.BigCrunch, range.getEndTime());
62
    }
63
64
    // ========================================================================
65
    // Constructors
66
    // ========================================================================
67
68
    @Test
69
    public void testContains() throws Exception {
70
        TmfTimestamp ts1   = new TmfTimestamp(12345);
71
        TmfTimestamp ts2   = new TmfTimestamp(12350);
72
        TmfTimeRange range = new TmfTimeRange(ts1, ts2);
73
74
        assertTrue("contains (lower bound)",   range.contains(new TmfTimestamp(12345)));
75
        assertTrue("contains (higher bound)",  range.contains(new TmfTimestamp(12350)));
76
        assertTrue("contains (within bounds)", range.contains(new TmfTimestamp(12346)));
77
78
        assertFalse("contains (low value)",   range.contains(new TmfTimestamp(12340)));
79
        assertFalse("contains (high value)",  range.contains(new TmfTimestamp(12351)));
80
    }
81
82
}
(-)src/org/eclipse/linuxtools/tmf/event/AllEventTests.java (-1 / +2 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
Lines 18-23 Link Here
18
@RunWith(Suite.class)
18
@RunWith(Suite.class)
19
@Suite.SuiteClasses({
19
@Suite.SuiteClasses({
20
    TmfTimestampTest.class,
20
    TmfTimestampTest.class,
21
    TmfTimeRangeTest.class,
21
    TmfEventTypeTest.class,
22
    TmfEventTypeTest.class,
22
    TmfEventFormatTest.class,
23
    TmfEventFormatTest.class,
23
    TmfEventContentTest.class,
24
    TmfEventContentTest.class,
(-)src/org/eclipse/linuxtools/tmf/event/TmfEventType.java (-1 / +10 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
Lines 57-60 Link Here
57
        return fFormat;
57
        return fFormat;
58
    }
58
    }
59
59
60
    // ========================================================================
61
    // Operators
62
    // ========================================================================
63
64
    @Override
65
    public String toString() {
66
        return fTypeId.toString();
67
    }
68
60
}
69
}
(-)src/org/eclipse/linuxtools/tmf/event/ITmfContentParser.java (-1 / +1 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
(-)src/org/eclipse/linuxtools/tmf/event/TmfTimestamp.java (-44 / +63 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
Lines 19-38 Link Here
19
 * <p>
19
 * <p>
20
 * It provides a generic timestamp implementation in its most basic form:
20
 * It provides a generic timestamp implementation in its most basic form:
21
 * <ul>
21
 * <ul>
22
 * <li> an unstructured integer value
22
 * <li>an unstructured integer value
23
 * <li> a time scale corresponding to the magnitude of the value wrt some
23
 * <li>a time scale corresponding to the magnitude of the value wrt some
24
 *      application-specific base unit (e.g. the second)
24
 * application-specific base unit (e.g. the second)
25
 * <li> a precision to indicate the error on the value (useful for comparing
25
 * <li>a precision to indicate the error on the value (useful for comparing
26
 *      timestamps in different scales). Default: 0.
26
 * timestamps in different scales). Default: 0.
27
 * </ul>
27
 * </ul>
28
 * To allow synchronization of timestamps from different reference clocks,
28
 * To allow synchronization of timestamps from different reference clocks, there
29
 * there is a possibility to "adjust" the timestamp both by changing its
29
 * is a possibility to "adjust" the timestamp both by changing its scale (traces
30
 * scale (traces of different scale) and by adding an offset to its value
30
 * of different scale) and by adding an offset to its value (clock drift between
31
 * (clock drift between traces). 
31
 * traces).
32
 * <p>
32
 * <p>
33
 * Note that the adjusted timestamp value could be negative e.g. for events
33
 * Note that the adjusted timestamp value could be negative e.g. for events that
34
 * that occurred before t0 of the reference clock.
34
 * occurred before t0 of the reference clock.
35
 *
35
 * 
36
 */
36
 */
37
public class TmfTimestamp {
37
public class TmfTimestamp {
38
38
Lines 40-55 Link Here
40
    // Attributes
40
    // Attributes
41
    // ========================================================================
41
    // ========================================================================
42
42
43
    private final long fValue;       // The timestamp value
43
    protected final long fValue; // The timestamp value
44
    private final byte fScale;       // The time scale 
44
    protected final byte fScale; // The time scale
45
    private final long fPrecision;   // The value precision (tolerance)
45
    protected final long fPrecision; // The value precision (tolerance)
46
46
47
    // ========================================================================
47
    // ========================================================================
48
    // Constants
48
    // Constants
49
    // ========================================================================
49
    // ========================================================================
50
50
51
    // The beginning and end of time
51
    // The beginning and end of time
52
    public static final TmfTimestamp BigBang   = new TmfTimestamp(0, (byte) 0, 0);
52
    public static final TmfTimestamp BigBang = new TmfTimestamp(0, (byte) 0, 0);
53
    public static final TmfTimestamp BigCrunch = new TmfTimestamp(Long.MAX_VALUE, Byte.MAX_VALUE, 0);
53
    public static final TmfTimestamp BigCrunch = new TmfTimestamp(Long.MAX_VALUE, Byte.MAX_VALUE, 0);
54
54
55
    // ========================================================================
55
    // ========================================================================
Lines 57-73 Link Here
57
    // ========================================================================
57
    // ========================================================================
58
58
59
    /**
59
    /**
60
     * Default constructor. 
60
     * Default constructor.
61
     */
61
     */
62
    public TmfTimestamp() {
62
    public TmfTimestamp() {
63
        this(0, (byte) 0, 0);
63
        this(0, (byte) 0, 0);
64
    }
64
    }
65
65
66
    /**
66
    /**
67
     * Simple constructor.
68
     */
69
    public TmfTimestamp(long value) {
70
        this(value, (byte) 0, 0);
71
    }
72
73
    /**
67
     * Simple constructor with default error value
74
     * Simple constructor with default error value
68
     * 
75
     * 
69
     * @param value - the original time value
76
     * @param value
70
     * @param scale - the time scale
77
     * @param scale
71
     */
78
     */
72
    public TmfTimestamp(long value, byte scale) {
79
    public TmfTimestamp(long value, byte scale) {
73
        this(value, scale, 0);
80
        this(value, scale, 0);
Lines 76-84 Link Here
76
    /**
83
    /**
77
     * Constructor with measurement error.
84
     * Constructor with measurement error.
78
     * 
85
     * 
79
     * @param value - the time value
86
     * @param value
80
     * @param scale - the time scale
87
     * @param scale
81
     * @param precision - the value precision (tolerance)
88
     * @param precision
82
     */
89
     */
83
    public TmfTimestamp(long value, byte scale, long precision) {
90
    public TmfTimestamp(long value, byte scale, long precision) {
84
        fValue = value;
91
        fValue = value;
Lines 89-95 Link Here
89
    /**
96
    /**
90
     * Copy constructor.
97
     * Copy constructor.
91
     * 
98
     * 
92
     * @param other - the timestamp to clone
99
     * @param other
93
     */
100
     */
94
    public TmfTimestamp(TmfTimestamp other) {
101
    public TmfTimestamp(TmfTimestamp other) {
95
        this(other.fValue, other.fScale, other.fPrecision);
102
        this(other.fValue, other.fScale, other.fPrecision);
Lines 124-134 Link Here
124
    // Operators
131
    // Operators
125
    // ========================================================================
132
    // ========================================================================
126
133
127
    @Override
128
    public String toString() {
129
        return "[TmfTimestamp:" + fValue + "," + fScale + "," + fPrecision + "]";
130
    }
131
132
    /**
134
    /**
133
     * Return a shifted and scaled timestamp.
135
     * Return a shifted and scaled timestamp.
134
     * 
136
     * 
Lines 137-145 Link Here
137
     * meaning beyond that scale difference and it's not even worth the trouble
139
     * meaning beyond that scale difference and it's not even worth the trouble
138
     * to switch to BigDecimal arithmetics.
140
     * to switch to BigDecimal arithmetics.
139
     * 
141
     * 
140
     * @param offset - the shift value (in the same scale as newScale)
142
     * @param offset
141
     * @param newScale - the new scale
143
     *            - the shift value (in the same scale as newScale)
142
     * @return The synchronized timestamp 
144
     * @param newScale
145
     *            - the new scale
146
     * @return The synchronized timestamp
143
     */
147
     */
144
148
145
    /*
149
    /*
Lines 150-155 Link Here
150
     * difference in scale exceeds that value.
154
     * difference in scale exceeds that value.
151
     */
155
     */
152
    private static int MAX_SCALING = 19;
156
    private static int MAX_SCALING = 19;
157
153
    public TmfTimestamp synchronize(long offset, byte newScale) throws ArithmeticException {
158
    public TmfTimestamp synchronize(long offset, byte newScale) throws ArithmeticException {
154
        long newValue = fValue;
159
        long newValue = fValue;
155
        long newPrecision = fPrecision;
160
        long newPrecision = fPrecision;
Lines 161-168 Link Here
161
            if (scaleDiff > MAX_SCALING) {
166
            if (scaleDiff > MAX_SCALING) {
162
                throw new ArithmeticException("Scaling exception");
167
                throw new ArithmeticException("Scaling exception");
163
            }
168
            }
169
            // Not pretty...
164
            long scalingFactor = 1;
170
            long scalingFactor = 1;
165
            for (int i = 0; i < Math.abs(fScale - newScale); i++) {
171
            for (int i = 0; i < scaleDiff; i++) {
166
                scalingFactor *= 10;
172
                scalingFactor *= 10;
167
            }
173
            }
168
            if (newScale < fScale) {
174
            if (newScale < fScale) {
Lines 179-187 Link Here
179
185
180
    /**
186
    /**
181
     * Compute the adjustment, in the reference scale, needed to synchronize
187
     * Compute the adjustment, in the reference scale, needed to synchronize
182
     *  this timestamp with a reference timestamp.
188
     * this timestamp with a reference timestamp.
183
     * 
189
     * 
184
     * @param reference - the reference timestamp to synchronize with
190
     * @param reference
191
     *            - the reference timestamp to synchronize with
185
     * @return The adjustment term in the reference time scale
192
     * @return The adjustment term in the reference time scale
186
     * @throws TmfNumericalException
193
     * @throws TmfNumericalException
187
     */
194
     */
Lines 193-203 Link Here
193
    /**
200
    /**
194
     * Compare with another timestamp
201
     * Compare with another timestamp
195
     * 
202
     * 
196
     * @param other - the otehr timestamp
203
     * @param other
197
     * @param withinPrecision - indicates if precision is to be take into consideration
204
     *            - the other timestamp
198
     * @return <li> -1: this timestamp is lower
205
     * @param withinPrecision
199
     *         <li>  0: timestamps are equal (within precision if requested)
206
     *            - indicates if precision is to be take into consideration
200
     *         <li>  1: this timestamp is higher 
207
     * @return <li>-1: this timestamp is lower <li>0: timestamps are equal
208
     *         (within precision if requested) <li>1: this timestamp is higher
201
     * @throws TmfNumericalException
209
     * @throws TmfNumericalException
202
     */
210
     */
203
    public int compareTo(final TmfTimestamp other, boolean withinPrecision) {
211
    public int compareTo(final TmfTimestamp other, boolean withinPrecision) {
Lines 211-218 Link Here
211
                    return 1;
219
                    return 1;
212
                return 0;
220
                return 0;
213
            }
221
            }
214
            return (fValue == other.fValue) ?  0 :
222
            return (fValue == other.fValue) ? 0 : (fValue < other.fValue) ? -1
215
                   (fValue  < other.fValue) ? -1 : 1;
223
                    : 1;
216
        }
224
        }
217
225
218
        // If values have different time scales, adjust to the finest one and
226
        // If values have different time scales, adjust to the finest one and
Lines 226-232 Link Here
226
            return ts1.compareTo(ts2, withinPrecision);
234
            return ts1.compareTo(ts2, withinPrecision);
227
        } catch (ArithmeticException e) {
235
        } catch (ArithmeticException e) {
228
            if ((fValue == 0) || (other.fValue == 0)) {
236
            if ((fValue == 0) || (other.fValue == 0)) {
229
                return (fValue == other.fValue) ? 0 : (fValue < other.fValue) ? -1 : 1;
237
                return (fValue == other.fValue) ? 0
238
                        : (fValue < other.fValue) ? -1 : 1;
230
            }
239
            }
231
            if ((fValue > 0) && (other.fValue > 0)) {
240
            if ((fValue > 0) && (other.fValue > 0)) {
232
                return (fScale < other.fScale) ? -1 : 1;
241
                return (fScale < other.fScale) ? -1 : 1;
Lines 238-244 Link Here
238
        }
247
        }
239
    }
248
    }
240
249
241
    /* (non-Javadoc)
250
    /*
251
     * (non-Javadoc)
252
     * 
242
     * @see java.lang.Object#equals(java.lang.Object)
253
     * @see java.lang.Object#equals(java.lang.Object)
243
     */
254
     */
244
    @Override
255
    @Override
Lines 248-251 Link Here
248
        return super.equals(other);
259
        return super.equals(other);
249
    }
260
    }
250
261
262
    /* (non-Javadoc)
263
     * @see java.lang.Object#toString()
264
     */
265
    @Override
266
    public String toString() {
267
    	return "[TmfTimestamp:" + fValue + "," + fScale + "," + fPrecision + "]";
268
    }
269
251
}
270
}
(-)src/org/eclipse/linuxtools/tmf/event/TmfEventField.java (-1 / +2 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
Lines 57-60 Link Here
57
    public String toString() {
57
    public String toString() {
58
        return fValue.toString();
58
        return fValue.toString();
59
    }
59
    }
60
60
}
61
}
(-)src/org/eclipse/linuxtools/tmf/event/TmfEventSource.java (-1 / +11 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
Lines 53-56 Link Here
53
	public Object getSourceId() {
53
	public Object getSourceId() {
54
		return fSourceId;
54
		return fSourceId;
55
	}
55
	}
56
57
	// ========================================================================
58
    // Operators
59
    // ========================================================================
60
61
    @Override
62
    public String toString() {
63
        return fSourceId.toString();
64
    }
65
56
}
66
}
(-)src/org/eclipse/linuxtools/tmf/event/TmfTimeRange.java (-3 / +19 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
Lines 17-23 Link Here
17
 * <p>
17
 * <p>
18
 * A utility class to define time ranges.
18
 * A utility class to define time ranges.
19
 */
19
 */
20
public class TmfTimeWindow {
20
public class TmfTimeRange {
21
21
22
    // ========================================================================
22
    // ========================================================================
23
    // Attributes
23
    // Attributes
Lines 34-40 Link Here
34
	 * @param startTime
34
	 * @param startTime
35
	 * @param endTime
35
	 * @param endTime
36
	 */
36
	 */
37
	public TmfTimeWindow(TmfTimestamp startTime, TmfTimestamp endTime) {
37
	public TmfTimeRange(TmfTimestamp startTime, TmfTimestamp endTime) {
38
		fStartTime = startTime;
38
		fStartTime = startTime;
39
		fEndTime   = endTime;
39
		fEndTime   = endTime;
40
	}
40
	}
Lines 56-59 Link Here
56
	public TmfTimestamp getEndTime() {
56
	public TmfTimestamp getEndTime() {
57
		return fEndTime;
57
		return fEndTime;
58
	}
58
	}
59
60
    // ========================================================================
61
    // Predicates
62
    // ========================================================================
63
64
	/**
65
	 * Check if the timestamp is within the time range
66
	 * 
67
	 * @param ts
68
	 * @return
69
	 */
70
	public boolean contains(TmfTimestamp ts) {
71
		boolean result = (fStartTime.compareTo(ts, true) <= 0) && (fEndTime.compareTo(ts, true) >= 0);
72
		return result;
73
	}
74
59
}
75
}
(-)src/org/eclipse/linuxtools/tmf/event/TmfEventContent.java (-1 / +1 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
(-)src/org/eclipse/linuxtools/tmf/event/TmfTimeWindow.java (-59 lines)
Lines 1-59 Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2009 Ericsson
3
 * 
4
 * All rights reserved. This program and the accompanying materials are
5
 * made 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
8
 * 
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
11
 *******************************************************************************/
12
13
package org.eclipse.linuxtools.tmf.event;
14
15
/**
16
 * <b><u>TmfTimeWindow</u></b>
17
 * <p>
18
 * A utility class to define time ranges.
19
 */
20
public class TmfTimeWindow {
21
22
    // ========================================================================
23
    // Attributes
24
    // ========================================================================
25
26
	private final TmfTimestamp fStartTime;
27
	private final TmfTimestamp fEndTime;
28
29
    // ========================================================================
30
    // Constructors
31
    // ========================================================================
32
33
	/**
34
	 * @param startTime
35
	 * @param endTime
36
	 */
37
	public TmfTimeWindow(TmfTimestamp startTime, TmfTimestamp endTime) {
38
		fStartTime = startTime;
39
		fEndTime   = endTime;
40
	}
41
42
    // ========================================================================
43
    // Accessors
44
    // ========================================================================
45
46
	/**
47
	 * @return The time range start time
48
	 */
49
	public TmfTimestamp getStartTime() {
50
		return fStartTime;
51
	}
52
53
	/**
54
	 * @return The time range end time
55
	 */
56
	public TmfTimestamp getEndTime() {
57
		return fEndTime;
58
	}
59
}
(-)src/org/eclipse/linuxtools/tmf/event/TmfTraceEvent.java (-1 / +20 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
Lines 45-50 Link Here
45
	 * @param content
45
	 * @param content
46
	 * @param reference
46
	 * @param reference
47
	 */
47
	 */
48
	public TmfTraceEvent(TmfTimestamp originalTS, TmfTimestamp effectiveTS, TmfEventSource source,
49
			TmfEventType type, TmfEventContent content, TmfEventReference reference,
50
			String path, String file, int line)
51
	{
52
		super(originalTS, effectiveTS, source, type,content, reference);
53
		fSourcePath = path;
54
		fFileName = file;
55
		fLineNumber = line;
56
	}
57
58
	/**
59
	 * The constructor.
60
	 * 
61
	 * @param timestamp
62
	 * @param source
63
	 * @param type
64
	 * @param content
65
	 * @param reference
66
	 */
48
	public TmfTraceEvent(TmfTimestamp timestamp, TmfEventSource source, TmfEventType type,
67
	public TmfTraceEvent(TmfTimestamp timestamp, TmfEventSource source, TmfEventType type,
49
			TmfEventContent content, TmfEventReference reference,
68
			TmfEventContent content, TmfEventReference reference,
50
			String path, String file, int line)
69
			String path, String file, int line)
(-)src/org/eclipse/linuxtools/tmf/event/TmfEventFormat.java (-1 / +2 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
Lines 68-71 Link Here
68
	public TmfEventField[] parse(Object content) {
68
	public TmfEventField[] parse(Object content) {
69
        return new TmfEventField[] { new TmfEventField(content.toString()) };
69
        return new TmfEventField[] { new TmfEventField(content.toString()) };
70
    }
70
    }
71
71
}
72
}
(-)src/org/eclipse/linuxtools/tmf/event/TmfEvent.java (-9 / +34 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
Lines 15-23 Link Here
15
/**
15
/**
16
 * <b><u>TmfEvent</u></b>
16
 * <b><u>TmfEvent</u></b>
17
 * <p>
17
 * <p>
18
 * The basic event structure in the TMF.
18
 * The basic event structure in the TMF. In its canonical form, an event has:
19
 * <p>
20
 * In its canonical form, an event has:
21
 * <ul>
19
 * <ul>
22
 * <li> a normalized timestamp
20
 * <li> a normalized timestamp
23
 * <li> a source (reporter)
21
 * <li> a source (reporter)
Lines 34-40 Link Here
34
    // Attributes
32
    // Attributes
35
    // ========================================================================
33
    // ========================================================================
36
34
37
	private final TmfTimestamp fTimestamp;
35
	private final TmfTimestamp fEffectiveTimestamp;
36
	private final TmfTimestamp fOriginalTimestamp;
38
	private final TmfEventSource fSource;
37
	private final TmfEventSource fSource;
39
	private final TmfEventType fType;
38
	private final TmfEventType fType;
40
	private final TmfEventContent fContent;
39
	private final TmfEventContent fContent;
Lines 51-60 Link Here
51
	 * @param content
50
	 * @param content
52
	 * @param reference
51
	 * @param reference
53
	 */
52
	 */
54
	public TmfEvent(TmfTimestamp timestamp, TmfEventSource source, TmfEventType type,
53
	public TmfEvent(TmfTimestamp originalTS, TmfTimestamp effectiveTS, TmfEventSource source,
55
			TmfEventContent content, TmfEventReference reference)
54
			TmfEventType type, TmfEventContent content, TmfEventReference reference)
56
	{
55
	{
57
		fTimestamp = timestamp;
56
		fOriginalTimestamp = originalTS;
57
		fEffectiveTimestamp = effectiveTS;
58
		fSource = source;
59
		fType = type;
60
		fContent = content;
61
		fReference = reference;
62
	}
63
64
	/**
65
	 * @param timestamp
66
	 * @param source
67
	 * @param type
68
	 * @param content
69
	 * @param reference
70
	 */
71
	public TmfEvent(TmfTimestamp timestamp, TmfEventSource source,
72
			TmfEventType type, TmfEventContent content, TmfEventReference reference)
73
	{
74
		fOriginalTimestamp = fEffectiveTimestamp = timestamp;
58
		fSource = source;
75
		fSource = source;
59
		fType = type;
76
		fType = type;
60
		fContent = content;
77
		fContent = content;
Lines 69-75 Link Here
69
	 * @return
86
	 * @return
70
	 */
87
	 */
71
	public TmfTimestamp getTimestamp() {
88
	public TmfTimestamp getTimestamp() {
72
		return fTimestamp;
89
		return fEffectiveTimestamp;
90
	}
91
92
	/**
93
	 * @return
94
	 */
95
	public TmfTimestamp getOriginalTimestamp() {
96
		return fOriginalTimestamp;
73
	}
97
	}
74
98
75
	/**
99
	/**
Lines 99-102 Link Here
99
	public TmfEventReference getReference() {
123
	public TmfEventReference getReference() {
100
		return fReference;
124
		return fReference;
101
	}
125
	}
126
102
}
127
}
(-)src/org/eclipse/linuxtools/tmf/event/TmfEventReference.java (-1 / +11 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf.event;
13
package org.eclipse.linuxtools.tmf.event;
Lines 46-49 Link Here
46
	public Object getValue() {
46
	public Object getValue() {
47
		return fReference;
47
		return fReference;
48
	}
48
	}
49
50
    // ========================================================================
51
    // Operators
52
    // ========================================================================
53
54
    @Override
55
    public String toString() {
56
        return fReference.toString();
57
    }
58
49
}
59
}
(-)src/org/eclipse/linuxtools/tmf/TmfCorePlugin.java (-6 / +6 lines)
Lines 7-13 Link Here
7
 * http://www.eclipse.org/legal/epl-v10.html
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 * 
8
 * 
9
 * Contributors:
9
 * Contributors:
10
 *   Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
10
 *   Francois Chouinard - Initial API and implementation
11
 *******************************************************************************/
11
 *******************************************************************************/
12
12
13
package org.eclipse.linuxtools.tmf;
13
package org.eclipse.linuxtools.tmf;
Lines 16-26 Link Here
16
import org.osgi.framework.BundleContext;
16
import org.osgi.framework.BundleContext;
17
17
18
/**
18
/**
19
 * <b><u>Activator</u></b>
19
 * <b><u>TmfCorePlugin</u></b>
20
 * <p>
20
 * <p>
21
 * The activator class controls the plug-in life cycle
21
 * The activator class controls the plug-in life cycle
22
 */
22
 */
23
public class Activator extends AbstractUIPlugin {
23
public class TmfCorePlugin extends AbstractUIPlugin {
24
24
25
    // ========================================================================
25
    // ========================================================================
26
    // Attributes
26
    // Attributes
Lines 30-36 Link Here
30
	public static final String PLUGIN_ID = "org.eclipse.linuxtools.tmf";
30
	public static final String PLUGIN_ID = "org.eclipse.linuxtools.tmf";
31
31
32
	// The shared instance
32
	// The shared instance
33
	private static Activator plugin;
33
	private static TmfCorePlugin plugin;
34
	
34
	
35
    // ========================================================================
35
    // ========================================================================
36
    // Constructors
36
    // Constructors
Lines 39-45 Link Here
39
	/**
39
	/**
40
	 * The constructor
40
	 * The constructor
41
	 */
41
	 */
42
	public Activator() {
42
	public TmfCorePlugin() {
43
	}
43
	}
44
44
45
    // ========================================================================
45
    // ========================================================================
Lines 49-55 Link Here
49
    /**
49
    /**
50
     * @return the shared instance
50
     * @return the shared instance
51
     */
51
     */
52
    public static Activator getDefault() {
52
    public static TmfCorePlugin getDefault() {
53
        return plugin;
53
        return plugin;
54
    }
54
    }
55
55
(-)src/org/eclipse/linuxtools/tmf/eventlog/TmfEventRequest.java (-5 / +5 lines)
Lines 15-21 Link Here
15
import java.util.Vector;
15
import java.util.Vector;
16
16
17
import org.eclipse.linuxtools.tmf.event.TmfEvent;
17
import org.eclipse.linuxtools.tmf.event.TmfEvent;
18
import org.eclipse.linuxtools.tmf.event.TmfTimeWindow;
18
import org.eclipse.linuxtools.tmf.event.TmfTimeRange;
19
19
20
/**
20
/**
21
 * <b><u>TmfEventRequest</u></b>
21
 * <b><u>TmfEventRequest</u></b>
Lines 68-74 Link Here
68
    // Attributes
68
    // Attributes
69
    // ========================================================================
69
    // ========================================================================
70
70
71
    private final TmfTimeWindow fRange;     // The requested events timestamp range
71
    private final TmfTimeRange fRange;     // The requested events timestamp range
72
    private final long fOffset;             // The synchronization offset to apply
72
    private final long fOffset;             // The synchronization offset to apply
73
    private final int  fNbRequestedEvents;  // The number of events to read (-1 == the whole range)
73
    private final int  fNbRequestedEvents;  // The number of events to read (-1 == the whole range)
74
    private final int  fBlockSize;          // The maximum number of events per chunk
74
    private final int  fBlockSize;          // The maximum number of events per chunk
Lines 86-92 Link Here
86
     * @param offset
86
     * @param offset
87
     * @param nbEvents
87
     * @param nbEvents
88
     */
88
     */
89
    public TmfEventRequest(TmfTimeWindow range, long offset, int nbEvents) {
89
    public TmfEventRequest(TmfTimeRange range, long offset, int nbEvents) {
90
        this(range, offset, nbEvents, DEFAULT_BLOCK_SIZE);
90
        this(range, offset, nbEvents, DEFAULT_BLOCK_SIZE);
91
    }
91
    }
92
92
Lines 96-102 Link Here
96
     * @param nbEvents
96
     * @param nbEvents
97
     * @param maxBlockSize Size of the largest blocks expected
97
     * @param maxBlockSize Size of the largest blocks expected
98
     */
98
     */
99
    public TmfEventRequest(TmfTimeWindow range, long offset, int nbEvents, int maxBlockSize) {
99
    public TmfEventRequest(TmfTimeRange range, long offset, int nbEvents, int maxBlockSize) {
100
        fRange = range;
100
        fRange = range;
101
        fOffset = offset;
101
        fOffset = offset;
102
        fNbRequestedEvents = nbEvents;
102
        fNbRequestedEvents = nbEvents;
Lines 110-116 Link Here
110
    /**
110
    /**
111
     * @return the requested time range
111
     * @return the requested time range
112
     */
112
     */
113
    public TmfTimeWindow getRange() {
113
    public TmfTimeRange getRange() {
114
        return fRange;
114
        return fRange;
115
    }
115
    }
116
116
(-)src/org/eclipse/linuxtools/tmf/eventlog/TmfTrace.java (-2 / +2 lines)
Lines 16-22 Link Here
16
import java.util.Vector;
16
import java.util.Vector;
17
17
18
import org.eclipse.linuxtools.tmf.event.TmfEvent;
18
import org.eclipse.linuxtools.tmf.event.TmfEvent;
19
import org.eclipse.linuxtools.tmf.event.TmfTimeWindow;
19
import org.eclipse.linuxtools.tmf.event.TmfTimeRange;
20
import org.eclipse.linuxtools.tmf.event.TmfTimestamp;
20
import org.eclipse.linuxtools.tmf.event.TmfTimestamp;
21
21
22
/**
22
/**
Lines 79-85 Link Here
79
    	return fEpoch;
79
    	return fEpoch;
80
    }
80
    }
81
81
82
    public TmfTimeWindow getTimeRange() {
82
    public TmfTimeRange getTimeRange() {
83
    	return fStream.getTimeRange();
83
    	return fStream.getTimeRange();
84
    }
84
    }
85
85
(-)src/org/eclipse/linuxtools/tmf/eventlog/TmfEventStream.java (-4 / +4 lines)
Lines 19-25 Link Here
19
import java.util.Vector;
19
import java.util.Vector;
20
20
21
import org.eclipse.linuxtools.tmf.event.TmfEvent;
21
import org.eclipse.linuxtools.tmf.event.TmfEvent;
22
import org.eclipse.linuxtools.tmf.event.TmfTimeWindow;
22
import org.eclipse.linuxtools.tmf.event.TmfTimeRange;
23
import org.eclipse.linuxtools.tmf.event.TmfTimestamp;
23
import org.eclipse.linuxtools.tmf.event.TmfTimestamp;
24
24
25
/**
25
/**
Lines 55-61 Link Here
55
    private int fNbEvents = 0;
55
    private int fNbEvents = 0;
56
56
57
    // The time span of the event stream 
57
    // The time span of the event stream 
58
    private TmfTimeWindow fTimeRange = new TmfTimeWindow(TmfTimestamp.BigBang, TmfTimestamp.BigBang);
58
    private TmfTimeRange fTimeRange = new TmfTimeRange(TmfTimestamp.BigBang, TmfTimestamp.BigBang);
59
    
59
    
60
    // ========================================================================
60
    // ========================================================================
61
    // Constructors
61
    // Constructors
Lines 105-111 Link Here
105
    /**
105
    /**
106
     * @return
106
     * @return
107
     */
107
     */
108
    public TmfTimeWindow getTimeRange() {
108
    public TmfTimeRange getTimeRange() {
109
        return fTimeRange;
109
        return fTimeRange;
110
    }
110
    }
111
111
Lines 184-190 Link Here
184
                    location = getCurrentLocation();
184
                    location = getCurrentLocation();
185
                    event = getNextEvent();
185
                    event = getNextEvent();
186
                }
186
                }
187
                fTimeRange = new TmfTimeWindow(startTime, lastTime);
187
                fTimeRange = new TmfTimeRange(startTime, lastTime);
188
            }
188
            }
189
            seek(0);
189
            seek(0);
190
        } catch (IOException e) {
190
        } catch (IOException e) {
(-)META-INF/MANIFEST.MF (-2 / +3 lines)
Lines 3-9 Link Here
3
Bundle-Name: TMF
3
Bundle-Name: TMF
4
Bundle-SymbolicName: org.eclipse.linuxtools.tmf
4
Bundle-SymbolicName: org.eclipse.linuxtools.tmf
5
Bundle-Version: 0.0.1
5
Bundle-Version: 0.0.1
6
Bundle-Activator: org.eclipse.linuxtools.tmf.Activator
6
Bundle-Activator: org.eclipse.linuxtools.tmf.TmfCorePlugin
7
Bundle-Vendor: Eclipse
7
Bundle-Vendor: Eclipse
8
Require-Bundle: org.eclipse.ui,
8
Require-Bundle: org.eclipse.ui,
9
 org.eclipse.core.runtime,
9
 org.eclipse.core.runtime,
Lines 11-15 Link Here
11
Bundle-RequiredExecutionEnvironment: J2SE-1.5
11
Bundle-RequiredExecutionEnvironment: J2SE-1.5
12
Bundle-ActivationPolicy: lazy
12
Bundle-ActivationPolicy: lazy
13
Import-Package: org.junit.runner
13
Import-Package: org.junit.runner
14
Export-Package: org.eclipse.linuxtools.tmf.event,
14
Export-Package: org.eclipse.linuxtools.tmf,
15
 org.eclipse.linuxtools.tmf.event,
15
 org.eclipse.linuxtools.tmf.eventlog
16
 org.eclipse.linuxtools.tmf.eventlog

Return to bug 287562