Copyright header update, 2015 edition
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / tmf / ui / views / uml2sd / loader / TmfSyncMessage.java
CommitLineData
73005152 1/**********************************************************************
ed902a2b 2 * Copyright (c) 2011, 2014 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
2bdf0193 13package org.eclipse.tracecompass.tmf.ui.views.uml2sd.loader;
df0b8ff4 14
2bdf0193
AM
15import org.eclipse.tracecompass.tmf.core.uml2sd.ITmfSyncSequenceDiagramEvent;
16import org.eclipse.tracecompass.tmf.ui.views.uml2sd.core.SyncMessage;
df0b8ff4 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 // ------------------------------------------------------------------------
11252342 32
df0b8ff4
BH
33 /**
34 * A synchronous sequence diagram event implementation
35 */
cab6c8ff 36 private ITmfSyncSequenceDiagramEvent fSdEvent;
c8422608 37
73005152
BH
38 // ------------------------------------------------------------------------
39 // Constructors
40 // ------------------------------------------------------------------------
11252342 41
df0b8ff4
BH
42 /**
43 * Standard constructor
c8422608 44 *
df0b8ff4
BH
45 * @param sdEvent The synchronous sequence diagram event implementation
46 * @param eventOccurrence The event index
47 */
73005152
BH
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 // ------------------------------------------------------------------------
df0b8ff4 56 // Methods
73005152 57 // ------------------------------------------------------------------------
11252342 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 }
11252342 68}
This page took 0.065287 seconds and 5 git commands to generate.