0e22b277b226f3540101cec1c83ff9f7f57a2c9a
[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
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 * A asynchronous sequence diagram event implementation
33 */
34 protected ITmfAsyncSequenceDiagramEvent fSdEvent;
35
36 // ------------------------------------------------------------------------
37 // Constructors
38 // ------------------------------------------------------------------------
39 /**
40 * Standard constructor
41 *
42 * @param sdEvent The asynchronous sequence diagram event implementation
43 * @param eventOccurrence The event index
44 */
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());
51 }
52
53 // ------------------------------------------------------------------------
54 // Methods
55 // ------------------------------------------------------------------------
56
57 /*
58 * (non-Javadoc)
59 * @see org.eclipse.linuxtools.ust.examples.event.ISequenceDiagramEvent#getSender()
60 */
61 @Override
62 public String getSender() {
63 return fSdEvent.getSender();
64 }
65
66 /*
67 * (non-Javadoc)
68 * @see org.eclipse.linuxtools.ust.examples.event.ISequenceDiagramEvent#getReceiver()
69 */
70 @Override
71 public String getReceiver() {
72 return fSdEvent.getReceiver();
73 }
74 }
This page took 0.033842 seconds and 5 git commands to generate.