1 /**********************************************************************
2 * Copyright (c) 2011, 2012 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Bernd Hufmann - Initial API and implementation
11 **********************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.loader
;
15 import org
.eclipse
.linuxtools
.tmf
.core
.uml2sd
.ITmfSyncSequenceDiagramEvent
;
16 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.core
.SyncMessage
;
21 * Extends SyncMessage class to provide additional information about the trace event.
25 * @author Bernd Hufmann
27 public class TmfSyncMessage
extends SyncMessage
implements ITmfSyncSequenceDiagramEvent
{
29 // ------------------------------------------------------------------------
31 // ------------------------------------------------------------------------
33 * A synchronous sequence diagram event implementation
35 protected ITmfSyncSequenceDiagramEvent fSdEvent
;
37 // ------------------------------------------------------------------------
39 // ------------------------------------------------------------------------
41 * Standard constructor
43 * @param sdEvent The synchronous sequence diagram event implementation
44 * @param eventOccurrence The event index
46 public TmfSyncMessage(ITmfSyncSequenceDiagramEvent sdEvent
, int eventOccurrence
) {
47 this.fSdEvent
= sdEvent
;
48 setEventOccurrence(eventOccurrence
);
49 setName(sdEvent
.getName());
50 setTime(sdEvent
.getStartTime());
53 // ------------------------------------------------------------------------
55 // ------------------------------------------------------------------------
58 * @see org.eclipse.linuxtools.ust.examples.event.ISequenceDiagramEvent#getSender()
61 public String
getSender() {
62 return fSdEvent
.getSender();
67 * @see org.eclipse.linuxtools.ust.examples.event.ISequenceDiagramEvent#getReceiver()
70 public String
getReceiver() {
71 return fSdEvent
.getReceiver();