Package nodes

Examples of nodes.IntervalNode


   *
   * @deprecated
   */
  public IntervalTree()
  {
    root = new IntervalNode();
    treeSetMax(root);
  }
View Full Code Here


   * @param high
   *            The high end of the interval
   */
  public IntervalTree(Comparable low, Comparable high)
  {
    this(new IntervalNode(low, high));
  }
View Full Code Here

   */
  public void insert(Comparable low, Comparable high)
  {
    try
    {
      insert(new IntervalNode(low, high));
    }
    catch (InvalidIntervalException ex)
    {
      System.out.println(ex.getMessage());
    }
View Full Code Here

   */
  public void search(Comparable p, List<IntervalNode> result)
  {
    try
    {
      search((IntervalNode) root, new IntervalNode(p, p), result);
    }
    catch (InvalidIntervalException ex)
    {
      System.out.println(ex.getMessage());
    }
View Full Code Here

   */
  public Vector<MileStone> search(Comparable low, Comparable high)
  {
    Vector<IntervalNode> result = new Vector<IntervalNode>();

    super.search(new IntervalNode(low, high), result);

    Vector<MileStone> finalResult = new Vector<MileStone>();

    for (IntervalNode i : result)
    {
View Full Code Here

TOP

Related Classes of nodes.IntervalNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.