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