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