Class BadVDiff.FromGoodNodeTranslation<L extends Label>

java.lang.Object
org.variantsync.diffdetective.variation.diff.bad.BadVDiff.FromGoodNodeTranslation<L>
Enclosing class:
BadVDiff<L extends Label>

private static class BadVDiff.FromGoodNodeTranslation<L extends Label> extends Object
Memoization of the VariationTreeNodes a DiffNode was converted to in BadVDiff.fromGood(VariationDiff).
  • Field Details

  • Constructor Details

    • FromGoodNodeTranslation

      private FromGoodNodeTranslation()
  • Method Details

    • put

      void put(DiffNode<L> d, VariationTreeNode<L> v)
      Remember that the given DiffNode d was translated to the given VariationTreeNode v at all times d exists.
      Parameters:
      d - The DiffNode from the initial good VariationDiff.
      v - The VariationTreeNode d was translated to.
    • put

      void put(DiffNode<L> d, Time t, VariationTreeNode<L> v)
      Remember that the given DiffNode d was translated to the given VariationTreeNode v at time t.
      Parameters:
      d - The DiffNode from the initial good VariationDiff.
      t - The time at which the translated node v represents the initial DiffNode d.
      v - The VariationTreeNode d was translated to.
    • get

      Returns the VariationTreeNode that represents the given DiffNode d at the given time t in the produced bad diff.
      Parameters:
      d - The DiffNode from the initial good VariationDiff.
      t - The time for which we seek the node that represents the initial DiffNode d.