Add convenience setters to TmdDataEvent
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / uml2sd / TmfAsyncSequenceDiagramEvent.java
CommitLineData
73005152
BH
1/**********************************************************************
2 * Copyright (c) 2011 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 **********************************************************************/
6c13869b 12package org.eclipse.linuxtools.tmf.core.uml2sd;
73005152 13
6c13869b
FC
14import org.eclipse.linuxtools.tmf.core.event.TmfEvent;
15import org.eclipse.linuxtools.tmf.core.event.TmfTimestamp;
73005152
BH
16
17/**
18 * <b><u>TmfAsyncSequenceDiagramEvent</u></b>
19 * <p>
20 * Sample implementation of the ITmfAsyncSequenceDiagramEvent
21 * </p>
22 */
23public class TmfAsyncSequenceDiagramEvent extends TmfSyncSequenceDiagramEvent implements ITmfAsyncSequenceDiagramEvent {
24
25 // ------------------------------------------------------------------------
26 // Attributes
27 // ------------------------------------------------------------------------
28 final protected TmfTimestamp fEndTime;
29
30 // ------------------------------------------------------------------------
31 // Constructors
32 // ------------------------------------------------------------------------
33 public TmfAsyncSequenceDiagramEvent(TmfEvent startEvent, TmfEvent endEvent, String sender, String receiver, String name) {
34 super(startEvent, sender, receiver, name);
35
36 if (endEvent == null) {
37 throw new IllegalArgumentException("TmfAsyncSequenceDiagramEvent constructor: endEvent=null"); //$NON-NLS-1$
38 }
39 fEndTime = endEvent.getTimestamp().clone();
40 }
41
42 // ------------------------------------------------------------------------
43 // Operations
44 // ------------------------------------------------------------------------
45
46 /*
47 * (non-Javadoc)
48 * @see org.eclipse.linuxtools.tmf.uml2sd.ITmfAsyncSequenceDiagramEvent#getEndTime()
49 */
50 @Override
51 public TmfTimestamp getEndTime() {
52 return fEndTime;
53 }
54}
This page took 0.030771 seconds and 5 git commands to generate.