Copyright header update, 2015 edition
[deliverable/tracecompass.git] / org.eclipse.tracecompass.lttng2.kernel.core / src / org / eclipse / tracecompass / internal / lttng2 / kernel / core / analysis / vm / trace / VirtualMachineExperiment.java
CommitLineData
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
13package org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.trace;
14
5e267cde
MAL
15import static org.eclipse.tracecompass.common.core.NonNullUtils.checkNotNull;
16
4a74f111
MG
17import java.util.Collections;
18import java.util.Set;
19
20import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
21import org.eclipse.tracecompass.tmf.core.trace.experiment.TmfExperiment;
22import 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 */
30public 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}
This page took 0.028562 seconds and 5 git commands to generate.