1 /**********************************************************************
2 * Copyright (c) 2011 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 **********************************************************************/
12 package org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.impl
;
15 * <b><u>TmfAsyncMessage</u></b>
17 * Extends AsyncMessage class to provide additional information about the trace event.
20 import org
.eclipse
.linuxtools
.tmf
.core
.uml2sd
.ITmfAsyncSequenceDiagramEvent
;
21 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.core
.AsyncMessage
;
23 public class TmfAsyncMessage
extends AsyncMessage
implements ITmfAsyncSequenceDiagramEvent
{
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
28 protected ITmfAsyncSequenceDiagramEvent fSdEvent
;
30 // ------------------------------------------------------------------------
32 // ------------------------------------------------------------------------
33 public TmfAsyncMessage(ITmfAsyncSequenceDiagramEvent sdEvent
, int eventOccurrence
) {
34 this.fSdEvent
= sdEvent
;
35 setEventOccurrence(eventOccurrence
);
36 setName(sdEvent
.getName());
37 setStartTime(sdEvent
.getStartTime());
38 setEndTime(sdEvent
.getEndTime());
41 // ------------------------------------------------------------------------
43 // ------------------------------------------------------------------------
47 * @see org.eclipse.linuxtools.ust.examples.event.ISequenceDiagramEvent#getSender()
50 public String
getSender() {
51 return fSdEvent
.getSender();
56 * @see org.eclipse.linuxtools.ust.examples.event.ISequenceDiagramEvent#getReceiver()
59 public String
getReceiver() {
60 return fSdEvent
.getReceiver();