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