1 /*******************************************************************************
2 * Copyright (c) 2010, 2016 Ericsson, École Polytechnique de Montréal, and others
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 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.internal
.statesystem
.core
.backend
.historytree
;
13 * A Core node is a first-level node of a History Tree which is not a leaf node.
15 * It extends HTNode by adding support for child nodes, and also extensions.
17 * @author Alexandre Montplaisir
18 * @author Florian Wininger
20 public abstract class ParentNode
extends HTNode
{
23 * Initial constructor. Use this to initialize a new EMPTY node.
26 * Configuration of the History Tree
28 * The (unique) sequence number assigned to this particular node
29 * @param parentSeqNumber
30 * The sequence number of this node's parent node
32 * The earliest timestamp stored in this node
34 public ParentNode(HTConfig config
, int seqNumber
, int parentSeqNumber
,
36 super(config
, seqNumber
, parentSeqNumber
, start
);
40 * Return the number of child nodes this node has.
42 * @return The number of child nodes
44 public abstract int getNbChildren();
47 * Get the child node corresponding to the specified index
49 * @param index The index of the child to lookup
50 * @return The child node
52 public abstract int getChild(int index
);
55 * Get the latest (right-most) child node of this node.
57 * @return The latest child node
59 public abstract int getLatestChild();
62 * Get the start time of the specified child node.
65 * The index of the child node
66 * @return The start time of the that child node.
68 public abstract long getChildStart(int index
);
71 * Get the start time of the latest (right-most) child node.
73 * @return The start time of the latest child
75 public abstract long getLatestChildStart();
78 * Tell this node that it has a new child (Congrats!)
81 * The SHTNode object of the new child
83 public abstract void linkNewChild(HTNode childNode
);
This page took 0.03169 seconds and 5 git commands to generate.