tmf: Move plugins to the Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / uml2sd / loader / TmfSyncMessage.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.ITmfSyncSequenceDiagramEvent;
16 import org.eclipse.linuxtools.tmf.ui.views.uml2sd.core.SyncMessage;
17
18
19 /**
20 * <p>
21 * Extends SyncMessage class to provide additional information about the trace event.
22 * </p>
23 *
24 * @version 1.0
25 * @author Bernd Hufmann
26 */
27 public class TmfSyncMessage extends SyncMessage implements ITmfSyncSequenceDiagramEvent {
28
29 // ------------------------------------------------------------------------
30 // Attributes
31 // ------------------------------------------------------------------------
32
33 /**
34 * A synchronous sequence diagram event implementation
35 */
36 private ITmfSyncSequenceDiagramEvent fSdEvent;
37
38 // ------------------------------------------------------------------------
39 // Constructors
40 // ------------------------------------------------------------------------
41
42 /**
43 * Standard constructor
44 *
45 * @param sdEvent The synchronous sequence diagram event implementation
46 * @param eventOccurrence The event index
47 */
48 public TmfSyncMessage(ITmfSyncSequenceDiagramEvent sdEvent, int eventOccurrence) {
49 this.fSdEvent = sdEvent;
50 setEventOccurrence(eventOccurrence);
51 setName(sdEvent.getName());
52 setTime(sdEvent.getStartTime());
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.061597 seconds and 5 git commands to generate.