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
.ITmfAsyncSequenceDiagramEvent
;
16 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.core
.AsyncMessage
;
20 * Extends AsyncMessage class to provide additional information about the trace event.
24 * @author Bernd Hufmann
26 public class TmfAsyncMessage
extends AsyncMessage
implements ITmfAsyncSequenceDiagramEvent
{
28 // ------------------------------------------------------------------------
30 // ------------------------------------------------------------------------
32 * A asynchronous sequence diagram event implementation
34 protected ITmfAsyncSequenceDiagramEvent fSdEvent
;
36 // ------------------------------------------------------------------------
38 // ------------------------------------------------------------------------
40 * Standard constructor
42 * @param sdEvent The asynchronous sequence diagram event implementation
43 * @param eventOccurrence The event index
45 public TmfAsyncMessage(ITmfAsyncSequenceDiagramEvent sdEvent
, int eventOccurrence
) {
46 this.fSdEvent
= sdEvent
;
47 setEventOccurrence(eventOccurrence
);
48 setName(sdEvent
.getName());
49 setStartTime(sdEvent
.getStartTime());
50 setEndTime(sdEvent
.getEndTime());
53 // ------------------------------------------------------------------------
55 // ------------------------------------------------------------------------
59 * @see org.eclipse.linuxtools.ust.examples.event.ISequenceDiagramEvent#getSender()
62 public String
getSender() {
63 return fSdEvent
.getSender();
68 * @see org.eclipse.linuxtools.ust.examples.event.ISequenceDiagramEvent#getReceiver()
71 public String
getReceiver() {
72 return fSdEvent
.getReceiver();