Class ConflictNode

    • Constructor Detail

      • ConflictNode

        public ConflictNode​(Conflict conflict)
        Constructor.
        Parameters:
        conflict - The conflict represented by this TreeNode
    • Method Detail

      • addConflictingTree

        public boolean addConflictingTree​(MatchNode matchNode)
        Add the given MatchNode to the children of this ConflictNode.
        Parameters:
        matchNode - The MatchNode to add
        Returns:
        true if the MatchNode has been added
      • removeConflictingTree

        public boolean removeConflictingTree​(MatchNode matchNode)
        Remove the given MatchNode of the children of this ConflictNode.
        Parameters:
        matchNode - The MatchNode to remove
        Returns:
        true if the MatchNode has been removed
      • getConflict

        public Conflict getConflict()
        Getter for the conflict represented by this TreeNode.
        Returns:
        the conflict
      • getConflictingTrees

        public Iterable<MatchNode> getConflictingTrees()
        Get all the match trees that are part of the conflict
        Returns:
        an iterable of all MatchNode that are part of the conflict