Search in sources :

Example 6 with TimeStampNode

use of org.eclipse.titan.log.viewer.views.msc.ui.core.TimeStampNode in project titan.EclipsePlug-ins by eclipse.

the class MSCModel method addSilentEvent.

private MSCNode[] addSilentEvent(final String ref, final String name, final String type, final String time, final int occurrence) {
    String silentEventType = null;
    Set<String> types = Constants.EVENT_CATEGORIES.keySet();
    for (String currType : types) {
        if (type.startsWith(currType)) {
            silentEventType = currType;
            break;
        }
    }
    if (silentEventType == null) {
        return new MSCNode[] {};
    }
    // Get life line
    Lifeline tmpLifeline = this.lifelines.get(ref);
    if (tmpLifeline == null) {
        return new MSCNode[] {};
    }
    // Create and add silent event
    SilentEvent silentEvent = new SilentEvent(occurrence, tmpLifeline, type);
    // $NON-NLS-1$
    silentEvent.setName(type + "\n" + name);
    // Create and add Time Stamp
    return new MSCNode[] { silentEvent, new TimeStampNode(occurrence, time) };
}
Also used : TimeStampNode(org.eclipse.titan.log.viewer.views.msc.ui.core.TimeStampNode) Lifeline(org.eclipse.titan.log.viewer.views.msc.ui.core.Lifeline) MSCNode(org.eclipse.titan.log.viewer.views.msc.ui.core.MSCNode) SilentEvent(org.eclipse.titan.log.viewer.views.msc.ui.core.SilentEvent)

Example 7 with TimeStampNode

use of org.eclipse.titan.log.viewer.views.msc.ui.core.TimeStampNode in project titan.EclipsePlug-ins by eclipse.

the class MSCModel method createComponent.

private MSCNode[] createComponent(final String ref, final String time, final Lifeline lifeline, final int occurrence) {
    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 + ")";
    }
    ComponentCreation start = new ComponentCreation(occurrence, lifeline);
    start.setName(name);
    return new MSCNode[] { start, new TimeStampNode(occurrence, time) };
}
Also used : TimeStampNode(org.eclipse.titan.log.viewer.views.msc.ui.core.TimeStampNode) ComponentCreation(org.eclipse.titan.log.viewer.views.msc.ui.core.ComponentCreation) MSCNode(org.eclipse.titan.log.viewer.views.msc.ui.core.MSCNode)

Example 8 with TimeStampNode

use of org.eclipse.titan.log.viewer.views.msc.ui.core.TimeStampNode in project titan.EclipsePlug-ins by eclipse.

the class MSCModel method testCaseStart.

private MSCNode[] testCaseStart(final String name, final String time, final int width, final int occurrence) {
    // Create Test Case Start
    TestCaseStart testCaseStart = new TestCaseStart(occurrence, width);
    testCaseStart.setName(name);
    // Create and add Time Stamp
    return new MSCNode[] { testCaseStart, new TimeStampNode(occurrence, time) };
}
Also used : TestCaseStart(org.eclipse.titan.log.viewer.views.msc.ui.core.TestCaseStart) TimeStampNode(org.eclipse.titan.log.viewer.views.msc.ui.core.TimeStampNode) MSCNode(org.eclipse.titan.log.viewer.views.msc.ui.core.MSCNode)

Example 9 with TimeStampNode

use of org.eclipse.titan.log.viewer.views.msc.ui.core.TimeStampNode in project titan.EclipsePlug-ins by eclipse.

the class MSCModel method addSignal.

private MSCNode[] addSignal(final Signal signal, final String ref, final String target, final String name, final String time, final int occurrence) {
    Lifeline source = this.lifelines.get(ref);
    Lifeline dest = this.lifelines.get(target);
    if ((source == null) || (dest == null)) {
        return new MSCNode[] {};
    }
    source.setCurrentEventOccurrence(occurrence);
    dest.setCurrentEventOccurrence(occurrence);
    signal.setStartLifeline(source);
    signal.setEndLifeline(dest);
    signal.setName(name);
    // Create and add Time Stamp
    return new MSCNode[] { signal, new TimeStampNode(occurrence, time) };
}
Also used : TimeStampNode(org.eclipse.titan.log.viewer.views.msc.ui.core.TimeStampNode) Lifeline(org.eclipse.titan.log.viewer.views.msc.ui.core.Lifeline) MSCNode(org.eclipse.titan.log.viewer.views.msc.ui.core.MSCNode)

Example 10 with TimeStampNode

use of org.eclipse.titan.log.viewer.views.msc.ui.core.TimeStampNode in project titan.EclipsePlug-ins by eclipse.

the class MSCModel method testCaseEnd.

private MSCNode[] testCaseEnd(final String name, final String time, final int width, final int occurrence) {
    // Create Test Case End
    TestCaseEnd testCaseEnd = new TestCaseEnd(occurrence, name, width);
    testCaseEnd.setName(name);
    // Create and add Time Stamp
    return new MSCNode[] { testCaseEnd, new TimeStampNode(occurrence, time) };
}
Also used : TimeStampNode(org.eclipse.titan.log.viewer.views.msc.ui.core.TimeStampNode) MSCNode(org.eclipse.titan.log.viewer.views.msc.ui.core.MSCNode) TestCaseEnd(org.eclipse.titan.log.viewer.views.msc.ui.core.TestCaseEnd)

Aggregations

MSCNode (org.eclipse.titan.log.viewer.views.msc.ui.core.MSCNode)10 TimeStampNode (org.eclipse.titan.log.viewer.views.msc.ui.core.TimeStampNode)10 Lifeline (org.eclipse.titan.log.viewer.views.msc.ui.core.Lifeline)7 ComponentCreation (org.eclipse.titan.log.viewer.views.msc.ui.core.ComponentCreation)1 ComponentTermination (org.eclipse.titan.log.viewer.views.msc.ui.core.ComponentTermination)1 Enqueued (org.eclipse.titan.log.viewer.views.msc.ui.core.Enqueued)1 SetverdictComp (org.eclipse.titan.log.viewer.views.msc.ui.core.SetverdictComp)1 SetverdictUnknown (org.eclipse.titan.log.viewer.views.msc.ui.core.SetverdictUnknown)1 SilentEvent (org.eclipse.titan.log.viewer.views.msc.ui.core.SilentEvent)1 TestCaseEnd (org.eclipse.titan.log.viewer.views.msc.ui.core.TestCaseEnd)1 TestCaseStart (org.eclipse.titan.log.viewer.views.msc.ui.core.TestCaseStart)1