public class TmfStateSystemBuildCompleted extends TmfSignal {
private final ITmfTrace fTrace;
+ private final String fID;
/**
* Constructor
* Object sending this signal
* @param trace
* The state system of which trace just finished building
+ * @param id
+ * ID associated with this state system. This can be used in the
+ * case of a trace containing multiple state systems, to
+ * differentiate between them.
+ * @since 2.0
*/
- public TmfStateSystemBuildCompleted(Object source, ITmfTrace trace) {
+ public TmfStateSystemBuildCompleted(Object source, ITmfTrace trace, String id) {
super(source);
fTrace = trace;
+ fID = id;
}
/**
return fTrace;
}
+ /**
+ * @return The ID of the state system that just finished building
+ * @since 2.0
+ */
+ public String getID() {
+ return fID;
+ }
+
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
- return "[TmfStateSystemBuildCompleted (" + fTrace.toString() + ")]"; //$NON-NLS-1$ //$NON-NLS-2$
+ return "[TmfStateSystemBuildCompleted (trace = " + fTrace.toString() + //$NON-NLS-1$
+ ", ID = " + fID + ")]"; //$NON-NLS-1$ //$NON-NLS-2$
}
}