package org.eclipse.tracecompass.analysis.graph.core.base;
+import java.util.Collections;
+import java.util.Map;
+
/**
* Interface that the objects in a graph may implement
*
*/
String getHostId();
+ /**
+ * Get additional information on this worker at time t. This would be
+ * textual information, in the form of key, value pairs, that could be
+ * displayed for instance as extra columns for this worker in a graph view.
+ *
+ * @return A key, value map of information this worker provides.
+ * @since 2.0
+ */
+ default Map<String, String> getWorkerInformation() {
+ return Collections.EMPTY_MAP;
+ }
+
+ /**
+ * Get additional information on this worker at time t. This would be
+ * textual information, in the form of key, value pairs, that could be
+ * displayed for instance as a tooltip in the graph view.
+ *
+ * @param t
+ * Time at which to get the information
+ * @return A key, value map of information this worker provides.
+ * @since 2.0
+ */
+ default Map<String, String> getWorkerInformation(long t) {
+ return Collections.EMPTY_MAP;
+ }
+
}