analysis: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / uml2sd / TmfAsyncSequenceDiagramEvent.java
1 /**********************************************************************
2 * Copyright (c) 2011, 2014 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 package org.eclipse.tracecompass.tmf.core.uml2sd;
13
14 import org.eclipse.tracecompass.tmf.core.event.ITmfEvent;
15 import org.eclipse.tracecompass.tmf.core.timestamp.ITmfTimestamp;
16
17 /**
18 * <p>
19 * A basic implementation of ITmfAsyncSequenceDiagramEvent.
20 * </p>
21 *
22 * @author Bernd Hufmann
23 */
24 public class TmfAsyncSequenceDiagramEvent extends TmfSyncSequenceDiagramEvent implements ITmfAsyncSequenceDiagramEvent {
25
26 // ------------------------------------------------------------------------
27 // Attributes
28 // ------------------------------------------------------------------------
29 /**
30 * The end time of the sequence diagram event (i.e. time when signal was received).
31 */
32 private final ITmfTimestamp fEndTime;
33
34 // ------------------------------------------------------------------------
35 // Constructors
36 // ------------------------------------------------------------------------
37 /**
38 * Constructor
39 *
40 * @param startEvent The start event (on sender side).
41 * @param endEvent The end event (receiver side).
42 * @param sender The name of sender of signal.
43 * @param receiver The Name of receiver of signal.
44 * @param name - The signal name
45 */
46 public TmfAsyncSequenceDiagramEvent(ITmfEvent startEvent, ITmfEvent endEvent, String sender, String receiver, String name) {
47 super(startEvent, sender, receiver, name);
48
49 if (endEvent == null) {
50 throw new IllegalArgumentException("TmfAsyncSequenceDiagramEvent constructor: endEvent=null"); //$NON-NLS-1$
51 }
52 fEndTime = endEvent.getTimestamp();
53 }
54
55 // ------------------------------------------------------------------------
56 // Operations
57 // ------------------------------------------------------------------------
58
59 @Override
60 public ITmfTimestamp getEndTime() {
61 return fEndTime;
62 }
63 }
This page took 0.032692 seconds and 5 git commands to generate.