Fix location cloning issue
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / trace / TmfTimestampLocation.java
1 /*******************************************************************************
2
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 /**
19 * A concrete implementation of TmfLocation based on ITmfTimestamp:s
20 *
21 * @author Francois Chouinard
22 * @since 2.0
23 */
24 public class TmfTimestampLocation extends TmfLocation {
25
26 /**
27 * The normal constructor
28 *
29 * @param locationInfo the concrete location
30 */
31 public TmfTimestampLocation(final ITmfTimestamp locationInfo) {
32 super(locationInfo);
33 }
34
35 /**
36 * The copy constructor
37 *
38 * @param other the other location
39 */
40 public TmfTimestampLocation(final TmfTimestampLocation other) {
41 super(other.getLocationInfo());
42 }
43
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
52 /* (non-Javadoc)
53 * @see org.eclipse.linuxtools.tmf.core.trace.TmfLocation#clone()
54 */
55 @Override
56 public TmfTimestampLocation clone() {
57 return (TmfTimestampLocation) super.clone();
58 }
59
60 /* (non-Javadoc)
61 * @see org.eclipse.linuxtools.tmf.core.trace.TmfLocation#cloneValue()
62 */
63 @Override
64 protected ITmfTimestamp cloneLocationInfo() {
65 return getLocationInfo().clone();
66 }
67
68 }
This page took 0.032432 seconds and 6 git commands to generate.