Move alltests plugin to the Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / uml2sd / loader / TmfAsyncMessage.java
CommitLineData
73005152 1/**********************************************************************
11252342 2 * Copyright (c) 2011, 2013 Ericsson
c8422608 3 *
73005152
BH
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
c8422608
AM
8 *
9 * Contributors:
73005152
BH
10 * Bernd Hufmann - Initial API and implementation
11 **********************************************************************/
c8422608 12
df0b8ff4
BH
13package org.eclipse.linuxtools.tmf.ui.views.uml2sd.loader;
14
15import org.eclipse.linuxtools.tmf.core.uml2sd.ITmfAsyncSequenceDiagramEvent;
16import org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.AsyncMessage;
73005152
BH
17
18/**
73005152
BH
19 * <p>
20 * Extends AsyncMessage class to provide additional information about the trace event.
21 * </p>
c8422608 22 *
df0b8ff4
BH
23 * @version 1.0
24 * @author Bernd Hufmann
73005152 25 */
73005152
BH
26public class TmfAsyncMessage extends AsyncMessage implements ITmfAsyncSequenceDiagramEvent {
27
28 // ------------------------------------------------------------------------
29 // Attributes
30 // ------------------------------------------------------------------------
11252342 31
df0b8ff4
BH
32 /**
33 * A asynchronous sequence diagram event implementation
34 */
cab6c8ff 35 private ITmfAsyncSequenceDiagramEvent fSdEvent;
c8422608 36
73005152
BH
37 // ------------------------------------------------------------------------
38 // Constructors
39 // ------------------------------------------------------------------------
11252342 40
df0b8ff4
BH
41 /**
42 * Standard constructor
c8422608 43 *
df0b8ff4
BH
44 * @param sdEvent The asynchronous sequence diagram event implementation
45 * @param eventOccurrence The event index
46 */
73005152
BH
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 // ------------------------------------------------------------------------
df0b8ff4 56 // Methods
73005152
BH
57 // ------------------------------------------------------------------------
58
73005152
BH
59 @Override
60 public String getSender() {
61 return fSdEvent.getSender();
62 }
63
73005152
BH
64 @Override
65 public String getReceiver() {
66 return fSdEvent.getReceiver();
67 }
68}
This page took 0.060781 seconds and 5 git commands to generate.