tmf: Move timestamps to their own package
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / trace / TmfTimestampLocation.java
CommitLineData
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
14package org.eclipse.linuxtools.tmf.core.trace;
15
3bd46eef 16import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp;
cb8c854e
FC
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 24public 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}
This page took 0.028334 seconds and 5 git commands to generate.