Commit | Line | Data |
---|---|---|
73005152 | 1 | /********************************************************************** |
ed902a2b | 2 | * Copyright (c) 2005, 2014 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 | |
2bdf0193 | 13 | package org.eclipse.tracecompass.tmf.ui.views.uml2sd.core; |
73005152 | 14 | |
2bdf0193 | 15 | import org.eclipse.tracecompass.tmf.core.timestamp.ITmfTimestamp; |
73005152 BH |
16 | |
17 | /** | |
df0b8ff4 | 18 | * A interface for handling time ranges. |
3bd46eef | 19 | * |
73005152 | 20 | * @author sveyrier |
73005152 BH |
21 | */ |
22 | public interface ITimeRange { | |
23 | ||
df0b8ff4 BH |
24 | /** |
25 | * Returns the time when the message began. | |
26 | * @return the time when the message began | |
27 | */ | |
57a2a5ca | 28 | ITmfTimestamp getStartTime(); |
73005152 | 29 | |
df0b8ff4 BH |
30 | /** |
31 | * Returns the time when the message ended. | |
3bd46eef | 32 | * |
df0b8ff4 BH |
33 | * @return the time when the message ended |
34 | */ | |
57a2a5ca | 35 | ITmfTimestamp getEndTime(); |
73005152 | 36 | |
df0b8ff4 BH |
37 | /** |
38 | * Returns flag to indicate whether time information is available or not. | |
3bd46eef AM |
39 | * |
40 | * @return flag to indicate whether time information is available or not | |
df0b8ff4 | 41 | */ |
57a2a5ca | 42 | boolean hasTimeInfo(); |
73005152 | 43 | } |