blob: 70339f47013f572c9d3eb04e91035791296d9d69 [file] [log] [blame]
/**********************************************************************
* Copyright (c) 2019 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.tracecompass.tmf.core.model.timegraph;
import java.util.List;
/**
* Represent a Time Graph model that includes all the rows.
*
* @author Simon Delisle
* @since 5.0
*/
public class TimeGraphModel {
private List<ITimeGraphRowModel> fRows;
/**
* Constructor
*
* @param rows
* List of {@link ITimeGraphRowModel}
*/
public TimeGraphModel(List<ITimeGraphRowModel> rows) {
fRows = rows;
}
/**
* Get rows associated to the model
*
* @return List of {@link ITimeGraphRowModel}
*/
public List<ITimeGraphRowModel> getRows() {
return fRows;
}
@Override
public String toString() {
return "Model: rows -> " + fRows; //$NON-NLS-1$
}
}