Search in sources :

Example 1 with Enqueued

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

the class MSCModel method addEnqueued.

private MSCNode[] addEnqueued(final String ref, final String target, final String name, final String time, final int occurrence) {
    Enqueued message = new Enqueued();
    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);
    message.setStartLifeline(source);
    message.setEndLifeline(dest);
    message.setName(name);
    return new MSCNode[] { message, 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) Enqueued(org.eclipse.titan.log.viewer.views.msc.ui.core.Enqueued)

Aggregations

Enqueued (org.eclipse.titan.log.viewer.views.msc.ui.core.Enqueued)1 Lifeline (org.eclipse.titan.log.viewer.views.msc.ui.core.Lifeline)1 MSCNode (org.eclipse.titan.log.viewer.views.msc.ui.core.MSCNode)1 TimeStampNode (org.eclipse.titan.log.viewer.views.msc.ui.core.TimeStampNode)1