--- /dev/null
+/*******************************************************************************
+ * Copyright (c) 2015, 2016 EfficiOS Inc., Alexandre Montplaisir
+ *
+ * All rights reserved. This program and the accompanying materials are
+ * made available under the terms of the Eclipse Public License v1.0 which
+ * accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *******************************************************************************/
+
+package org.eclipse.tracecompass.internal.provisional.analysis.lami.core.module;
+
+import java.util.List;
+
+import org.eclipse.tracecompass.internal.provisional.analysis.lami.core.types.LamiTimeRange;
+
+import com.google.common.collect.ImmutableList;
+
+/**
+ * Class holding the results contained in one table outputted by a LAMI analysis.
+ *
+ * @author Alexandre Montplaisir
+ */
+public class LamiResultTable {
+
+ private final LamiTimeRange fTimeRange;
+ private final LamiTableClass fTableClass;
+ private final List<LamiTableEntry> fEntries;
+
+ /**
+ * Construct a new table from its components.
+ *
+ * @param timeRange
+ * The time range represented by this table. Some analyses
+ * separate tables by time range "buckets".
+ * @param tableClass
+ * The class of this table
+ * @param entries
+ * The list of entries, or rows, contained in this table
+ */
+ public LamiResultTable(LamiTimeRange timeRange, LamiTableClass tableClass,
+ Iterable<LamiTableEntry> entries) {
+ fTimeRange = timeRange;
+ fTableClass = tableClass;
+ fEntries = ImmutableList.copyOf(entries);
+ }
+
+ /**
+ * Get the time range of this table.
+ *
+ * @return The time range
+ */
+ public LamiTimeRange getTimeRange() {
+ return fTimeRange;
+ }
+
+ /**
+ * Get the class of this table.
+ *
+ * @return The table class
+ */
+ public LamiTableClass getTableClass() {
+ return fTableClass;
+ }
+
+ /**
+ * Get the list of entries contained in this table.
+ *
+ * @return The table entries
+ */
+ public List<LamiTableEntry> getEntries() {
+ return fEntries;
+ }
+}