1 /**********************************************************************
2 * Copyright (c) 2011 Ericsson
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
10 * Bernd Hufmann - Initial API and implementation
11 **********************************************************************/
12 package org
.eclipse
.linuxtools
.tmf
.core
.uml2sd
;
14 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfEvent
;
15 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfTimestamp
;
18 * <b><u>TmfAsyncSequenceDiagramEvent</u></b>
20 * Sample implementation of the ITmfAsyncSequenceDiagramEvent
23 public class TmfAsyncSequenceDiagramEvent
extends TmfSyncSequenceDiagramEvent
implements ITmfAsyncSequenceDiagramEvent
{
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
29 final protected ITmfTimestamp fEndTime
;
31 // ------------------------------------------------------------------------
33 // ------------------------------------------------------------------------
34 public TmfAsyncSequenceDiagramEvent(ITmfEvent startEvent
, ITmfEvent endEvent
, String sender
, String receiver
, String name
) {
35 super(startEvent
, sender
, receiver
, name
);
37 if (endEvent
== null) {
38 throw new IllegalArgumentException("TmfAsyncSequenceDiagramEvent constructor: endEvent=null"); //$NON-NLS-1$
40 fEndTime
= endEvent
.getTimestamp().clone();
43 // ------------------------------------------------------------------------
45 // ------------------------------------------------------------------------
49 * @see org.eclipse.linuxtools.tmf.uml2sd.ITmfAsyncSequenceDiagramEvent#getEndTime()
52 public ITmfTimestamp
getEndTime() {