Commit | Line | Data |
---|---|---|
cb8c854e | 1 | /******************************************************************************* |
83f4e378 | 2 | |
cb8c854e FC |
3 | * Copyright (c) 2012 Ericsson |
4 | * | |
5 | * All rights reserved. This program and the accompanying materials are | |
6 | * made available under the terms of the Eclipse Public License v1.0 which | |
7 | * accompanies this distribution, and is available at | |
8 | * http://www.eclipse.org/legal/epl-v10.html | |
9 | * | |
10 | * Contributors: | |
11 | * Francois Chouinard - Initial API and implementation | |
12 | *******************************************************************************/ | |
13 | ||
14 | package org.eclipse.linuxtools.tmf.core.trace; | |
15 | ||
16 | import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp; | |
17 | ||
18 | /** | |
83f4e378 FC |
19 | * A concrete implementation of TmfLocation based on ITmfTimestamp:s |
20 | * | |
21 | * @author Francois Chouinard | |
cb8c854e FC |
22 | * @since 2.0 |
23 | */ | |
d62bb185 | 24 | public final class TmfTimestampLocation extends TmfLocation { |
cb8c854e | 25 | |
1e1bef82 | 26 | /** |
83f4e378 FC |
27 | * The normal constructor |
28 | * | |
29 | * @param locationInfo the concrete location | |
1e1bef82 | 30 | */ |
83f4e378 FC |
31 | public TmfTimestampLocation(final ITmfTimestamp locationInfo) { |
32 | super(locationInfo); | |
cb8c854e FC |
33 | } |
34 | ||
1e1bef82 | 35 | /** |
83f4e378 FC |
36 | * The copy constructor |
37 | * | |
1e1bef82 FC |
38 | * @param other the other location |
39 | */ | |
83f4e378 | 40 | public TmfTimestampLocation(final TmfTimestampLocation other) { |
5976d44a | 41 | super(other.getLocationInfo()); |
cb8c854e FC |
42 | } |
43 | ||
577ee847 FC |
44 | /* (non-Javadoc) |
45 | * @see org.eclipse.linuxtools.tmf.core.trace.ITmfLocation#getLocationInfo() | |
46 | */ | |
47 | @Override | |
48 | public ITmfTimestamp getLocationInfo() { | |
49 | return (ITmfTimestamp) super.getLocationInfo(); | |
50 | } | |
51 | ||
cb8c854e | 52 | } |