Commit | Line | Data |
---|---|---|
4a74f111 | 1 | /******************************************************************************* |
ed902a2b | 2 | * Copyright (c) 2014, 2015 École Polytechnique de Montréal |
4a74f111 MG |
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 | * Mohamad Gebai - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.trace; | |
14 | ||
5e267cde MAL |
15 | import static org.eclipse.tracecompass.common.core.NonNullUtils.checkNotNull; |
16 | ||
4a74f111 MG |
17 | import java.util.Collections; |
18 | import java.util.Set; | |
19 | ||
20 | import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace; | |
21 | import org.eclipse.tracecompass.tmf.core.trace.experiment.TmfExperiment; | |
22 | import org.eclipse.tracecompass.tmf.ctf.core.event.CtfTmfEvent; | |
23 | ||
24 | /** | |
25 | * Experiment class containing traces from physical machine and the virtual | |
26 | * guests running on them. | |
27 | * | |
28 | * @author Mohamad Gebai | |
29 | */ | |
30 | public class VirtualMachineExperiment extends TmfExperiment { | |
31 | ||
32 | /** | |
33 | * Default constructor. Needed by the extension point. | |
34 | */ | |
4a74f111 | 35 | public VirtualMachineExperiment() { |
5e267cde | 36 | this("default", checkNotNull(Collections.EMPTY_SET)); //$NON-NLS-1$ |
4a74f111 MG |
37 | } |
38 | ||
39 | /** | |
40 | * Constructor with traces and id | |
41 | * | |
42 | * @param id | |
43 | * The ID of this experiment | |
44 | * @param traces | |
45 | * The set of traces that are part of this experiment | |
46 | */ | |
47 | public VirtualMachineExperiment(String id, Set<ITmfTrace> traces) { | |
48 | super(CtfTmfEvent.class, id, traces.toArray(new ITmfTrace[traces.size()]), TmfExperiment.DEFAULT_INDEX_PAGE_SIZE, null); | |
49 | } | |
50 | ||
51 | } |