tmf.core: Add a dependency level to analyses
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / analysis / IAnalysisModule.java
index 0c6a34f79f11cb4e14865c74777b650190d65b9c..c44a8a254ee2ef72348b958d0bce5956f4cf645f 100644 (file)
@@ -136,6 +136,19 @@ public interface IAnalysisModule extends ITmfComponent, IAnalysisRequirementProv
      */
     @Nullable Object getParameter(@NonNull String name);
 
+    /**
+     * Get the level of dependencies on other analyses that this analysis has.
+     * Typically, it would be equal to the number of dependent analyses. An
+     * analysis with no dependence would have a level of 0. This value can be
+     * used for the dependency level of event requests.
+     *
+     * @return The dependency level of this analysis
+     * @since 2.0
+     */
+    default int getDependencyLevel() {
+        return 0;
+    }
+
     // -----------------------------------------------------
     // Functionalities
     // -----------------------------------------------------
This page took 0.02702 seconds and 5 git commands to generate.