use of org.eclipse.titan.log.viewer.views.msc.ui.core.ComponentTermination in project titan.EclipsePlug-ins by eclipse.
the class MSCModel method terminateLifeLineComponent.
private void terminateLifeLineComponent(final String ref, final String time, final int occurrence) {
// Get life line
Lifeline tmpLifeline = this.lifelines.get(ref);
if (tmpLifeline == null) {
return;
}
// Get name
String name = getComponentNameFromReference(ref);
if (!name.contentEquals(this.sutName) && !name.contentEquals(MSCConstants.MTC_NAME) && !name.contentEquals(ref)) {
// $NON-NLS-1$ //$NON-NLS-2$
name = name + " (" + ref + ")";
}
// Create and add stop
String verdict = getComponentVerdictFromReference(ref);
ComponentTermination stop = new ComponentTermination(occurrence, tmpLifeline, verdict);
stop.setName(name);
tmpLifeline.setStop(stop);
}
use of org.eclipse.titan.log.viewer.views.msc.ui.core.ComponentTermination in project titan.EclipsePlug-ins by eclipse.
the class MSCModel method terminateComponent.
private MSCNode[] terminateComponent(final String ref, final String time, final int occurrence) {
// Get life line
Lifeline tmpLifeline = this.lifelines.get(ref);
if (tmpLifeline == null) {
return new MSCNode[] {};
}
// Get name
String name = getComponentNameFromReference(ref);
if (!name.contentEquals(this.sutName) && !name.contentEquals(MSCConstants.MTC_NAME) && !name.contentEquals(ref)) {
// $NON-NLS-1$ //$NON-NLS-2$
name = name + " (" + ref + ")";
}
// Create and add stop
String verdict = getComponentVerdictFromReference(ref);
ComponentTermination stop = new ComponentTermination(occurrence, tmpLifeline, verdict);
stop.setName(name);
tmpLifeline.setStop(stop);
// Create and add Time Stamp
return new MSCNode[] { stop, new TimeStampNode(occurrence, time) };
}
Aggregations