Simplify TmfEvent constructors and update javadoc
authorFrancois Chouinard <fchouinard@gmail.com>
Thu, 26 Apr 2012 01:16:27 +0000 (21:16 -0400)
committerFrancois Chouinard <fchouinard@gmail.com>
Fri, 27 Apr 2012 03:02:53 +0000 (23:02 -0400)
25 files changed:
org.eclipse.linuxtools.lttng.core/src/org/eclipse/linuxtools/internal/lttng/core/event/LttngEvent.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/event/TmfEventTest.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfEvent.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfEventField.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfEventType.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/ITmfTimestamp.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfEvent.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfEventField.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfEventType.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfEventTypeManager.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfSimpleTimestamp.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfTimeRange.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/event/TmfTimestamp.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfCheckpoint.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfContext.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfEventParser.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfLocation.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfTrace.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/ITmfTraceIndexer.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfCheckpoint.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfCheckpointIndexer.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfContext.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfLocation.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/parsers/custom/CustomEvent.java

index 5c31875b551408a8ff0a1075d0478724890f869c..2da279c6eb8ad5a9264c5346f64f9ea0e75aa62f 100644 (file)
@@ -46,8 +46,7 @@ public class LttngEvent extends TmfEvent {
     public LttngEvent(TmfTrace<LttngEvent> parent, LttngTimestamp timestamp, String source, LttngEventType type, LttngEventContent content,
             String reference, JniEvent lttEvent)
     {
-        super(timestamp, source, type, reference);
-        super.setContent(content);
+        super(parent, timestamp, source, type, content, reference);
         jniEventReference = lttEvent;
         super.setTrace(parent);
     }
index d16b7e1798597a4f3854efc0d47e9e2342029ad9..3ae06dac223e1aa0efacb2b469308bbe58c95bc2 100644 (file)
@@ -33,6 +33,7 @@ import org.eclipse.linuxtools.tmf.core.event.TmfTimestamp;
 import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
 import org.eclipse.linuxtools.tmf.core.tests.TmfCoreTestPlugin;
 import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
+import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
 import org.eclipse.linuxtools.tmf.tests.stubs.trace.TmfTraceStub;
 
 /**
@@ -132,7 +133,7 @@ public class TmfEventTest extends TestCase {
     public void testDefaultConstructor() {
         final ITmfEvent event = new TmfEvent();
         assertNull("getTrace", event.getTrace());
-        assertEquals("getRank", -1, event.getRank());
+        assertEquals("getRank", TmfContext.UNKNOWN_RANK, event.getRank());
         assertNull("getTimestamp", event.getTimestamp());
         assertNull("getSource", event.getSource());
         assertNull("getType", event.getType());
@@ -161,7 +162,7 @@ public class TmfEventTest extends TestCase {
     public void testNoRankConstructor() {
         final TmfEvent event = new TmfEvent(null, fTimestamp1, fSource, fType, fContent1, fReference1);
         assertNull("getTrace", event.getTrace());
-        assertEquals("getRank", -1, event.getRank());
+        assertEquals("getRank", TmfContext.UNKNOWN_RANK, event.getRank());
         assertEquals("getTimestamp", fTimestamp1, event.getTimestamp());
         assertEquals("getSource", fSource, event.getSource());
         assertEquals("getType", fType, event.getType());
@@ -169,28 +170,6 @@ public class TmfEventTest extends TestCase {
         assertEquals("getReference", fReference1, event.getReference());
     }
 
-    public void testNoRankContentConstructor() {
-        final TmfEvent event = new TmfEvent(null, fTimestamp1, fSource, fType, fReference1);
-        assertNull("getTrace", event.getTrace());
-        assertEquals("getRank", -1, event.getRank());
-        assertEquals("getTimestamp", fTimestamp1, event.getTimestamp());
-        assertEquals("getSource", fSource, event.getSource());
-        assertEquals("getType", fType, event.getType());
-        assertNull("getContent", event.getContent());
-        assertEquals("getReference", fReference1, event.getReference());
-    }
-
-    public void testNoTraceRankContentConstructor() {
-        final TmfEvent event = new TmfEvent(fTimestamp1, fSource, fType, fReference1);
-        assertNull("getTrace", event.getTrace());
-        assertEquals("getRank", -1, event.getRank());
-        assertEquals("getTimestamp", fTimestamp1, event.getTimestamp());
-        assertEquals("getSource", fSource, event.getSource());
-        assertEquals("getType", fType, event.getType());
-        assertNull("getContent", event.getContent());
-        assertEquals("getReference", fReference1, event.getReference());
-    }
-
     public void testConstructorWithTrace() {
         final ITmfTrace<TmfEvent> trace = openTrace();
         final TmfEvent event = new TmfEvent(trace, 0, fTimestamp1, fSource, fType, fContent1, fReference1);
index d27d3c44f86d4701c09eaaee81b78eb6e82b3268..a3ffdcacff13da529c5e06703d838056144abd16 100644 (file)
@@ -15,7 +15,7 @@ package org.eclipse.linuxtools.tmf.core.event;
 import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
 
 /**
- * The basic event structure in TMF. In its canonical form, a data item has:
+ * The generic event structure in TMF. In its canonical form, an event has:
  * <ul>
  * <li> a parent trace
  * <li> a rank (order within the trace)
@@ -34,7 +34,7 @@ import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
  *
  * @see ITmfTimestamp
  * @see ITmfEventType
- * @see ITmfEvetnField
+ * @see ITmfEventField
  * @see TmfEvent
  */
 public interface ITmfEvent extends Cloneable {
@@ -44,12 +44,28 @@ public interface ITmfEvent extends Cloneable {
     // ------------------------------------------------------------------------
 
     /**
-     * Pre-defined event attributes
+     * Pre-defined event timestamp attribute (for searching &filtering purposes)
      */
     public static final String EVENT_FIELD_TIMESTAMP = ":timestamp:"; //$NON-NLS-1$
-    public static final String EVENT_FIELD_SOURCE    = ":source:";    //$NON-NLS-1$
-    public static final String EVENT_FIELD_TYPE      = ":type:";      //$NON-NLS-1$
-    public static final String EVENT_FIELD_CONTENT   = ":content:";   //$NON-NLS-1$
+
+    /**
+     * Pre-defined event source attribute (for searching &filtering purposes)
+     */
+    public static final String EVENT_FIELD_SOURCE = ":source:"; //$NON-NLS-1$
+
+    /**
+     * Pre-defined event type attribute (for searching &filtering purposes)
+     */
+    public static final String EVENT_FIELD_TYPE = ":type:"; //$NON-NLS-1$
+
+    /**
+     * Pre-defined event content attribute (for searching &filtering purposes)
+     */
+    public static final String EVENT_FIELD_CONTENT = ":content:"; //$NON-NLS-1$
+
+    /**
+     * Pre-defined event reference attribute (for searching &filtering purposes)
+     */
     public static final String EVENT_FIELD_REFERENCE = ":reference:"; //$NON-NLS-1$
 
     // ------------------------------------------------------------------------
index 9cd575ec837f6af7ba0390493cd0bbf4185147fe..d2a23dec54f14ce7a50fa11280ece767f6125f9a 100644 (file)
 
 package org.eclipse.linuxtools.tmf.core.event;
 
-
 /**
- * The TMF event payload structure. Each field can be either a terminal or
+ * The generic event payload in TMF. Each field can be either a terminal or
  * further decomposed into subfields.
  * 
  * @since 1.0
  * @version 1.0
  * @author Francois Chouinard
  *
- * @see TmfEventField
  * @see ITmfEvent
+ * @see ITmfEventField
  */
 public interface ITmfEventField extends Cloneable {
 
@@ -50,7 +49,7 @@ public interface ITmfEventField extends Cloneable {
     public Object getValue();
 
     /**
-     * @return the list of subfield names (empty if none)
+     * @return the list of subfield names (empty array if none)
      */
     public String[] getFieldNames();
 
@@ -60,7 +59,7 @@ public interface ITmfEventField extends Cloneable {
     public String getFieldName(int index);
 
     /**
-     * @return the list of subfields (null if none)
+     * @return the list of subfields (empty array if none)
      */
     public ITmfEventField[] getFields();
 
@@ -79,7 +78,7 @@ public interface ITmfEventField extends Cloneable {
     // ------------------------------------------------------------------------
 
     /**
-     * @return a clone of the event type
+     * @return a clone of the event field
      */
     public ITmfEventField clone();
 
index 20c8a92a23245274af3c73652fba0c6594085b14..e653471e3c1716f5bd2b693b18bcee6de4786937 100644 (file)
@@ -12,9 +12,8 @@
 
 package org.eclipse.linuxtools.tmf.core.event;
 
-
 /**
- * The TMF event event type. It contains a reference to the full field structure
+ * The generic event type in TMF. It contains a reference to the full field structure
  * for that event type.
  * <p>
  * Types are unique within their context space.
@@ -22,8 +21,9 @@ package org.eclipse.linuxtools.tmf.core.event;
  * @since 1.0
  * @version 1.0
  * @author Francois Chouinard
- * @see TmfEventType
+ * 
  * @see ITmfEvent
+ * @see ITmfEventField
  */
 public interface ITmfEventType extends Cloneable {
 
@@ -76,7 +76,7 @@ public interface ITmfEventType extends Cloneable {
     // ------------------------------------------------------------------------
 
     /**
-     * @return a clone of the event content
+     * @return a clone of the event type
      */
     public ITmfEventType clone();
 
index aad0ef4c520c6761099de164cae1efb40e59b8c8..a5804edfd1c6f6f01e407df145073bdce91b09b4 100644 (file)
@@ -31,8 +31,8 @@ package org.eclipse.linuxtools.tmf.core.event;
  * @since 1.0
  * @version 1.0
  * @author Francois Chouinard
- * @see TmfTimestamp
- * @see TmfSimpleTimestamp
+ * 
+ * @see ITmfEvent
  * @see TmfTimeRange
  */
 public interface ITmfTimestamp extends Cloneable, Comparable<ITmfTimestamp> {
index 86aa033eef846cf439fe14c722748bbf0ac7e298..6e6ac3bb2b43fa14ffedb6d7261076de679efbef 100644 (file)
@@ -14,6 +14,7 @@
 package org.eclipse.linuxtools.tmf.core.event;
 
 import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
+import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
 
 /**
  * A basic implementation of ITmfEvent.
@@ -25,6 +26,7 @@ import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
  * @since 1.0
  * @version 1.0
  * @author Francois Chouinard
+ * 
  * @see ITmfTimestamp
  * @see ITmfEventType
  * @see ITmfEventField
@@ -49,36 +51,28 @@ public class TmfEvent implements ITmfEvent {
     // ------------------------------------------------------------------------
 
     /**
-     * Default constructor
+     * Default constructor. All fields have their default value (null) and the
+     * event rank is set to TmfContext.UNKNOWN_RANK.
      */
     public TmfEvent() {
-        this(null, -1, null, null, null, null, null);
+        this(null, TmfContext.UNKNOWN_RANK, null, null, null, null, null);
     }
 
     /**
-     * Constructor - no rank
-     */
-    public TmfEvent(final ITmfTrace<? extends ITmfEvent> trace, final ITmfTimestamp timestamp, final String source,
-            final ITmfEventType type, final ITmfEventField content, final String reference)
-    {
-        this(trace, -1, timestamp, source, type, content, reference);
-    }
+     * Standard constructor. The event rank will be set to TmfContext.UNKNOWN_RANK.
+     *
+     * @param trace the parent trace
+     * @param timestamp the event timestamp
+     * @param source the event source
+     * @param type the event type
+     * @param content the event content (payload)
+     * @param reference the event reference
 
-    /**
-     * Constructor - no rank, no content
      */
     public TmfEvent(final ITmfTrace<? extends ITmfEvent> trace, final ITmfTimestamp timestamp, final String source,
-            final ITmfEventType type, final String reference)
-    {
-        this(trace, -1, timestamp, source, type, null, reference);
-    }
-
-    /**
-     * Constructor - no rank, no content, no trace
-     */
-    public TmfEvent(final ITmfTimestamp timestamp, final String source, final ITmfEventType type, final String reference)
+            final ITmfEventType type, final ITmfEventField content, final String reference)
     {
-        this(null, -1, timestamp, source, type, null, reference);
+        this(trace, TmfContext.UNKNOWN_RANK, timestamp, source, type, content, reference);
     }
 
     /**
index 5124489a3e179504fda1a943333962f3880ab798..6d1ed598248271b80bb214d2782cbb258be7f901 100644 (file)
@@ -26,9 +26,9 @@ import java.util.Map;
  * @since 1.0
  * @version 1.0
  * @author Francois Chouinard
- * @see ITmfEventField
- * @see ITmfEventType
+ * 
  * @see ITmfEvent
+ * @see ITmfEventType
  */
 public class TmfEventField implements ITmfEventField {
 
@@ -65,7 +65,7 @@ public class TmfEventField implements ITmfEventField {
     }
 
     /**
-     * Constructor for a terminal field (i.e. no subfields)
+     * Constructor for a terminal field (no subfields)
      * 
      * @param name the event field id
      * @param value the event field value
index dd12746c6f465d3a07c2dbbeda24d7d8068158c8..48577ab2dd013c7030d9829e599aa9b375873c08 100644 (file)
 
 package org.eclipse.linuxtools.tmf.core.event;
 
-
 /**
  * A basic implementation of ITmfEventType.
  * 
  * @since 1.0
  * @version 1.0
  * @author Francois Chouinard
- * @see ITmfEventType
- * @see ITmfEventField
+ * 
  * @see ITmfEvent
+ * @see ITmfEventField
  */
 public class TmfEventType implements ITmfEventType {
 
index 375bde90ed7063ccc74076c332c0c059dee6160c..8daf10b1481848ca978cfc3e23304997dbc9cc47 100644 (file)
@@ -15,14 +15,14 @@ package org.eclipse.linuxtools.tmf.core.event;
 import java.util.HashMap;
 import java.util.Map;
 
-
 /**
- * The TmfEventTypeManager acts as a central repository for the available
- * event types. Types are managed in their context space.
+ * A central repository for the available event types. Types are managed by
+ * context space.
  * 
  * @since 1.0
  * @version 1.0
  * @author Francois Chouinard
+ * 
  * @see ITmfEventType
  */
 public final class TmfEventTypeManager {
index 717839c6be8b70e219d417091ffe6198f6f2f60c..3432c5b886869ebf199774b9b1e7b4706d38ed82 100644 (file)
@@ -19,8 +19,6 @@ package org.eclipse.linuxtools.tmf.core.event;
  * @since 1.0
  * @version 1.0
  * @author Francois Chouinard
- * @see ITmfTimestamp
- * @see TmfTimestamp
  */
 public class TmfSimpleTimestamp extends TmfTimestamp {
 
@@ -29,7 +27,7 @@ public class TmfSimpleTimestamp extends TmfTimestamp {
     // ------------------------------------------------------------------------
 
     /**
-     * Default constructor
+     * Default constructor (value = 0)
      */
     public TmfSimpleTimestamp() {
         this(0);
index 534f44133d7159d16285194783f9f92c39364d4d..794d3746a1a0615e0b2d8fd67ab256ea4f0688bb 100644 (file)
@@ -19,8 +19,8 @@ package org.eclipse.linuxtools.tmf.core.event;
  * @since 1.0
  * @version 1.0
  * @author Francois Chouinard
+ * 
  * @see ITmfTimestamp
- * @see TmfTimestamp
  */
 public final class TmfTimeRange implements Cloneable {
 
index c25f3c3f3a3b22797b7bfa1ed9ef6abf4845f3d7..7264468d2a93580dba7f51de04f60e639d008efb 100644 (file)
@@ -21,8 +21,6 @@ package org.eclipse.linuxtools.tmf.core.event;
  * @since 1.0
  * @version 1.0
  * @author Francois Chouinard
- * @see ITmfTimestamp
- * @see TmfSimpleTimestamp
  */
 public class TmfTimestamp implements ITmfTimestamp, Cloneable {
 
index 2583c5cc5eb73316e4cce11af77c8a59e1715dc3..e36626b14b42a09c994786396762d3a6e613ad98 100644 (file)
@@ -15,10 +15,16 @@ package org.eclipse.linuxtools.tmf.core.trace;
 import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp;
 
 /**
- * <b><u>ITmfCheckpoint</u></b>
- * <p>
  * The basic trace checkpoint structure in TMF. The purpose of the checkpoint is
  * to associate a trace location to an event timestamp.
+ * 
+ * @since 1.0
+ * @version 1.0
+ * @author Francois Chouinard
+ *
+ * @see TmfCheckpoint
+ * @see ITmfTimestamp
+ * @see ITmfLocation
  */
 public interface ITmfCheckpoint extends Cloneable, Comparable<ITmfCheckpoint> {
 
index 1d55cdd4fe9c76afe0a28fc2c4b9d58bf66b2f8d..4ba1ec14d9fa2d353e4bcf35160d0d1924be900c 100644 (file)
 package org.eclipse.linuxtools.tmf.core.trace;
 
 /**
- * <b><u>ITmfContext</u></b>
- * <p>
  * The basic trace context structure in TMF. The purpose of the context is to
  * associate a trace location to an event of a specific rank (order).
  * <p>
  * The context should be sufficient to allow the trace to position itself so
  * that performing a trace read operation will yield the corresponding event.
+ * 
+ * @since 1.0
+ * @version 1.0
+ * @author Francois Chouinard
+ *
+ * @see ITmfLocation
  */
 public interface ITmfContext extends Cloneable {
 
index 01cb88de66411dd5b91ffb30615d02de7997a29c..dc64d3d0c0dfbaac256373e0bc7863eb4f8879c0 100644 (file)
@@ -16,8 +16,14 @@ package org.eclipse.linuxtools.tmf.core.trace;
 import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
 
 /**
- * <b><u>ITmfEventParser</u></b>
- * <p>
+ * The TMF trace parser API.
+ * 
+ * @since 1.0
+ * @version 1.0
+ * @author Francois Chouinard
+ *
+ * @see ITmfEvent
+ * @see ITmfContext
  */
 public interface ITmfEventParser<T extends ITmfEvent> {
 
index 813a31edecc1b3ff754033c5b996cd9b6b3ede05..6edf7c01fa596b68a814bab3a5c16207c3848a8c 100644 (file)
 
 package org.eclipse.linuxtools.tmf.core.trace;
 
+
 /**
- * <b><u>ITmfLocation</u></b>
- * <p>
  * An ITmfLocation is the equivalent of a random-access file position, holding
  * enough information to allow the positioning of the trace 'pointer' to read an
  * arbitrary event.
  * <p>
  * This location is trace-specific but must be comparable.
+ * 
+ * @since 1.0
+ * @version 1.0
+ * @author Francois Chouinard
+ *
+ * @see TmfLocation
  */
 public interface ITmfLocation<L extends Comparable<?>> extends Cloneable {
 
index cdbd4a2bd1e880683ba544ed816e1b7cd1bb1511..d03b4b0954119d56bf7cf2a79a1067e58089583a 100644 (file)
@@ -23,8 +23,6 @@ import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
 import org.eclipse.linuxtools.tmf.core.request.ITmfEventRequest;
 
 /**
- * <b><u>ITmfTrace</u></b>
- * <p>
  * The event stream structure in TMF. In its basic form, a trace has:
  * <ul>
  * <li> an associated Eclipse resource
@@ -101,9 +99,15 @@ import org.eclipse.linuxtools.tmf.core.request.ITmfEventRequest;
  *     request.waitForCompletion();
  * } 
  * </pre>
+ * 
+ * @since 1.0
+ * @version 1.0
+ * @author Francois Chouinard
+ *
  * @see ITmfEvent
  * @see ITmfEventProvider
  * @see ITmfEventRequest
+ * @see TmfTrace
  */
 public interface ITmfTrace<T extends ITmfEvent> extends ITmfDataProvider<T> {
 
index 2048a1170f3203ecb7ebe504c3c0878e3fd58401..0a4520652b6f42830d6d592fe4877635b1357454 100644 (file)
@@ -16,8 +16,14 @@ import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
 import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp;
 
 /**
- * <b><u>ITmfTraceIndexer</u></b>
- * <p>
+ * The trace indexer API.
+ * 
+ * @since 1.0
+ * @version 1.0
+ * @author Francois Chouinard
+ *
+ * @see ITmfTrace
+ * @see ITmfEvent
  */
 public interface ITmfTraceIndexer<T extends ITmfTrace<ITmfEvent>> {
 
index d0c4690dfda1cf544d39edfb85ba9f6f542e4524..61f6a71b1b517d45b4c42cf7e61a810d93d7816f 100644 (file)
@@ -16,9 +16,15 @@ package org.eclipse.linuxtools.tmf.core.trace;
 import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp;
 
 /**
- * <b><u>TmfCheckpoint</u></b>
- * <p>
  * This class maps an event timestamp to a generic location.
+ * 
+ * @since 1.0
+ * @version 1.0
+ * @author Francois Chouinard
+ *
+ * @see ITmfCheckpoint
+ * @see ITmfLocation
+ * @see ITmfTimestamp
  */
 public class TmfCheckpoint implements ITmfCheckpoint {
 
index ed82a926cf8d7f9c4763e14e8f0ad7d72f87f098..efef5e33d0509d4dd173866af41772785a655e80 100644 (file)
@@ -29,8 +29,6 @@ import org.eclipse.linuxtools.tmf.core.request.TmfEventRequest;
 import org.eclipse.linuxtools.tmf.core.signal.TmfTraceUpdatedSignal;
 
 /**
- * <b><u>TmfTraceIndexer</u></b>
- * <p>
  * A simple trace indexer that builds an array of trace checkpoints. Checkpoints
  * are stored at fixed intervals (event rank) in ascending timestamp order.
  * <p>
@@ -41,6 +39,14 @@ import org.eclipse.linuxtools.tmf.core.signal.TmfTraceUpdatedSignal;
  * <p>
  * Locating a specific checkpoint is trivial for both rank (rank % interval) and
  * timestamp (bsearch in the array).
+ * 
+ * @since 1.0
+ * @version 1.0
+ * @author Francois Chouinard
+ *
+ * @see ITmfTraceIndexer
+ * @see ITmfTrace
+ * @see ITmfEvent
  */
 public class TmfCheckpointIndexer<T extends ITmfTrace<ITmfEvent>> implements ITmfTraceIndexer<T> {
 
index 1b67039e5ad1d92dd9083969864e02fac1497650..281f554c0fd904f062dc07a8ccb4e46d6cd62406 100644 (file)
 package org.eclipse.linuxtools.tmf.core.trace;
 
 /**
- * <b><u>TmfContext</u></b>
- * <p>
  * Trace context structure. It ties a trace location to an event rank. The
  * context should be enough to restore the trace state so the corresponding
  * event can be read.
+ * 
+ * @since 1.0
+ * @version 1.0
+ * @author Francois Chouinard
+ *
+ * @see ITmfContext
+ * @see ITmfLocation
  */
 public class TmfContext implements ITmfContext, Cloneable {
 
index 7b00f324ef7b7690d9218e8812efb7a795342f5d..c19f73665abe2e9879fb071c01f0859569abe3ec 100644 (file)
@@ -16,10 +16,14 @@ package org.eclipse.linuxtools.tmf.core.trace;
 import java.lang.reflect.Method;
 
 /**
- * <b><u>TmfLocation</u></b>
- * <p>
  * A convenience implementation on of ITmfLocation. The generic class (L) must
  * be comparable.
+ * 
+ * @since 1.0
+ * @version 1.0
+ * @author Francois Chouinard
+ *
+ * @see ITmfLocation
  */
 public class TmfLocation<L extends Comparable<L>> implements ITmfLocation<L> {
 
index d41598213905d16ae5cdd5c0b39bcc79cb601651..b14809f7c5ca928183c3ac294f4e8ab87f9c2ddf 100644 (file)
@@ -28,8 +28,6 @@ import org.eclipse.linuxtools.tmf.core.request.ITmfDataRequest;
 import org.eclipse.linuxtools.tmf.core.request.ITmfEventRequest;
 
 /**
- * <b><u>TmfTrace</u></b>
- * <p>
  * Abstract implementation of ITmfTrace.
  * <p>
  * Since the concept of 'location' is trace specific, the concrete classes have
@@ -47,6 +45,16 @@ import org.eclipse.linuxtools.tmf.core.request.ITmfEventRequest;
  * The concrete class can either specify its own indexer or use the provided
  * TmfCheckpointIndexer (default). In this case, the trace cache size will be
  * used as checkpoint interval.
+ * 
+ * @since 1.0
+ * @version 1.0
+ * @author Francois Chouinard
+ *
+ * @see ITmfTrace
+ * @see TmfEventProvider
+ * @see ITmfEvent
+ * @see ITmfTraceIndexer
+ * @see ITmfEventParser
  */
 public abstract class TmfTrace<T extends ITmfEvent> extends TmfEventProvider<T> implements ITmfTrace<T> {
 
index 48b443aa09a832e9d30b6b49b7fafa36c7870f08..6eb91b7be60e5abe59b8cff7a74dcc327a508cb1 100644 (file)
@@ -49,7 +49,7 @@ public class CustomEvent extends TmfEvent {
     }\r
 \r
     public CustomEvent(CustomTraceDefinition definition, ITmfTrace<?> parentTrace, ITmfTimestamp timestamp, String source, TmfEventType type, String reference) {\r
-        super(parentTrace, timestamp, source, type, reference);\r
+        super(parentTrace, timestamp, source, type, null, reference);\r
         fDefinition = definition;\r
         fData = new HashMap<String, String>();\r
     }\r
This page took 0.039783 seconds and 5 git commands to generate.