Commit | Line | Data |
---|---|---|
73005152 | 1 | /********************************************************************** |
c8422608 | 2 | * Copyright (c) 2005, 2013 IBM Corporation, Ericsson |
73005152 BH |
3 | * All rights reserved. This program and the accompanying materials |
4 | * are made available under the terms of the Eclipse Public License v1.0 | |
5 | * which accompanies this distribution, and is available at | |
6 | * http://www.eclipse.org/legal/epl-v10.html | |
3bd46eef AM |
7 | * |
8 | * Contributors: | |
c8422608 AM |
9 | * IBM - Initial API and implementation |
10 | * Bernd Hufmann - Updated for TMF | |
73005152 | 11 | **********************************************************************/ |
c8422608 | 12 | |
73005152 BH |
13 | package org.eclipse.linuxtools.tmf.ui.views.uml2sd.core; |
14 | ||
3bd46eef | 15 | import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp; |
73005152 BH |
16 | |
17 | /** | |
df0b8ff4 | 18 | * A interface for handling time ranges. |
3bd46eef | 19 | * |
df0b8ff4 | 20 | * @version 1.0 |
73005152 | 21 | * @author sveyrier |
73005152 BH |
22 | */ |
23 | public interface ITimeRange { | |
24 | ||
df0b8ff4 BH |
25 | /** |
26 | * Returns the time when the message began. | |
27 | * @return the time when the message began | |
3bd46eef | 28 | * @since 2.0 |
df0b8ff4 | 29 | */ |
4df4581d | 30 | public ITmfTimestamp getStartTime(); |
73005152 | 31 | |
df0b8ff4 BH |
32 | /** |
33 | * Returns the time when the message ended. | |
3bd46eef | 34 | * |
df0b8ff4 | 35 | * @return the time when the message ended |
3bd46eef | 36 | * @since 2.0 |
df0b8ff4 | 37 | */ |
4df4581d | 38 | public ITmfTimestamp getEndTime(); |
73005152 | 39 | |
df0b8ff4 BH |
40 | /** |
41 | * Returns flag to indicate whether time information is available or not. | |
3bd46eef AM |
42 | * |
43 | * @return flag to indicate whether time information is available or not | |
df0b8ff4 | 44 | */ |
73005152 BH |
45 | public boolean hasTimeInfo(); |
46 | } |