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
.TmfEvent
;
15 import org
.eclipse
.linuxtools
.tmf
.core
.event
.TmfTimestamp
;
18 * <b><u>TmfAsyncSequenceDiagramEvent</u></b>
20 * Sample implementation of the ITmfAsyncSequenceDiagramEvent
23 public class TmfAsyncSequenceDiagramEvent
extends TmfSyncSequenceDiagramEvent
implements ITmfAsyncSequenceDiagramEvent
{
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
28 final protected TmfTimestamp fEndTime
;
30 // ------------------------------------------------------------------------
32 // ------------------------------------------------------------------------
33 public TmfAsyncSequenceDiagramEvent(TmfEvent startEvent
, TmfEvent endEvent
, String sender
, String receiver
, String name
) {
34 super(startEvent
, sender
, receiver
, name
);
36 if (endEvent
== null) {
37 throw new IllegalArgumentException("TmfAsyncSequenceDiagramEvent constructor: endEvent=null"); //$NON-NLS-1$
39 fEndTime
= endEvent
.getTimestamp().clone();
42 // ------------------------------------------------------------------------
44 // ------------------------------------------------------------------------
48 * @see org.eclipse.linuxtools.tmf.uml2sd.ITmfAsyncSequenceDiagramEvent#getEndTime()
51 public TmfTimestamp
getEndTime() {