Fix javadoc warnings
authorFrancois Chouinard <fchouinard@gmail.com>
Thu, 22 Mar 2012 22:46:20 +0000 (18:46 -0400)
committerFrancois Chouinard <fchouinard@gmail.com>
Thu, 22 Mar 2012 22:47:19 +0000 (18:47 -0400)
55 files changed:
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTraceReader.java
org.eclipse.linuxtools.lttng.jni/src/org/eclipse/linuxtools/lttng/jni/JniTrace.java
org.eclipse.linuxtools.tmf.core.tests/stubs/org/eclipse/linuxtools/tmf/stubs/request/TmfDataRequestStub.java
org.eclipse.linuxtools.tmf.core.tests/stubs/org/eclipse/linuxtools/tmf/stubs/request/TmfEventRequestStub.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/component/TmfDataProvider.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/component/TmfProviderManager.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEventField.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/experiment/TmfExperiment.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/experiment/TmfExperimentCheckpoint.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/filter/model/ITmfFilterTreeNode.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/filter/model/TmfFilterTreeNode.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/filter/xml/TmfFilterXMLWriter.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/interval/ITmfStateInterval.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/parser/ITmfEventParser.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/request/TmfCoalescedDataRequest.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/request/TmfCoalescedEventRequest.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/request/TmfDataRequest.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/request/TmfEventRequest.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/backend/historytree/HistoryTreeBackend.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/TmfTrace.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/timeAnalysis/ITimeAnalysisViewer.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/timeAnalysis/TmfTimeAnalysisProvider.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/timeAnalysis/TmfTimeAnalysisViewer.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/timeAnalysis/TmfTimeScaleSelectionEvent.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/timeAnalysis/model/ITimeEvent.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/timeAnalysis/widgets/Utils.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/filter/FilterDialog.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/HistogramDataModel.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/IHistogramDataModel.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/statistics/TmfStatisticsView.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/statistics/model/TmfStatisticsTreeRootFactory.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/DrawableToolTip.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/SDView.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/ScrollView.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/core/AsyncMessage.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/core/Frame.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/core/GraphNode.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/core/HotSpot.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/core/Lifeline.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/core/Stop.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/drawings/ISDPreferences.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDCollapseProvider.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDFilterProvider.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDFindProvider.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/provider/ISDPropertiesProvider.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/widgets/Criteria.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/widgets/FilterCriteria.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/widgets/SearchFilterDialog.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/handlers/widgets/TabContents.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/impl/TmfUml2SDSyncLoader.java

