[Bug304438] Improvement on ITmfLocation
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf / src / org / eclipse / linuxtools / tmf / experiment / TmfExperimentLocation.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 2010 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.experiment;
14
15 import org.eclipse.linuxtools.tmf.trace.ITmfLocation;
16 import org.eclipse.linuxtools.tmf.trace.TmfLocation;
17
18 /**
19 * <b><u>TmfExperimentLocation</u></b>
20 * <p>
21 * The experiment location is the set of its traces' locations.
22 */
23 public class TmfExperimentLocation extends TmfLocation<ITmfLocation<?>[]> {
24
25 public TmfExperimentLocation(ITmfLocation<?>[] locations) {
26 super(locations);
27 }
28
29 @Override
30 public TmfExperimentLocation clone() {
31 ITmfLocation<?>[] locations = (ITmfLocation<?>[]) getLocation();
32 ITmfLocation<?>[] clones = new ITmfLocation[locations.length];
33 for (int i = 0; i < locations.length; i++) {
34 clones[i] = locations[i].clone();
35 }
36 return new TmfExperimentLocation(clones);
37 }
38
39 }
This page took 0.034415 seconds and 6 git commands to generate.