Commit | Line | Data |
---|---|---|
8c8bf09f ASL |
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; | |
452ad365 | 16 | import org.eclipse.linuxtools.tmf.trace.TmfLocation; |
8c8bf09f ASL |
17 | |
18 | /** | |
19 | * <b><u>TmfExperimentLocation</u></b> | |
20 | * <p> | |
21 | * The experiment location is the set of its traces' locations. | |
22 | */ | |
452ad365 | 23 | public class TmfExperimentLocation extends TmfLocation<ITmfLocation<?>[]> { |
8c8bf09f | 24 | |
452ad365 FC |
25 | public TmfExperimentLocation(ITmfLocation<?>[] locations) { |
26 | super(locations); | |
8c8bf09f ASL |
27 | } |
28 | ||
17c0074a | 29 | @Override |
8c8bf09f | 30 | public TmfExperimentLocation clone() { |
452ad365 FC |
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(); | |
8c8bf09f | 35 | } |
452ad365 | 36 | return new TmfExperimentLocation(clones); |
8c8bf09f ASL |
37 | } |
38 | ||
8c8bf09f | 39 | } |