| 1 | /********************************************************************** |
| 2 | * Copyright (c) 2005, 2013 IBM Corporation, Ericsson |
| 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 |
| 7 | * |
| 8 | * Contributors: |
| 9 | * IBM - Initial API and implementation |
| 10 | * Bernd Hufmann - Updated for TMF |
| 11 | **********************************************************************/ |
| 12 | |
| 13 | package org.eclipse.linuxtools.tmf.ui.views.uml2sd.core; |
| 14 | |
| 15 | import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp; |
| 16 | |
| 17 | /** |
| 18 | * A interface for handling time ranges. |
| 19 | * |
| 20 | * @version 1.0 |
| 21 | * @author sveyrier |
| 22 | */ |
| 23 | public interface ITimeRange { |
| 24 | |
| 25 | /** |
| 26 | * Returns the time when the message began. |
| 27 | * @return the time when the message began |
| 28 | * @since 2.0 |
| 29 | */ |
| 30 | public ITmfTimestamp getStartTime(); |
| 31 | |
| 32 | /** |
| 33 | * Returns the time when the message ended. |
| 34 | * |
| 35 | * @return the time when the message ended |
| 36 | * @since 2.0 |
| 37 | */ |
| 38 | public ITmfTimestamp getEndTime(); |
| 39 | |
| 40 | /** |
| 41 | * Returns flag to indicate whether time information is available or not. |
| 42 | * |
| 43 | * @return flag to indicate whether time information is available or not |
| 44 | */ |
| 45 | public boolean hasTimeInfo(); |
| 46 | } |