Import views plugins
[deliverable/tracecompass.git] / tmf / org.lttng.scope.tmf2.views.core / src / org / lttng / scope / tmf2 / views / core / timegraph / model / provider / statesystem / StateSystemTimeGraphTreeElement.java
1 /*******************************************************************************
2 * Copyright (c) 2016 EfficiOS Inc., Alexandre Montplaisir
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
10 package org.lttng.scope.tmf2.views.core.timegraph.model.provider.statesystem;
11
12 import java.util.List;
13
14 import org.lttng.scope.tmf2.views.core.timegraph.model.render.tree.TimeGraphTreeElement;
15
16 /**
17 * Implementation of a {@link TimeGraphTreeElement} specific for use by
18 * {@link StateSystemModelProvider}. It links a state system quark to the tree
19 * element.
20 *
21 * @author Alexandre Montplaisir
22 */
23 public class StateSystemTimeGraphTreeElement extends TimeGraphTreeElement {
24
25 private final int fSourceQuark;
26
27 /**
28 * Constructor
29 *
30 * @param name
31 * The name this tree element should have.
32 * @param children
33 * The children tree elements. You can pass an empty list for no
34 * children.
35 * @param sourceQuark
36 * The state system quark wrapped by this tree element
37 */
38 public StateSystemTimeGraphTreeElement(String name,
39 List<TimeGraphTreeElement> children,
40 int sourceQuark) {
41 super(name, children);
42 fSourceQuark = sourceQuark;
43 }
44
45 /**
46 * Get the quark wrapped by this tree element.
47 *
48 * @return The source quark
49 */
50 public int getSourceQuark() {
51 return fSourceQuark;
52 }
53
54 }
This page took 0.038774 seconds and 5 git commands to generate.