Class VOrRangeTree

java.lang.Object
org.proforma.variability.util.VOrRangeTree
All Implemented Interfaces:
Iterable<VOrRange>

public class VOrRangeTree extends Object implements Iterable<VOrRange>

This tree stores VOrRange instances such that duplicates are eliminated as good as possible. E. g. the following two ranges would be concatenated to a single range: { 2, 4, 6, 8, 10 } and { 6, 8, 10, 12, 14, 16 } will be joined to { 2, 4, 6, 8, 10, 12, 14, 16 }. Another example: the range { 4, 7, 10, 13 } and the value 1 will be joined to { 1, 4, 7, 10, 13 }.

Elements of the tree can be queried by specifying a Vis query interval.

  • Constructor Details

    • VOrRangeTree

      public VOrRangeTree(Vp vp)
      Parameters:
      vp - if null, then nothing can be added to this tree.
  • Method Details