index 9117fc52b94fe1fde6405464c037d53b1105a284..d22ac6bd182fb57f988ea4b6aaf238059e0f7a88 100644 (file)
@@ -92,8 +92,6 @@ public class CTFTraceReader {
 
     /**
      * Copy constructor
-     *
-     * @return
      */
     public CTFTraceReader copyFrom() {
         CTFTraceReader newReader = null;
@@ -111,7 +109,7 @@ public class CTFTraceReader {
     /**
      * Return the start time of this trace (== timestamp of the first event)
      *
-     * @return
+     * @return the trace start time
      */
     public long getStartTime() {
         return this.startTime;
@@ -267,7 +265,7 @@ public class CTFTraceReader {
      *
      * @param timestamp
      *            the timestamp to seek to
-     * @return
+     * @return true if the trace has more events following the timestamp
      */
     public boolean seek(long timestamp) {
         /*
index bf335e5e280b1a652b68a01f1c4b5246eb94374e..86d91022a8a2956acb1160e168e86c794e34ec1a 100644 (file)
@@ -491,7 +491,7 @@ public abstract class JniTrace extends Jni_C_Common {
      * Note : If the events were read before, the top event and the event
      * currently loaded (currentEvent) are most likely the same.
      * 
-     * @@return The top event in the stack or null if no event is available or if the heap is null.
+     * @return The top event in the stack or null if no event is available or if the heap is null.
      * 
      * @see org.eclipse.linuxtools.lttng.jni.JniEvent
      */
index 4ef8e8986a782bd3acedc497b55d1365c86df16b..4393c301fccf348b456e85e629803e621cdbe177 100644 (file)
@@ -24,19 +24,23 @@ public class TmfDataRequestStub<T extends TmfEvent> extends TmfDataRequest<T> {
 
     /**
      * Default constructor
+     * 
+     * @param dataType
      */
     public TmfDataRequestStub(Class<T> dataType) {
         super(dataType);
     }
 
     /**
-     * @param nbRequested
+     * @param dataType
+     * @param index
      */
     public TmfDataRequestStub(Class<T> dataType, int index) {
         super(dataType, index);
     }
 
     /**
+     * @param dataType
      * @param index
      * @param nbRequested
      */
@@ -45,6 +49,7 @@ public class TmfDataRequestStub<T extends TmfEvent> extends TmfDataRequest<T> {
     }
 
     /**
+     * @param dataType
      * @param index
      * @param nbRequested
      * @param blockSize
@@ -53,6 +58,9 @@ public class TmfDataRequestStub<T extends TmfEvent> extends TmfDataRequest<T> {
         super(dataType, index, nbRequested, blockSize);
     }
 
+       /* (non-Javadoc)
+        * @see org.eclipse.linuxtools.tmf.core.request.TmfDataRequest#handleData(org.eclipse.linuxtools.tmf.core.event.ITmfEvent)
+        */
        @Override
        public void handleData(T data) {
                super.handleData(data);
index a88ba4d7b63ec32854325969bc6f4623cc620a57..762c1d2b2738fe083709947303dd9707e03c6ac6 100644 (file)
@@ -24,13 +24,14 @@ import org.eclipse.linuxtools.tmf.core.request.TmfEventRequest;
 public class TmfEventRequestStub<T extends TmfEvent> extends TmfEventRequest<T> {
 
     /**
-     * @param range
+     * @param dataType
      */
     public TmfEventRequestStub(Class<T> dataType) {
        super(dataType);
     }
 
     /**
+     * @param dataType
      * @param range
      */
     public TmfEventRequestStub(Class<T> dataType, TmfTimeRange range) {
@@ -38,6 +39,7 @@ public class TmfEventRequestStub<T extends TmfEvent> extends TmfEventRequest<T>
     }
 
     /**
+     * @param dataType
      * @param range
      * @param nbRequested
      */
@@ -46,14 +48,18 @@ public class TmfEventRequestStub<T extends TmfEvent> extends TmfEventRequest<T>
     }
     
     /**
+     * @param dataType
      * @param range
      * @param nbRequested
-     * @param blockSize Size of the largest blocks expected
+     * @param blockSize
      */
     public TmfEventRequestStub(Class<T> dataType, TmfTimeRange range, int nbRequested, int blockSize) {
        super(dataType, range, nbRequested, blockSize);
     }
 
+       /* (non-Javadoc)
+        * @see org.eclipse.linuxtools.tmf.core.request.TmfDataRequest#handleData(org.eclipse.linuxtools.tmf.core.event.ITmfEvent)
+        */
        @Override
        public void handleData(T data) {
                super.handleData(data);
index 87369d5190a1c4243943540bacad194b25090939..8a77096bcc070c11014f1c2caae2ade36549bfbc 100644 (file)
@@ -145,8 +145,6 @@ public abstract class TmfDataProvider<T extends ITmfEvent> extends TmfComponent
 
     /**
      * This method queues the coalesced requests.
-     * 
-     * @param thread
      */
     @Override
     public void fireRequest() {
@@ -390,9 +388,10 @@ public abstract class TmfDataProvider<T extends ITmfEvent> extends TmfComponent
     /**
      * Checks if the data meets the request completion criteria.
      * 
-     * @param request
-     * @param data
-     * @return
+     * @param request the request
+     * @param data the data to verify
+     * @param nbRead the number of events read so far
+     * @return true if completion criteria is met
      */
     public boolean isCompleted(ITmfDataRequest<T> request, T data, int nbRead) {
         return request.isCompleted() || nbRead >= request.getNbRequested();
index e7f4bd621382bbc252d5c816eeebfc02dc449330..7754a1416cf287e1da3c1d23b6d38a07cfdf91b0 100644 (file)
@@ -54,27 +54,27 @@ public class TmfProviderManager {
        /**
         * Re-registers [provider] as a provider of [eventType]
         * 
-        * @param dataClass
+        * @param eventType
         * @param provider
         */
-       public static <T extends ITmfEvent> void deregister(Class<T> dataClass, TmfDataProvider<? extends ITmfEvent> provider) {
-               List<TmfDataProvider<? extends ITmfEvent>> list = fProviders.get(dataClass);
+       public static <T extends ITmfEvent> void deregister(Class<T> eventType, TmfDataProvider<? extends ITmfEvent> provider) {
+               List<TmfDataProvider<? extends ITmfEvent>> list = fProviders.get(eventType);
                if (list != null) {
                        list.remove(provider);
                        if (list.size() == 0)
-                               fProviders.remove(dataClass);
+                               fProviders.remove(eventType);
                }
        }
 
        /**
         * Returns the list of components that provide [eventType]
         * 
-        * @param dataClass
-        * @return
+        * @param eventType
+        * @return the list of components that provide [eventType]
         */
        @SuppressWarnings("unchecked")
-       public static TmfDataProvider<? extends ITmfEvent>[] getProviders(Class<? extends ITmfEvent> dataClass) {
-               List<TmfDataProvider<? extends ITmfEvent>> list = fProviders.get(dataClass);
+       public static TmfDataProvider<? extends ITmfEvent>[] getProviders(Class<? extends ITmfEvent> eventType) {
+               List<TmfDataProvider<? extends ITmfEvent>> list = fProviders.get(eventType);
                if (list == null)
                        list = new ArrayList<TmfDataProvider<? extends ITmfEvent>>(); 
                TmfDataProvider<? extends ITmfEvent>[] result = new TmfDataProvider[list.size()];
@@ -84,20 +84,20 @@ public class TmfProviderManager {
        /**
         * Returns the list of components of type [providerType] that provide [eventType]
         * 
-        * @param type
-        * @param clazz
-        * @return
+        * @param eventType
+        * @param providerType
+     * @return the list of components of type [providerType] that provide [eventType]
         */
        @SuppressWarnings("unchecked")
-       public static TmfDataProvider<? extends ITmfEvent>[] getProviders(Class<? extends ITmfEvent> dataClass, Class<? extends TmfDataProvider<? extends ITmfEvent>> providerClass) {
-               if (providerClass == null) {
-                       return getProviders(dataClass);
+       public static TmfDataProvider<? extends ITmfEvent>[] getProviders(Class<? extends ITmfEvent> eventType, Class<? extends TmfDataProvider<? extends ITmfEvent>> providerType) {
+               if (providerType == null) {
+                       return getProviders(eventType);
                }
-               TmfDataProvider<? extends ITmfEvent>[] list = getProviders(dataClass);
+               TmfDataProvider<? extends ITmfEvent>[] list = getProviders(eventType);
                List<TmfDataProvider<? extends ITmfEvent>> result = new ArrayList<TmfDataProvider<? extends ITmfEvent>>();
                if (list != null) {
                        for (TmfDataProvider<? extends ITmfEvent> provider : list) {
-                               if (provider.getClass() == providerClass) {
+                               if (provider.getClass() == providerType) {
                                        result.add(provider);
                                }
                        }
index f54556b0b3b617000c26581a2ea65b0f2cf3ac6c..85ee867e79bfe6c73dc94bf11cff19709dc499c8 100644 (file)
@@ -201,7 +201,7 @@ public final class CtfTmfEvent implements ITmfEvent {
      * this ID is not constant from one trace to another for the same event
      * types! Use "getEventName()" for a constant reference.
      *
-     * @return
+     * @return the event ID
      */
     public long getID() {
         return this.typeId;
index 88c55e10044e216e95c5dcf8751871cbea9019c5..20234a1fde71c9237c9d156607b884c6aeb923e8 100644 (file)
@@ -139,7 +139,7 @@ public abstract class CtfTmfEventField implements ITmfEventField {
     /**
      * Return the int representing this field's value type
      * 
-     * @return
+     * @return the field type
      */
     public abstract int getFieldType();
 
@@ -147,16 +147,17 @@ public abstract class CtfTmfEventField implements ITmfEventField {
      * Return this field's value. You can cast it to the correct type depending
      * on what getFieldType says.
      * 
-     * @return
+     * @return the field value
      */
     @Override
     public abstract Object getValue();
 
     /**
-     * @name Other methods defined by ITmfEventField, but not used here: the CTF
+     * Other methods defined by ITmfEventField, but not used here: the CTF
      *       fields do not have sub-fields (yet!)
+     * 
+     * @return the field names
      */
-
     @Override
     public String[] getFieldNames() {
         return null;
index 18dd135064cce4665ae2ebb11a12e2bd5ae2a92e..af67ecf457f45687956a9dffe59d88bcd21d068e 100644 (file)
@@ -83,7 +83,7 @@ public class TmfEvent implements ITmfEvent {
      * @param timestamp the event timestamp
      * @param source the event source
      * @param type the event type
-     * @param type the event content (payload)
+     * @param content the event content (payload)
      * @param reference the event reference
      */
     public TmfEvent(ITmfTrace<? extends ITmfEvent> trace, long rank, ITmfTimestamp timestamp, String source,
@@ -180,14 +180,14 @@ public class TmfEvent implements ITmfEvent {
     // ------------------------------------------------------------------------
 
     /**
-     * @param trace the new event tarce
+     * @param trace the new event trace
      */
     protected void setTrace(ITmfTrace<? extends ITmfEvent> trace) {
         fTrace = trace;
     }
 
     /**
-     * @param source the new event source
+     * @param rank the new event rank
      */
     protected void setRank(long rank) {
         fRank = rank;
index 598081cb16b3637c83cc9c691b837abcf3a575fb..4bfad18740514a2dd98ef5e8a11f3340100b9780 100644 (file)
@@ -52,7 +52,7 @@ public class TmfEventField implements ITmfEventField {
      * Constructor for a structural field
      * 
      * @param name the event field id
-     * @param subfields the list of subfields
+     * @param fields the list of subfields
      */
     public TmfEventField(String name, ITmfEventField[] fields) {
         this(name, null, fields);
@@ -73,7 +73,7 @@ public class TmfEventField implements ITmfEventField {
      * 
      * @param name the event field id
      * @param value the event field value
-     * @param subfields the list of subfields
+     * @param fields the list of subfields
      */
     public TmfEventField(String name, Object value, ITmfEventField[] fields) {
         if (name == null) {
index 8744006fdb77448750e552b1f33da75251a83690..f87ab5f241a4757c755b61d42cb083e18468f5e5 100644 (file)
@@ -280,8 +280,8 @@ public class TmfExperiment<T extends ITmfEvent> extends TmfEventProvider<T> impl
      * Returns the rank of the first event with the requested timestamp. If none, returns the index of the next event
      * (if any).
      * 
-     * @param timestamp
-     * @return
+     * @param timestamp the event timestamp
+     * @return the corresponding event rank
      */
     @Override
     public long getRank(ITmfTimestamp timestamp) {
@@ -292,8 +292,8 @@ public class TmfExperiment<T extends ITmfEvent> extends TmfEventProvider<T> impl
     /**
      * Returns the timestamp of the event at the requested index. If none, returns null.
      * 
-     * @param index
-     * @return
+     * @param index the event index (rank)
+     * @return the corresponding event timestamp
      */
     public ITmfTimestamp getTimestamp(int index) {
         TmfExperimentContext context = seekEvent(index);
@@ -538,13 +538,6 @@ public class TmfExperiment<T extends ITmfEvent> extends TmfEventProvider<T> impl
         return null;
     }
 
-    /**
-     * Scan the next events from all traces and return the next one in chronological order.
-     * 
-     * @param context
-     * @return
-     */
-
 //     private void dumpContext(TmfExperimentContext context, boolean isBefore) {
 
 //             TmfContext context0 = context.getContexts()[0];
@@ -562,6 +555,12 @@ public class TmfExperiment<T extends ITmfEvent> extends TmfEventProvider<T> impl
 //             Tracer.trace(result.toString());
 //     }
 
+    /**
+     * Scan the next events from all traces and return the next one in chronological order.
+     * 
+     * @param context the trace context
+     * @return the next event
+     */
     @SuppressWarnings("unchecked")
     @Override
     public synchronized ITmfEvent getNextEvent(ITmfContext context) {
index c3d8d1e57d02265a5b59d6c9fae3465b7eaca0e2..5c86755fe63d2b50e32e9818d7bdbf44412f216c 100644 (file)
@@ -34,8 +34,8 @@ public class TmfExperimentCheckpoint implements Comparable<TmfExperimentCheckpoi
     // ------------------------------------------------------------------------
 
     /**
-     * @param ts
-     * @param location
+     * @param ts the checkpoint timestamp
+     * @param contexts the corresponding set of trace contexts
      */
     public TmfExperimentCheckpoint(TmfTimestamp ts, TmfContext[] contexts) {
         fTimestamp = ts;
index f3fe069f88ff02a1b100f22578ea70fed50396a2..80aa91591153547925a82b967d3cda18e1583979 100644 (file)
@@ -70,7 +70,7 @@ public interface ITmfFilterTreeNode extends ITmfFilter {
         * <h4>Remove the node from its parent</h4>\r
         * \r
         * <p>Shifts all nodes after the removed one to prevent having an empty spot. \r
-        * See {@link #replaceChildren(int, ITmfFilterTreeNode)} to replace a node.</p>\r
+        * See {@link #replaceChild(int, ITmfFilterTreeNode)} to replace a node.</p>\r
         * \r
         * @return The removed node. \r
         */\r
@@ -80,7 +80,7 @@ public interface ITmfFilterTreeNode extends ITmfFilter {
         * <h4>Remove the child from the current node</h4>\r
         * \r
         * <p>Shifts all nodes after the removed one to prevent having an empty spot. \r
-        * See {@link #replaceChildren(int, ITmfFilterTreeNode)} to replace a node.</p>\r
+        * See {@link #replaceChild(int, ITmfFilterTreeNode)} to replace a node.</p>\r
         * \r
         * @return The removed node. \r
         */\r
index 809fd9f8070c3a650390aac426e3c2ec821c51c3..52c5bb85de003995851a256cf447231012cba96a 100644 (file)
@@ -152,9 +152,9 @@ public abstract class TmfFilterTreeNode implements ITmfFilterTreeNode, Cloneable
        public abstract boolean matches(ITmfEvent event);\r
 \r
     /**\r
-     * @param event\r
-     * @param field\r
-     * @return\r
+     * @param event the event\r
+     * @param field the field id\r
+     * @return the field value\r
      */\r
     protected Object getFieldValue(ITmfEvent event, String field) {\r
         Object value = null;\r
index 3e542498d3b1f6545a8467b2d37a8db6a862cfd8..337f003b098543e320b2749ef05356a97580cd7e 100644 (file)
@@ -50,8 +50,8 @@ public class TmfFilterXMLWriter {
        /**\r
         * The XMLParser constructor\r
         * \r
-        * @param uri The XML file to parse\r
-        * @throws ParserConfigurationException \r
+     * @param root The tree root\r
+        * @throws ParserConfigurationException \r
         */ \r
        public TmfFilterXMLWriter(final ITmfFilterTreeNode root) throws IOException, ParserConfigurationException {\r
                DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\r
index 397f1af3f158d1ad251043f39827d81ef35d0b00..fd349e5d7cf8b475c10f3fa9da8e8ab4b17ed69e 100644 (file)
@@ -29,28 +29,28 @@ public interface ITmfStateInterval {
     /**
      * Retrieve the start time of the interval
      * 
-     * @return
+     * @return the start time of the interval
      */
     public long getStartTime();
 
     /**
      * Retrieve the end time of the interval
      * 
-     * @return
+     * @return the end time of the interval
      */
     public long getEndTime();
 
     /**
      * Retrieve the quark of the attribute this state interval refers to
      * 
-     * @return
+     * @return the quark of the attribute this state interval refers to
      */
     public int getAttribute();
 
     /**
      * Retrieve the state value represented by this interval
      * 
-     * @return
+     * @return the state value represented by this interval
      */
     public ITmfStateValue getStateValue();
 
index 0ba4f3180bbc78f65b535c4429ae420a3828b731..abb07bfd71e6738fa474bf3a26618157077c4205 100644 (file)
@@ -21,13 +21,20 @@ import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
 /**
  * <b><u>ITmfEventParser</u></b>
  * <p>
- * TODO: Implement me. Please.
  */
 public interface ITmfEventParser<T extends ITmfEvent> {
 
     /**
-     * @return
+     * @return a parsed event
      * @throws IOException 
      */
-       public ITmfEvent parseNextEvent(ITmfTrace<T> stream, ITmfContext context) throws IOException;
+       /**
+        * Parses the trace event referenced by the context.
+        * 
+        * @param trace the event stream
+        * @param context the trace context
+        * @return the parsed event
+        * @throws IOException
+        */
+       public ITmfEvent parseNextEvent(ITmfTrace<T> trace, ITmfContext context) throws IOException;
 }
index 9b015522e7182b3ac40bfa4afd436472455f1e7f..5d1ad858f4b69f6d8a334c3310d609ed35e1d7eb 100644 (file)
@@ -19,7 +19,6 @@ import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
 /**
  * <b><u>TmfCoalescedDataRequest</u></b>
  * <p>
- * TODO: Implement me. Please.
  */
 public class TmfCoalescedDataRequest<T extends ITmfEvent> extends TmfDataRequest<T> {
 
@@ -27,6 +26,9 @@ public class TmfCoalescedDataRequest<T extends ITmfEvent> extends TmfDataRequest
     // Attributes
     // ------------------------------------------------------------------------
 
+       /**
+        * The list of coalesced requests
+        */
        protected Vector<ITmfDataRequest<T>> fRequests = new Vector<ITmfDataRequest<T>>();
 
     // ------------------------------------------------------------------------
@@ -34,50 +36,99 @@ public class TmfCoalescedDataRequest<T extends ITmfEvent> extends TmfDataRequest
     // ------------------------------------------------------------------------
 
     /**
-     * Default constructor
+     * Request all the events of a given type (high priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
      */
     public TmfCoalescedDataRequest(Class<T> dataType) {
         this(dataType, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
     }
 
-    public TmfCoalescedDataRequest(Class<T> dataType, ExecutionType execType) {
-        this(dataType, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, execType);
+    /**
+     * Request all the events of a given type (given priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param priority the requested execution priority
+     */
+    public TmfCoalescedDataRequest(Class<T> dataType, ExecutionType priority) {
+        this(dataType, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, priority);
     }
 
     /**
-     * @param nbRequested
+     * Request all the events of a given type from the given index (high priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param index the index of the first event to retrieve
      */
     public TmfCoalescedDataRequest(Class<T> dataType, int index) {
         this(dataType, index, ALL_DATA, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
     }
 
-    public TmfCoalescedDataRequest(Class<T> dataType, int index, ExecutionType execType) {
-        this(dataType, index, ALL_DATA, DEFAULT_BLOCK_SIZE, execType);
+    /**
+     * Request all the events of a given type from the given index (given priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param index the index of the first event to retrieve
+     * @param priority the requested execution priority
+     */
+    public TmfCoalescedDataRequest(Class<T> dataType, int index, ExecutionType priority) {
+        this(dataType, index, ALL_DATA, DEFAULT_BLOCK_SIZE, priority);
     }
 
     /**
-     * @param index
-     * @param nbRequested
+     * Request 'n' events of a given type from the given index (high priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param index the index of the first event to retrieve
+     * @param nbRequested the number of events requested
      */
     public TmfCoalescedDataRequest(Class<T> dataType, int index, int nbRequested) {
         this(dataType, index, nbRequested, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
     }
 
-    public TmfCoalescedDataRequest(Class<T> dataType, int index, int nbRequested, ExecutionType execType) {
-        this(dataType, index, nbRequested, DEFAULT_BLOCK_SIZE, execType);
+    /**
+     * Request 'n' events of a given type from the given index (given priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param index the index of the first event to retrieve
+     * @param nbRequested the number of events requested
+     * @param priority the requested execution priority
+     */
+    public TmfCoalescedDataRequest(Class<T> dataType, int index, int nbRequested, ExecutionType priority) {
+        this(dataType, index, nbRequested, DEFAULT_BLOCK_SIZE, priority);
     }
 
     /**
-     * @param index
-     * @param nbRequested
-     * @param blockSize
+     * Request 'n' events of a given type from the given index (high priority).
+     * Events are returned in blocks of the given size.
+     * 
+     * @param dataType the requested data type
+     * @param index the index of the first event to retrieve
+     * @param nbRequested the number of events requested
+     * @param blockSize the number of events per block
      */
     public TmfCoalescedDataRequest(Class<T> dataType, int index, int nbRequested, int blockSize) {
         super(dataType, index, nbRequested, blockSize, ExecutionType.FOREGROUND);
     }
 
-    public TmfCoalescedDataRequest(Class<T> dataType, int index, int nbRequested, int blockSize, ExecutionType execType) {
-        super(dataType, index, nbRequested, blockSize, execType);
+    /**
+     * Request 'n' events of a given type from the given index (given priority).
+     * Events are returned in blocks of the given size.
+     * 
+     * @param dataType the requested data type
+     * @param index the index of the first event to retrieve
+     * @param nbRequested the number of events requested
+     * @param blockSize the number of events per block
+     * @param priority the requested execution priority
+     */
+    public TmfCoalescedDataRequest(Class<T> dataType, int index, int nbRequested, int blockSize, ExecutionType priority) {
+        super(dataType, index, nbRequested, blockSize, priority);
     }
 
     // ------------------------------------------------------------------------
index 588a802e508027ac9a44a2bdc8ba929ee7c94268..ac2b5892ff6d273f30580030527b1cb165de57dd 100644 (file)
@@ -19,7 +19,6 @@ import org.eclipse.linuxtools.tmf.core.event.TmfTimeRange;
 /**
  * <b><u>TmfCoalescedEventRequest</u></b>
  * <p>
- * TODO: Implement me. Please.
  */
 public class TmfCoalescedEventRequest<T extends ITmfEvent> extends TmfCoalescedDataRequest<T> implements ITmfEventRequest<T> {
 
@@ -34,57 +33,117 @@ public class TmfCoalescedEventRequest<T extends ITmfEvent> extends TmfCoalescedD
     // ------------------------------------------------------------------------
 
     /**
-     * @param range
+     * Request all the events of a given type (high priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
      */
     public TmfCoalescedEventRequest(Class<T> dataType) {
         this(dataType, TmfTimeRange.ETERNITY, ALL_DATA, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
     }
 
-    public TmfCoalescedEventRequest(Class<T> dataType, ExecutionType execType) {
-        this(dataType, TmfTimeRange.ETERNITY, ALL_DATA, DEFAULT_BLOCK_SIZE, execType);
+    /**
+     * Request all the events of a given type (given priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param priority the requested execution priority
+     */
+    public TmfCoalescedEventRequest(Class<T> dataType, ExecutionType priority) {
+        this(dataType, TmfTimeRange.ETERNITY, ALL_DATA, DEFAULT_BLOCK_SIZE, priority);
     }
 
     /**
-     * @param range
+     * Request all the events of a given type for the given time range (high priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param range the time range of the requested events
      */
     public TmfCoalescedEventRequest(Class<T> dataType, TmfTimeRange range) {
         this(dataType, range, ALL_DATA, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
     }
 
-    public TmfCoalescedEventRequest(Class<T> dataType, TmfTimeRange range, ExecutionType execType) {
-        this(dataType, range, ALL_DATA, DEFAULT_BLOCK_SIZE, execType);
+    /**
+     * Request all the events of a given type for the given time range (given priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param range the time range of the requested events
+     * @param priority the requested execution priority
+     */
+    public TmfCoalescedEventRequest(Class<T> dataType, TmfTimeRange range, ExecutionType priority) {
+        this(dataType, range, ALL_DATA, DEFAULT_BLOCK_SIZE, priority);
     }
 
     /**
-     * @param range
-     * @param nbRequested
+     * Request 'n' events of a given type from the given time range (high priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param range the time range of the requested events
+     * @param nbRequested the number of events requested
      */
     public TmfCoalescedEventRequest(Class<T> dataType, TmfTimeRange range, int nbRequested) {
         this(dataType, range, nbRequested, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
     }
-    
-    public TmfCoalescedEventRequest(Class<T> dataType, TmfTimeRange range, int nbRequested, ExecutionType execType) {
-        this(dataType, range, nbRequested, DEFAULT_BLOCK_SIZE, execType);
+
+    /**
+     * Request 'n' events of a given type for the given time range (given priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param range the time range of the requested events
+     * @param nbRequested the number of events requested
+     * @param priority the requested execution priority
+     */
+    public TmfCoalescedEventRequest(Class<T> dataType, TmfTimeRange range, int nbRequested, ExecutionType priority) {
+        this(dataType, range, nbRequested, DEFAULT_BLOCK_SIZE, priority);
     }
-    
+
     /**
-     * @param range
-     * @param nbRequested
-     * @param blockSize Size of the largest blocks expected
+     * Request 'n' events of a given type for the given time range (high priority).
+     * Events are returned in blocks of the given size.
+     * 
+     * @param dataType the requested data type
+     * @param range the time range of the requested events
+     * @param nbRequested the number of events requested
+     * @param blockSize the number of events per block
      */
     public TmfCoalescedEventRequest(Class<T> dataType, TmfTimeRange range, int nbRequested, int blockSize) {
-       super(dataType, 0, nbRequested, blockSize, ExecutionType.FOREGROUND);
-       fRange = range;
+        super(dataType, 0, nbRequested, blockSize, ExecutionType.FOREGROUND);
+        fRange = range;
     }
 
-    public TmfCoalescedEventRequest(Class<T> dataType, TmfTimeRange range, int nbRequested, int blockSize, ExecutionType execType) {
-       super(dataType, 0, nbRequested, blockSize, execType);
-       fRange = range;
+    /**
+     * Request 'n' events of a given type for the given time range (given priority).
+     * Events are returned in blocks of the given size.
+     * 
+     * @param dataType the requested data type
+     * @param range the time range of the requested events
+     * @param nbRequested the number of events requested
+     * @param blockSize the number of events per block
+     * @param priority the requested execution priority
+     */
+    public TmfCoalescedEventRequest(Class<T> dataType, TmfTimeRange range, int nbRequested, int blockSize, ExecutionType priority) {
+        super(dataType, 0, nbRequested, blockSize, priority);
+        fRange = range;
     }
 
-    public TmfCoalescedEventRequest(Class<T> dataType, TmfTimeRange range, int index, int nbRequested, int blockSize, ExecutionType execType) {
-       super(dataType, index, nbRequested, blockSize, execType);
-       fRange = range;
+    /**
+     * Request 'n' events of a given type for the given time range (given priority).
+     * Events are returned in blocks of the given size.
+     * 
+     * @param dataType the requested data type
+     * @param range the time range of the requested events
+     * @param index the index of the first event to retrieve
+     * @param nbRequested the number of events requested
+     * @param blockSize the number of events per block
+     * @param priority the requested execution priority
+     */
+    public TmfCoalescedEventRequest(Class<T> dataType, TmfTimeRange range, int index, int nbRequested, int blockSize, ExecutionType priority) {
+        super(dataType, index, nbRequested, blockSize, priority);
+        fRange = range;
     }
 
     // ------------------------------------------------------------------------
index 568d524f6f710c11731f6db52e2dd13d9d61ca80..2a28f00ddc25d7459b82a4b820c1676dc5b5bc6b 100644 (file)
@@ -114,70 +114,104 @@ public abstract class TmfDataRequest<T extends ITmfEvent> implements ITmfDataReq
     }
 
     /**
-     * Default constructor
+     * Request all the events of a given type (high priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
      * 
-     * @param dataType
-     *            the requested data type
+     * @param dataType the requested data type
      */
     public TmfDataRequest(Class<T> dataType) {
         this(dataType, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
     }
 
-    public TmfDataRequest(Class<T> dataType, ExecutionType execType) {
-        this(dataType, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, execType);
+    /**
+     * Request all the events of a given type (given priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param priority the requested execution priority
+     */
+    public TmfDataRequest(Class<T> dataType, ExecutionType priority) {
+        this(dataType, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, priority);
     }
 
     /**
-     * @param dataType
-     *            the requested data type
-     * @param nbRequested
-     *            the number of data items requested
+     * Request all the events of a given type from the given index (high priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param index the index of the first event to retrieve
      */
     public TmfDataRequest(Class<T> dataType, int index) {
         this(dataType, index, ALL_DATA, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
     }
 
-    public TmfDataRequest(Class<T> dataType, int index, ExecutionType execType) {
-        this(dataType, index, ALL_DATA, DEFAULT_BLOCK_SIZE, execType);
+    /**
+     * Request all the events of a given type from the given index (given priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param index the index of the first event to retrieve
+     * @param priority the requested execution priority
+     */
+    public TmfDataRequest(Class<T> dataType, int index, ExecutionType priority) {
+        this(dataType, index, ALL_DATA, DEFAULT_BLOCK_SIZE, priority);
     }
 
     /**
-     * @param dataType
-     *            the requested data type
-     * @param index
-     *            the index (rank) of the first event requested
-     * @param blockSize
-     *            the number of data items per block
+     * Request 'n' events of a given type from the given index (high priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param index the index of the first event to retrieve
+     * @param nbRequested the number of events requested
      */
     public TmfDataRequest(Class<T> dataType, int index, int nbRequested) {
         this(dataType, index, nbRequested, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
     }
 
-    public TmfDataRequest(Class<T> dataType, int index, int nbRequested, ExecutionType execType) {
-        this(dataType, index, nbRequested, DEFAULT_BLOCK_SIZE, execType);
+    /**
+     * Request 'n' events of a given type from the given index (given priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param index the index of the first event to retrieve
+     * @param nbRequested the number of events requested
+     * @param priority the requested execution priority
+     */
+    public TmfDataRequest(Class<T> dataType, int index, int nbRequested, ExecutionType priority) {
+        this(dataType, index, nbRequested, DEFAULT_BLOCK_SIZE, priority);
     }
 
     /**
-     * @param dataType
-     *            the requested data type
-     * @param index
-     *            the index (rank) of the first event requested
-     * @param nbRequested
-     *            the number of data items requested
-     * @param blockSize
-     *            the number of data items per block
+     * Request 'n' events of a given type from the given index (high priority).
+     * Events are returned in blocks of the given size.
+     * 
+     * @param dataType the requested data type
+     * @param index the index of the first event to retrieve
+     * @param nbRequested the number of events requested
+     * @param blockSize the number of events per block
      */
     public TmfDataRequest(Class<T> dataType, int index, int nbRequested, int blockSize) {
         this(dataType, index, nbRequested, blockSize, ExecutionType.FOREGROUND);
     }
 
-    public TmfDataRequest(Class<T> dataType, int index, int nbRequested, int blockSize, ExecutionType execType) {
+    /**
+     * Request 'n' events of a given type from the given index (given priority).
+     * Events are returned in blocks of the given size.
+     * 
+     * @param dataType the requested data type
+     * @param index the index of the first event to retrieve
+     * @param nbRequested the number of events requested
+     * @param blockSize the number of events per block
+     * @param priority the requested execution priority
+     */
+    public TmfDataRequest(Class<T> dataType, int index, int nbRequested, int blockSize, ExecutionType priority) {
         fRequestId = fRequestNumber++;
         fDataType = dataType;
         fIndex = index;
         fNbRequested = nbRequested;
         fBlockSize = blockSize;
-        fExecType = execType;
+        fExecType = priority;
         fNbRead = 0;
 
         fRequestRunning = false;
@@ -218,7 +252,7 @@ public abstract class TmfDataRequest<T extends ITmfEvent> implements ITmfDataReq
     }
 
     /**
-     * @return the index of the first event requested
+     * @return the execution type (priority)
      */
     @Override
     public ExecutionType getExecType() {
@@ -250,7 +284,7 @@ public abstract class TmfDataRequest<T extends ITmfEvent> implements ITmfDataReq
     }
 
     /**
-     * @return indicates if the request is completed
+     * @return indicates if the request is currently running
      */
     @Override
     public synchronized boolean isRunning() {
@@ -266,7 +300,7 @@ public abstract class TmfDataRequest<T extends ITmfEvent> implements ITmfDataReq
     }
 
     /**
-     * @return indicates if the request is canceled
+     * @return indicates if the request has failed
      */
     @Override
     public synchronized boolean isFailed() {
@@ -308,23 +342,19 @@ public abstract class TmfDataRequest<T extends ITmfEvent> implements ITmfDataReq
     // ------------------------------------------------------------------------
 
     /**
-     * Sets the data object to specified value. To be called by the asynchronous method implementor.
-     * 
-     * @param data
-     *            Data value to set.
-     */
-
-    /**
-     * Handle a block of incoming data. This method is called every time a block of data becomes available.
+     * Handle incoming data, one event at a time i.e. this method is invoked
+     * for every data item obtained by the request.
      * 
-     * - Data items are received in the order they appear in the stream. - Called by the request processor, in its
-     * execution thread, every time a block of data becomes available. - Request processor performs a synchronous call
-     * to handlePartialResult() i.e. its execution threads holds until handlePartialData() returns. - Original data
-     * items are disposed of on return i.e. keep a reference (or a copy) if some persistence is needed between
-     * invocations. - When there is no more data, done() is called.
+     * - Data items are received in the order they appear in the stream
+     * - Called by the request processor, in its execution thread, every time
+     *   a block of data becomes available.
+     * - Request processor performs a synchronous call to handleData() i.e.
+     *   its execution threads holds until handleData() returns.
+     * - Original data items are disposed of on return i.e. keep a reference
+     *   (or a copy) if some persistence is needed between invocations.
+     * - When there is no more data, done() is called.
      * 
-     * @param events
-     *            - an events
+     * @param data a piece of data
      */
     @Override
     public void handleData(T data) {
@@ -340,11 +370,14 @@ public abstract class TmfDataRequest<T extends ITmfEvent> implements ITmfDataReq
     }
 
     /**
-     * Handle the completion of the request. It is called when there is no more data available either because: - the
-     * request completed normally - the request failed - the request was canceled
+     * Handle the completion of the request. It is called when there is no
+     * more data available either because:
+     * - the request completed normally 
+     * - the request failed 
+     * - the request was canceled
      * 
-     * As a convenience, handleXXXX methods are provided. They are meant to be overridden by the application if it needs
-     * to handle these conditions.
+     * As a convenience, handleXXXX methods are provided. They are meant to be
+     * overridden by the application if it needs to handle these conditions.
      */
     @Override
     public synchronized void handleCompleted() {
index e8ff77ae0f7a922f352924572a68f174426df0b2..eb5f9d5987c2e0c7ad747554334c222304c41ddf 100644 (file)
@@ -33,54 +33,114 @@ public abstract class TmfEventRequest<T extends ITmfEvent> extends TmfDataReques
     // ------------------------------------------------------------------------
 
     /**
-     * @param range
+     * Request all the events of a given type (high priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
      */
     public TmfEventRequest(Class<T> dataType) {
         this(dataType, TmfTimeRange.ETERNITY, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
     }
 
-    public TmfEventRequest(Class<T> dataType, ExecutionType execType) {
-        this(dataType, TmfTimeRange.ETERNITY, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, execType);
+    /**
+     * Request all the events of a given type (given priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param priority the requested execution priority
+     */
+    public TmfEventRequest(Class<T> dataType, ExecutionType priority) {
+        this(dataType, TmfTimeRange.ETERNITY, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, priority);
     }
 
     /**
-     * @param range
+     * Request all the events of a given type for the given time range (high priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param range the time range of the requested events
      */
     public TmfEventRequest(Class<T> dataType, TmfTimeRange range) {
         this(dataType, range, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
     }
 
-    public TmfEventRequest(Class<T> dataType, TmfTimeRange range, ExecutionType execType) {
-        this(dataType, range, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, execType);
+    /**
+     * Request all the events of a given type for the given time range (given priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param range the time range of the requested events
+     * @param priority the requested execution priority
+     */
+    public TmfEventRequest(Class<T> dataType, TmfTimeRange range, ExecutionType priority) {
+        this(dataType, range, 0, ALL_DATA, DEFAULT_BLOCK_SIZE, priority);
     }
 
     /**
-     * @param range
-     * @param nbRequested
+     * Request 'n' events of a given type from the given time range (high priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param range the time range of the requested events
+     * @param nbRequested the number of events requested
      */
     public TmfEventRequest(Class<T> dataType, TmfTimeRange range, int nbRequested) {
         this(dataType, range, 0, nbRequested, DEFAULT_BLOCK_SIZE, ExecutionType.FOREGROUND);
     }
     
-    public TmfEventRequest(Class<T> dataType, TmfTimeRange range, int nbRequested, ExecutionType execType) {
-        this(dataType, range, 0, nbRequested, DEFAULT_BLOCK_SIZE, execType);
+    /**
+     * Request 'n' events of a given type for the given time range (given priority)
+     * Events are returned in blocks of the default size (DEFAULT_BLOCK_SIZE).
+     * 
+     * @param dataType the requested data type
+     * @param range the time range of the requested events
+     * @param nbRequested the number of events requested
+     * @param priority the requested execution priority
+     */
+    public TmfEventRequest(Class<T> dataType, TmfTimeRange range, int nbRequested, ExecutionType priority) {
+        this(dataType, range, 0, nbRequested, DEFAULT_BLOCK_SIZE, priority);
     }
     
     /**
-     * @param range
-     * @param nbRequested
-     * @param blockSize Size of the largest blocks expected
+     * Request 'n' events of a given type for the given time range (high priority).
+     * Events are returned in blocks of the given size.
+     * 
+     * @param dataType the requested data type
+     * @param range the time range of the requested events
+     * @param nbRequested the number of events requested
+     * @param blockSize the number of events per block
      */
     public TmfEventRequest(Class<T> dataType, TmfTimeRange range, int nbRequested, int blockSize) {
        this(dataType, range, 0, nbRequested, blockSize, ExecutionType.FOREGROUND);
     }
 
-    public TmfEventRequest(Class<T> dataType, TmfTimeRange range, int nbRequested, int blockSize, ExecutionType execType) {
-       this(dataType, range, 0, nbRequested, blockSize, execType);
+    /**
+     * Request 'n' events of a given type for the given time range (given priority).
+     * Events are returned in blocks of the given size.
+     * 
+     * @param dataType the requested data type
+     * @param range the time range of the requested events
+     * @param nbRequested the number of events requested
+     * @param blockSize the number of events per block
+     * @param priority the requested execution priority
+     */
+    public TmfEventRequest(Class<T> dataType, TmfTimeRange range, int nbRequested, int blockSize, ExecutionType priority) {
+       this(dataType, range, 0, nbRequested, blockSize, priority);
     }
 
-    public TmfEventRequest(Class<T> dataType, TmfTimeRange range, int index, int nbRequested, int blockSize, ExecutionType execType) {
-       super(dataType, index, nbRequested, blockSize, execType);
+    /**
+     * Request 'n' events of a given type for the given time range (given priority).
+     * Events are returned in blocks of the given size.
+     * 
+     * @param dataType the requested data type
+     * @param range the time range of the requested events
+     * @param index the index of the first event to retrieve
+     * @param nbRequested the number of events requested
+     * @param blockSize the number of events per block
+     * @param priority the requested execution priority
+     */
+    public TmfEventRequest(Class<T> dataType, TmfTimeRange range, int index, int nbRequested, int blockSize, ExecutionType priority) {
+       super(dataType, index, nbRequested, blockSize, priority);
        fRange = range;
     }
 
@@ -103,7 +163,8 @@ public abstract class TmfEventRequest<T extends ITmfEvent> extends TmfDataReques
     /**
      * this method is called by the event provider to set the index corresponding
      * to the time range start time once it is known
-     * @param index the start time index
+     * 
+     * @param index the start index
      */
     @Override
        public void setStartIndex(int index) {
index 2469b3c190684961dff569e0f03b6beda8ed9fce..d834cb44427c45448f3ecc1552519e8c03b273f9 100644 (file)
@@ -80,7 +80,7 @@ public class HistoryTreeBackend implements IStateHistoryBackend {
     /**
      * Existing history constructor. Use this to open an existing state-file.
      * 
-     * @param existingFileName
+     * @param existingStateFile
      *            Filename/location of the history we want to load
      * @throws IOException
      *             If we can't read the file, if it doesn't exist or is not
index 2b5cf66beb74438d157ac72d404946dcf1b32469..0054c5feff400c6a774d24fa4e085dcf5c25f30d 100644 (file)
@@ -82,8 +82,6 @@ public interface ITmfTrace<T extends ITmfEvent> extends ITmfComponent {
      * Returns a context which can later be used to read the event.
      * 
      * @param location
-     * @param timestamp
-     * @param rank
      * @return a context object for subsequent reads
      */
     public ITmfContext seekLocation(ITmfLocation<?> location);
@@ -118,8 +116,8 @@ public interface ITmfTrace<T extends ITmfEvent> extends ITmfComponent {
      * Returns the rank of the first event with the requested timestamp. If none, returns the index of the next event
      * (if any).
      * 
-     * @param timestamp
-     * @return
+     * @param timestamp the requested event timestamp
+     * @return the corresponding event rank
      */
     public long getRank(ITmfTimestamp timestamp);
 
index 8023d1b60ebc9a743cad35af5d889d50095c113a..cb1a159569d1bf20a7a4ecc64971fd3da6e0c1dc 100644 (file)
@@ -257,8 +257,8 @@ public abstract class TmfTrace<T extends ITmfEvent> extends TmfEventProvider<T>
      * Returns the rank of the first event with the requested timestamp. If none, returns the index of the next event
      * (if any).
      * 
-     * @param timestamp
-     * @return
+     * @param timestamp the requested event timestamp
+     * @return the corresponding event rank
      */
     @Override
     public long getRank(ITmfTimestamp timestamp) {
@@ -304,7 +304,7 @@ public abstract class TmfTrace<T extends ITmfEvent> extends TmfEventProvider<T>
      * subsequent read.
      * 
      * @param context
-     * @return
+     * @return the event referred to by context
      */
     @SuppressWarnings("unchecked")
     @Override
index 9e8c889dc5a6437268b0c553be27587e7a71e497..ab962d85f1f34ae892c9ee6f401dcd5b1aad930c 100644 (file)
@@ -642,9 +642,9 @@ public class TmfEventsTable extends TmfComponent implements IGotoMarker, IColorS
     }\r
 \r
     /**\r
-     * @param table\r
+     * @param columnData\r
      * \r
-     *            FIXME: Add support for column selection\r
+     * FIXME: Add support for column selection\r
      */\r
     protected void setColumnHeaders(ColumnData[] columnData) {\r
         fTable.setColumnHeaders(columnData);\r
index 86818e6c403651d6da78c396587e3998098090eb..c7155afec440120a1bd34e5698019bce8cced356 100644 (file)
@@ -189,7 +189,7 @@ public interface ITimeAnalysisViewer extends ITmfViewer {
 \r
     /**\r
      * Set the top index\r
-     * @param the top index\r
+     * @param index the top index\r
      */\r
     public void setTopIndex(int index);\r
 \r
index 89ca2aa0a54274d19af11b60cd1641a9d8b7af47..944c8012ee0519fe908d94395b935e97bac69001 100644 (file)
@@ -191,7 +191,7 @@ public abstract class TmfTimeAnalysisProvider {
         * convert it to an internal color index\r
         * \r
         * @param event\r
-        * @return\r
+        * @return the internal color index\r
         */\r
        public int getEventColorVal(ITimeEvent event) {\r
                StateColor colors = getEventColor(event);\r
@@ -234,7 +234,7 @@ public abstract class TmfTimeAnalysisProvider {
         * Select the color for the different internal variants of events.\r
         * \r
         * @param event\r
-        * @return\r
+        * @return the corresponding event color\r
         */\r
        public abstract StateColor getEventColor(ITimeEvent event);\r
 \r
@@ -244,7 +244,7 @@ public abstract class TmfTimeAnalysisProvider {
         * [java.lang.Thread]\r
         * \r
         * @param trace\r
-        * @return\r
+        * @return the trace class name\r
         */\r
        public abstract String getTraceClassName(ITmfTimeAnalysisEntry trace);\r
 \r
@@ -261,7 +261,7 @@ public abstract class TmfTimeAnalysisProvider {
         *            True return String value in Upper case\r
         * @param extInfo\r
         *            Verbose, add additional information if applicable\r
-        * @return\r
+        * @return the event name\r
         */\r
        public abstract String getEventName(ITimeEvent event, boolean upper,\r
                        boolean extInfo);\r
@@ -303,7 +303,7 @@ public abstract class TmfTimeAnalysisProvider {
         * different icons according to specific event /state combination\r
         * \r
         * @param obj\r
-        * @return\r
+        * @return the image icon\r
         */\r
        public Image getItemImage(Object obj) {\r
            /*\r
index e6f930454e536c6da4f251852721a51212a2c029..33a11e7bc5884e9eefdfb84b24aaa2b5661b7764 100644 (file)
@@ -903,7 +903,7 @@ public class TmfTimeAnalysisViewer implements ITimeAnalysisViewer, ITimeDataProv
        /**\r
         * needed in case there's a need to associate a context menu\r
         * \r
-        * @return\r
+        * @return the state control (selection provider)\r
         */\r
        @Override\r
        public Control getControl() {\r
@@ -913,7 +913,7 @@ public class TmfTimeAnalysisViewer implements ITimeAnalysisViewer, ITimeDataProv
        /**\r
         * Get the selection provider\r
         * \r
-        * @return\r
+     * @return the selection provider\r
         */\r
        @Override\r
        public ISelectionProvider getSelectionProvider() {\r
index 27def26d19d5f56a2f3dba2e828d54b8d9266d6e..9b9dec7b813c6014ef7912f803cd99f3b6beb4ef 100644 (file)
@@ -49,28 +49,28 @@ public class TmfTimeScaleSelectionEvent extends EventObject {
        }\r
        \r
        /**\r
-        * @return\r
+        * @return the start time\r
         */\r
        public long getTime0() {\r
                return time0;\r
        }\r
        \r
        /**\r
-        * @return\r
+        * @return the end time\r
         */\r
        public long getTime1() {\r
                return time1;\r
        }\r
 \r
        /**\r
-        * @return\r
+        * @return the selection width\r
         */\r
        public int getWidth() {\r
                return width;\r
        }\r
 \r
        /**\r
-        * @return\r
+        * @return the selected time\r
         */\r
        public long getSelectedTime() {\r
                return selectedTime;\r
index 56ca0db2e61c7e890398d0942e172f2dbfdd9f67..9babd7a1de860b912afe8e9d3e0867933b3afb07 100644 (file)
@@ -19,11 +19,13 @@ public interface ITimeEvent {
        public long getTime();\r
 \r
        /**\r
-        * Returning <list> <li>-1: Considers duration to be from current event till\r
-        * the next</li> <li>0: Duration is not relevant e.g. a Burst / no state\r
-        * associated</li> <li>>0: Valid duration value specified</list>\r
-        * \r
         * @return\r
+        * <list>\r
+        * <li>-1: Considers duration to be from current event till the next</li>\r
+        * <li>0: Duration is not relevant e.g. a Burst / no state associated</li>\r
+        * <li>>0: Valid duration value specified</li>\r
+        * </list>\r
+        * <p>\r
         */\r
        public long getDuration();\r
 \r
index bd9d6d803fe4d4b7ee0663a935d524de614cb94b..4cd5f8614b3e8ecfe658240b84acb3d717640108 100644 (file)
@@ -149,27 +149,27 @@ public class Utils {
        }\r
 \r
        /**\r
-        * Formats time in format: MM:SS:NNN\r
-        \r
-        * @param v\r
-        * @param option\r
-        *            0: MMMM:ss:nnnnnnnnn, 1: HH:MM:ss MMM.mmmm.nnn\r
-        * @return\r
+     * Formats time in format: MM:SS:NNN\r
+     * \r
+        * @param time time\r
+        * @param format  0: MMMM:ss:nnnnnnnnn, 1: HH:MM:ss MMM.mmmm.nnn\r
+        * @param resolution the resolution\r
+        * @return the formatted time\r
         */\r
-       static public String formatTime(long v, TimeFormat format, Resolution res) {\r
+       static public String formatTime(long time, TimeFormat format, Resolution resolution) {\r
                // if format is absolute (Calendar)\r
                if (format == TimeFormat.ABSOLUTE) {\r
-                       return formatTimeAbs(v, res);\r
+                       return formatTimeAbs(time, resolution);\r
                }\r
 \r
                StringBuffer str = new StringBuffer();\r
-               boolean neg = v < 0;\r
+               boolean neg = time < 0;\r
                if (neg) {\r
-                       v = -v;\r
+                       time = -time;\r
                        str.append('-');\r
                }\r
 \r
-               long sec = (long) (v * 1E-9);\r
+               long sec = (long) (time * 1E-9);\r
                // TODO: Expand to make it possible to select the minute, second, nanosecond format\r
                //printing minutes is suppressed just sec and ns\r
                // if (sec / 60 < 10)\r
@@ -180,7 +180,7 @@ public class Utils {
                // if (sec < 10)\r
                // str.append('0');\r
                str.append(sec);\r
-               String ns = formatNs(v, res);\r
+               String ns = formatNs(time, resolution);\r
                if (!ns.equals("")) { //$NON-NLS-1$\r
                        str.append(':');\r
                        str.append(ns);\r
@@ -193,7 +193,7 @@ public class Utils {
         * From input time in nanoseconds, convert to Date format YYYY-MM-dd\r
         * \r
         * @param absTime\r
-        * @return\r
+        * @return the formatted date\r
         */\r
        public static String formatDate(long absTime) {\r
                String sdate = sdateformat.format(new Date((long) (absTime * 1E-6)));\r
@@ -204,7 +204,7 @@ public class Utils {
         * Formats time in ns to Calendar format: HH:MM:SS MMM.mmm.nnn\r
         * \r
         * @param time\r
-        * @return\r
+        * @return the formatted time\r
         */\r
        static public String formatTimeAbs(long time, Resolution res) {\r
                StringBuffer str = new StringBuffer();\r
@@ -226,7 +226,7 @@ public class Utils {
         * \r
         * @param time\r
         * @param res\r
-        * @return\r
+        * @return the formatted nanosec\r
         */\r
        public static String formatNs(long time, Resolution res) {\r
                StringBuffer temp = new StringBuffer();\r
index 4efcb6164a9c3ad3fecf050b4c715fac72dabf79..bf486d99ec07639896d81439b526e00be3302f1c 100644 (file)
@@ -46,7 +46,7 @@ public class FilterDialog extends Dialog {
        }\r
 \r
        /**\r
-        * @param fFilter the filter to set\r
+        * @param filter the filter to set\r
         */\r
        public void setFilter(ITmfFilterTreeNode filter) {\r
                fRoot = new TmfFilterNode(null);\r
@@ -59,7 +59,7 @@ public class FilterDialog extends Dialog {
        }\r
        \r
        /**\r
-        * @return the fFilter\r
+        * @return the filter\r
         */\r
        public ITmfFilterTreeNode getFilter() {\r
                if (fRoot != null && fRoot.hasChildren()) {\r
index 31b9065a0dd29384b20046f1d76f817d6ab69c60..a2394a04781c73fc3007b17e0995303799d85df2 100644 (file)
@@ -302,7 +302,7 @@ public class HistogramDataModel implements IHistogramDataModel {
      * 
      * @param width
      * @param height
-     * @param bar width
+     * @param barWidth
      * @return the result array of size [width] and where the highest value
      *         doesn't exceed [height]
      */
index b61d7c24bf1cdd1fe9f045770136599caa683822..3e793d5394fc612943e2bfefba33ad850c5a6e05 100644 (file)
@@ -24,6 +24,7 @@ public interface IHistogramDataModel extends IBaseDistributionModel {
     /**
      * Add event to the correct bucket, compacting the if needed.
      * 
+     * @param eventCount the event to count
      * @param timestamp the timestamp of the event to count
      */
     public void countEvent(long eventCount, long timestamp);
@@ -33,7 +34,7 @@ public interface IHistogramDataModel extends IBaseDistributionModel {
      * 
      * @param width
      * @param height
-     * @param bar width
+     * @param barWidth
      * @return the result array of size [width] and where the highest value
      *         doesn't exceed [height] considering the bar width [barWidth]
      */
index 4418963f6138f8b37914ea1f78f0fc1bae6bda33..39ce34764467bf784018d7d9bd41021a546df7be 100755 (executable)
@@ -455,8 +455,9 @@ public class TmfStatisticsView extends TmfView {
 
     /**
      * Perform the request for an experiment and populates the statistics tree with event.
+     * 
      * @param experiment experiment for which we need the statistics data.
-     * @param time range to request
+     * @param timeRange to request
      */
     @SuppressWarnings("unchecked")
     protected void requestData(final TmfExperiment<?> experiment, TmfTimeRange timeRange) {
index 86794382ec75328eee654f822acad8021e73065d..24bdc65be9668c6fb6e381fc2c79581c22038265 100755 (executable)
@@ -32,7 +32,7 @@ public class TmfStatisticsTreeRootFactory {
     /**
      * Provide a statisticsTree instance per trace
      * 
-     * @return
+     * @return the corresponding trace statistics tree
      */
     public static TmfStatisticsTreeNode getStatTreeRoot(String traceUniqueId) {
 
@@ -46,7 +46,7 @@ public class TmfStatisticsTreeRootFactory {
     /**
      * 
      * @param traceUniqueId
-     * @return
+     * @return the corresponding trace statistics tree
      */
     public static AbsTmfStatisticsTree getStatTree(String traceUniqueId) {
         if (traceUniqueId == null)
@@ -59,10 +59,10 @@ public class TmfStatisticsTreeRootFactory {
     /**
      * Add the new trace statistics data in the tree. Can be used later on if the same traces is selected back.
      * 
-     * @param experimentName
+     * @param traceUniqueId
      *            the name of the trace which will be used as a key to store the data. Must be different for each traces, otherwise the traces might
      *            be overwritten which would trigger a reload of the same trace.
-     * @param data
+     * @param statsData
      *            the information about the trace
      */
     public static void addStatsTreeRoot(String traceUniqueId, AbsTmfStatisticsTree statsData) {
@@ -77,7 +77,7 @@ public class TmfStatisticsTreeRootFactory {
     /**
      * 
      * @param traceUniqueId
-     * @return
+     * @return true if the trace id is known
      */
     public static boolean containsTreeRoot(String traceUniqueId) {
         return fTreeInstances.containsKey(traceUniqueId);
index 4d8be6b97f1d6ab316a813b84b2f3b66f828c7ce..cf656fc1a5e76838aff082e15659d86378a71525 100755 (executable)
@@ -88,14 +88,13 @@ public class DrawableToolTip implements PaintListener {
      * Display the tooltip using the given time range(min,max) the current value and the time unit The tooltip will stay
      * on screen until it is told otherwise
      * 
-     * @param _value the current in the scale
-     * @param _min the scale min
-     * @param _max the scale max
-     * @param unit the scale unit
+     * @param value the current in the scale
+     * @param min the scale min
+     * @param max the scale max
      */
-    public void showToolTip(ITmfTimestamp _value, ITmfTimestamp min, ITmfTimestamp max) {
+    public void showToolTip(ITmfTimestamp value, ITmfTimestamp min, ITmfTimestamp max) {
         minMaxRange = new TmfTimeRange(min.clone(), max.clone());
-        currentValue = _value.clone();
+        currentValue = value.clone();
 
         int w = toolTipShell.getBounds().width;
         int h = toolTipShell.getBounds().height;
index 44b11c329e67e74f75468666a2eb772844c1bbb4..6cf17fade502bbb794542f0b87dc75c6e21bdea6 100755 (executable)
@@ -848,7 +848,9 @@ public class SDView extends ViewPart {
     /**
      * Set the frame and ensure an object is visible from an other thread than the one executing the main loop
      * 
-     * @param sm
+     * @param frame
+     * @param x
+     * @param y
      */
     public void setFrameAndEnsureVisibleSync(final Frame frame, final int x, final int y) {
         if (getSDWidget() == null || getSDWidget().isDisposed()) {
@@ -866,7 +868,9 @@ public class SDView extends ViewPart {
     /**
      * Set the frame and ensure an object is visible
      * 
-     * @param sm
+     * @param frame
+     * @param x
+     * @param y
      */
     public void setFrameAndEnsureVisible(Frame frame, int x, int y) {
         getSDWidget().clearSelection();
@@ -882,6 +886,8 @@ public class SDView extends ViewPart {
 
     /**
      * Toggle between default and wait cursors from an other thread than the one executing the main loop
+     * 
+     * @param wait_
      */
     public void toggleWaitCursorAsync(final boolean wait_) {
         if (getSDWidget() == null || getSDWidget().isDisposed()) {
index 39ae809cbe50134fbf8ad13f3351164638e6d8c2..9b8faafbea021eaf961476085b71f42b3bf25f93 100755 (executable)
@@ -803,52 +803,52 @@ public class ScrollView extends Composite {
     /**
      * Change the size of the contents area.
      * 
-     * @param w new width of the area.
-     * @param h new height of the area.
+     * @param width new width of the area.
+     * @param height new height of the area.
      */
-    public void resizeContents(int _w, int _h) {
+    public void resizeContents(int width, int height) {
         // System.out.println("SV--resizeContents("+_w+","+_h+" ) {");
-        if (_w < 0)
-            _w = 0;
-        if (_h < 0)
-            _h = 0;
+        if (width < 0)
+            width = 0;
+        if (height < 0)
+            height = 0;
 
         int oldW = contents_width_;
         int oldH = contents_height_;
 
-        if (_w == oldW && _h == oldH)
+        if (width == oldW && height == oldH)
             return;
 
         // System.out.println("RESIZE-CONTENTS("+_w+","+_h+")");
-        contents_width_ = _w;
-        contents_height_ = _h;
+        contents_width_ = width;
+        contents_height_ = height;
 
-        if (oldW > _w) {
-            int s = _w;
-            _w = oldW;
+        if (oldW > width) {
+            int s = width;
+            width = oldW;
             oldW = s;
         }
 
         int vis_width = getVisibleWidth();
         int vis_height = getVisibleHeight();
         if (oldW < vis_width) {
-            if (_w > vis_width) {
-                _w = vis_width;
+            if (width > vis_width) {
+                width = vis_width;
             }
-            viewcontrol_.redraw(getContentsX() + oldW, 0, _w - oldW, vis_height, true);
+            viewcontrol_.redraw(getContentsX() + oldW, 0, width - oldW, vis_height, true);
         }
 
-        if (oldH > _h) {
-            int s = _h;
-            _h = oldH;
+        if (oldH > height) {
+            int s = height;
+            height = oldH;
             oldH = s;
         }
 
         if (oldH < vis_height) {
-            if (_h > vis_height) {
-                _h = vis_height;
+            if (height > vis_height) {
+                height = vis_height;
             }
-            viewcontrol_.redraw(0, getContentsY() + oldH, vis_width, _h - oldH, true);
+            viewcontrol_.redraw(0, getContentsY() + oldH, vis_width, height - oldH, true);
         }
         if (updateScrollBarVisiblity()) {
             layout();
@@ -1247,8 +1247,8 @@ public class ScrollView extends Composite {
      * @param y
      * @return org.eclipse.swt.graphics.Point
      */
-    public final Point viewToContents(int _x, int _y) {
-        Point p = new Point(viewToContentsX(_x), viewToContentsY(_y));
+    public final Point viewToContents(int x, int y) {
+        Point p = new Point(viewToContentsX(x), viewToContentsY(y));
         return p;
     }
 
@@ -1269,8 +1269,8 @@ public class ScrollView extends Composite {
      * @param y
      * @return org.eclipse.swt.graphics.Point
      */
-    public final Point contentsToView(int _x, int _y) {
-        Point p = new Point(contentsToViewX(_x), contentsToViewY(_y));
+    public final Point contentsToView(int x, int y) {
+        Point p = new Point(contentsToViewX(x), contentsToViewY(y));
         return p;
     }
 
@@ -1336,8 +1336,6 @@ public class ScrollView extends Composite {
 
     /**
      * Called when ScrollView view is resized.
-     * 
-     * @param _event
      */
     protected void viewResized() {
         // System.out.println("SV--viewResizeEvent()");
index 5dfaa9e97230a2270e773bf021ed1242cd9f31a2..20c58fee29499b1af3dfb445b42a493ab78f0895 100755 (executable)
@@ -164,7 +164,6 @@ public class AsyncMessage extends BaseMessage implements ITimeRange {
      * A new EventOccurence will be create on this lifeLine.<br>
      * 
      * @param lifeline the message sender
-     * @param autoCreateEvent if true, create an eventOccurence lifeline given in parameter
      */
     public void autoSetStartLifeline(Lifeline lifeline) {
         lifeline.getNewEventOccurrence();
@@ -176,7 +175,6 @@ public class AsyncMessage extends BaseMessage implements ITimeRange {
      * A new EventOccurence will be create on this lifeLine.<br>
      * 
      * @param lifeline the message receiver
-     * @param autoCreateEvent if true, create an eventOccurence lifeline given in parameter
      */
     public void autoSetEndLifeline(Lifeline lifeline) {
         lifeline.getNewEventOccurrence();
index 9c0ab261dfc2c5c5512f644153a0459c357ad5f5..2ecc7f0d028293c2e2472a4a866e8eb09f34362f 100755 (executable)
@@ -237,22 +237,22 @@ public class Frame extends BasicFrame {
      * Adds a lifeline to the frame lifelines list. The lifeline X drawing order depends on the lifeline addition order
      * into the frame lifelines list.
      * 
-     * @param the lifeline to add
+     * @param lifeline the lifeline to add
      */
-    public void addLifeLine(Lifeline lifeLine) {
+    public void addLifeLine(Lifeline lifeline) {
         computeMinMax = true;
-        if (lifeLine == null)
+        if (lifeline == null)
             return;
         // set the lifeline parent frame
-        lifeLine.setFrame(this);
+        lifeline.setFrame(this);
         // Increate the frame lifeline counter
         // and set the lifeline drawing order
-        lifeLine.setIndex(getNewHorizontalIndex());
-        if (lifeLine.hasTimeInfo()) {
+        lifeline.setIndex(getNewHorizontalIndex());
+        if (lifeline.hasTimeInfo()) {
             timeInfo = true;
         }
         // add the lifeline to the lifelines list
-        addNode(lifeLine);
+        addNode(lifeline);
     }
 
     /**
@@ -542,7 +542,7 @@ public class Frame extends BasicFrame {
      * For drawing performance reason, it is recommended to add synchronous syncMessages in the same order they should
      * appear along the Y axis in the Frame.
      * 
-     * @param the message to add
+     * @param message the message to add
      */
     public void addMessage(BaseMessage message) {
         addNode(message);
index 97c7f31e8a754c4c84fafb01228d4b1a501d1663..606167e5cb4392bc6929c002a996f149457349ce 100755 (executable)
@@ -146,7 +146,7 @@ public abstract class GraphNode {
      * Set the graph node name.<br>
      * It is the name display in the view to label the graph node.
      * 
-     * @param the name to set
+     * @param nodeName the name to set
      */
     public void setName(String nodeName) {
         name = nodeName;
@@ -260,10 +260,10 @@ public abstract class GraphNode {
      * Returns the GraphNode visibility for the given visible area. Wrong visibility calculation, may strongly impact
      * drawing performance
      * 
-     * @param vx
-     * @param vy
-     * @param vwidth
-     * @param vheight
+     * @param x
+     * @param y
+     * @param width
+     * @param height
      * @return true if visible false otherwise
      */
     public boolean isVisible(int x, int y, int width, int height) {
@@ -564,7 +564,6 @@ public abstract class GraphNode {
      * After, depending on the visible area, only visible GraphNodes are drawn.<br>
      * 
      * @param context the context to draw to
-     * @param drawFrame indicate if the frame rectangle need to be redrawn
      * @see org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.GraphNode#draw(IGC)
      */
     protected void drawChildenNodes(IGC context) {
index f9a81bf886a8118404c66be96554cafec0b3b76d..50c1089c2bd46312711e98487feb5b69ea14b8a0 100755 (executable)
@@ -74,7 +74,7 @@ public class HotSpot extends GraphNode {
     /**
      * Set the lifeline on which the execution occurrence appears.
      * 
-     * @param theLifeline - the parent lifeline
+     * @param occ the parent lifeline
      */
     public void setExecution(BasicExecutionOccurrence occ) {
         execOcc = occ;
index 5d25adaaf7421bbb080c92ae767cc573d6f0abe6..2092ebd5bd1a40c712f5e369c7ff6807159f70e4 100755 (executable)
@@ -170,7 +170,7 @@ public class Lifeline extends GraphNode {
      * operation mostly to store in the frame the greater event found in the diagram (used to determine the frame
      * height)
      * 
-     * @param index the new current event occurrence
+     * @param eventOcc the new current event occurrence
      */
     public void setCurrentEventOccurrence(int eventOcc) {
         if ((frame != null) && (frame.getMaxEventOccurrence() < eventOcc))
@@ -316,8 +316,8 @@ public class Lifeline extends GraphNode {
      * Force the lifeline to be drawn at the given coordinate
      * 
      * @param context - the context to draw into
-     * @param x1 - the x coordinate
-     * @param y1 - the y coordinate
+     * @param x - the x coordinate
+     * @param y - the y coordinate
      */
     public void draw(IGC context, int x, int y) {
         // Set the draw color depending if the lifeline must be selected or not
index fd21f19f6daeebad22006f39ea741082cf64ce6e..8b3f124b084413acfcd881b17fc6741356de3620 100755 (executable)
@@ -21,9 +21,7 @@ import org.eclipse.linuxtools.tmf.ui.views.uml2sd.drawings.ISDPreferences;
  * A stop is never drawn it is assigned to a lifeline.<br>
  * <br>
  * 
- * @see org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.Lifeline#setStop(Stop)
  * @author sveyrier
- * 
  */
 public class Stop extends GraphNode {
 
index 47d63ffae1bd1c85f163311031c30943f191787d..b0bb347e0965e12e1ce256d548eeacf60aa6219c 100755 (executable)
@@ -114,7 +114,7 @@ public interface ISDPreferences {
     /**
      * Returns the time compression bar selection color
      * 
-     * @return
+     * @return the time compression bar selection color 
      */
     public IColor getTimeCompressionSelectionColor();
 
index 55ff866290ed57c78fa4eaccd4cd62972b8a7c3e..6de9365f13a0333be5f6b8e8773d57f2f031d2a2 100755 (executable)
@@ -26,7 +26,7 @@ public interface ISDCollapseProvider {
      * Called back when the sequence diagram is requesting 2 lifelines collapsing
      * 
      * @param lifeline1 - One of the lifeline to collapse
-     * @param Lifeline2 - The other lifeline to collapse with
+     * @param lifeline2 - The other lifeline to collapse with
      */
     public void collapseTwoLifelines(Lifeline lifeline1, Lifeline lifeline2);
 
index 0cf6f60afa87fa3ff483845e89eaf559d416ca05..2bbcce0247495896467353b85ca1c3e0dc9596d6 100755 (executable)
@@ -28,7 +28,7 @@ public interface ISDFilterProvider extends ISDGraphNodeSupporter {
     /**
      * Called when the Filter dialog box OK button is pressed
      * 
-     * @param toApply user selection made in the dialog box
+     * @param filters user selection made in the dialog box
      * @return true if the filter applied
      */
     public boolean filter(List<?> filters);
index 0e9d6ff11d18dd0027889117515742f29c8b9521..3a62ceeb661f6d011f51f0f1e89379b7d8dde740 100755 (executable)
@@ -31,7 +31,7 @@ public interface ISDFindProvider extends ISDGraphNodeSupporter {
      * @param toApply user selection made in the dialog box
      * @return true if the find got a non empty result
      */
-    public boolean find(Criteria toapply);
+    public boolean find(Criteria toApply);
 
     /**
      * Called when dialog is closed
index 25fdf40b8363949c3f8b0637927b2ebdd507bf14..b4c5260caada5f211e8df300c37bb9d24598dc9b 100755 (executable)
@@ -22,7 +22,7 @@ public interface ISDPropertiesProvider {
     /**
      * Returns the IPropertySheetEntry that will fill in the properties view
      * 
-     * @return
+     * @return the property sheet entry
      */
     public IPropertySheetPage getPropertySheetEntry();
 
index d78345a61a3d624f7aceeea36a321944dd1007cb..058982e17560db4c6e0ac0999519c8f8cf7a0d4e 100755 (executable)
@@ -239,7 +239,7 @@ public class Criteria {
 
     /**
      * @param to
-     * @return
+     * @return usual comparison result (< 0, 0, > 0)
      */
     public boolean compareTo(Criteria to) {
         boolean retVal = true;
index 9bcadcc3bd6a1e3e11429b4abc327cf4900a545f..51e9d03f13d502d9066ecca0d309daf8f7902e7c 100755 (executable)
@@ -106,7 +106,7 @@ public class FilterCriteria {
     }
 
     /**
-     * @param positive The positive to set.
+     * @param positive_ The positive to set.
      */
     public void setPositive(boolean positive_) {
         positive = positive_;
@@ -120,7 +120,6 @@ public class FilterCriteria {
     }
 
     /**
-     * @return Returns the class loader name.
      */
     public void setLoaderClassName(String loaderClassName_) {
         loaderClassName = loaderClassName_;
index 0a5f1699eb24491d95a350d42ebd003d66e3efb1..d183886b6a0b6770524704beb589c7ef8f085e10 100755 (executable)
@@ -100,8 +100,10 @@ public class SearchFilterDialog extends Dialog {
     }
 
     /**
-     * @param theView
-     * @param _provider
+     * @param view_
+     * @param provider_
+     * @param filter_
+     * @param style
      */
     public SearchFilterDialog(SDView view_, ISDGraphNodeSupporter provider_, boolean filter_, int style) {
         super(view_.getSDWidget().getShell());
@@ -285,8 +287,6 @@ public class SearchFilterDialog extends Dialog {
 
     /**
      * Get the current end-user settings from the dialog to a Criteria
-     * 
-     * @param content
      */
     public void copyToCriteria() {
         criteria = new Criteria();
@@ -302,8 +302,7 @@ public class SearchFilterDialog extends Dialog {
     }
 
     /**
-     * @return
-     * @todo Generated comment
+     * @return the tab content
      */
     protected TabContents getTabContents() {
         TabContents content = null;
index d7802004ac154a32e8a277b4dd6468d72b5a9597..8dd468502b8499a9e5e4e3bd8f40d704b5f0e9f2 100755 (executable)
@@ -214,7 +214,7 @@ public class TabContents extends Composite {
     }
 
     /**
-     * @param t
+     * @param found
      */
     public void setResult(boolean found) {
         result.setVisible(!found);
@@ -234,7 +234,6 @@ public class TabContents extends Composite {
 
     /**
      * @param okButton
-     * @todo Generated comment
      */
     public void setOkButton(Button okButton) {
         parentOkButton = okButton;
index 9bf1fe98e0cf69380881bbf1dbec6b18913fcff1..9bd62fab1f2bbda14e8c42c267d3f165fb3a5990 100644 (file)
@@ -1060,7 +1060,7 @@ public class TmfUml2SDSyncLoader extends TmfComponent implements IUml2SDLoader,
     /**
      * Gets time range for time range signal.
      * @param startTime The start time of time range.
-     * @return
+     * @return the time range
      */
     protected TmfTimeRange getSignalTimeRange(ITmfTimestamp startTime) {
         fLock.lock();
@@ -1099,7 +1099,7 @@ public class TmfUml2SDSyncLoader extends TmfComponent implements IUml2SDLoader,
 
     /**
      * Checks if filter criteria matches a lifeline name (sender or receiver) in given SD event. 
-     * @param sdEvent The SD event to check
+     * @param lifeline the message receiver
      * @return true if match else false.
      */
     protected boolean filterLifeLine(String lifeline) {
This page took 0.067481 seconds and 5 git commands to generate.