00561147226f9dad484bb679f3e5a4c088a73927
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / uml2sd / loader / TmfAsyncMessage.java
1 /**********************************************************************
2 * Copyright (c) 2011, 2012 Ericsson
3 *
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
8 *
9 * Contributors:
10 * Bernd Hufmann - Initial API and implementation
11 **********************************************************************/
12 package org.eclipse.linuxtools.tmf.ui.views.uml2sd.loader;
13
14 import org.eclipse.linuxtools.tmf.core.uml2sd.ITmfAsyncSequenceDiagramEvent;
15 import org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.AsyncMessage;
16
17 /**
18 * <p>
19 * Extends AsyncMessage class to provide additional information about the trace event.
20 * </p>
21 *
22 * @version 1.0
23 * @author Bernd Hufmann
24 */
25 public class TmfAsyncMessage extends AsyncMessage implements ITmfAsyncSequenceDiagramEvent {
26
27 // ------------------------------------------------------------------------
28 // Attributes
29 // ------------------------------------------------------------------------
30 /**
31 * A asynchronous sequence diagram event implementation
32 */
33 protected ITmfAsyncSequenceDiagramEvent fSdEvent;
34
35 // ------------------------------------------------------------------------
36 // Constructors
37 // ------------------------------------------------------------------------
38 /**
39 * Standard constructor
40 *
41 * @param sdEvent The asynchronous sequence diagram event implementation
42 * @param eventOccurrence The event index
43 */
44 public TmfAsyncMessage(ITmfAsyncSequenceDiagramEvent sdEvent, int eventOccurrence) {
45 this.fSdEvent = sdEvent;
46 setEventOccurrence(eventOccurrence);
47 setName(sdEvent.getName());
48 setStartTime(sdEvent.getStartTime());
49 setEndTime(sdEvent.getEndTime());
50 }
51
52 // ------------------------------------------------------------------------
53 // Methods
54 // ------------------------------------------------------------------------
55
56 /*
57 * (non-Javadoc)
58 * @see org.eclipse.linuxtools.ust.examples.event.ISequenceDiagramEvent#getSender()
59 */
60 @Override
61 public String getSender() {
62 return fSdEvent.getSender();
63 }
64
65 /*
66 * (non-Javadoc)
67 * @see org.eclipse.linuxtools.ust.examples.event.ISequenceDiagramEvent#getReceiver()
68 */
69 @Override
70 public String getReceiver() {
71 return fSdEvent.getReceiver();
72 }
73 }
This page took 0.031161 seconds and 5 git commands to generate.