Class HittingSets


  • public class HittingSets
    extends java.lang.Object
    This class implements a collection of hitting sets. Hitting Sets uses conflict sets to calculate the diagnosis candidates.
    Version:
    %I%, %G%
    Author:
    Sujeevan ASEERVATHAM
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Vector conflicts
      The conflict sets from which the hitting sets are calculated.
      protected java.util.Vector hittingSets
      The hitting sets of the conflict.
    • Constructor Summary

      Constructors 
      Constructor Description
      HittingSets​(java.util.Vector conflicts)
      Creates hitting sets from system conflicts.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void calculateHittingSets​(java.util.Vector cs, java.util.Vector hs)
      Calculates the hitting sets from a set of conflicts.
      java.util.Vector getSets()
      Method used to get the hitting sets.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • conflicts

        protected java.util.Vector conflicts
        The conflict sets from which the hitting sets are calculated.
      • hittingSets

        protected java.util.Vector hittingSets
        The hitting sets of the conflict.
    • Constructor Detail

      • HittingSets

        public HittingSets​(java.util.Vector conflicts)
        Creates hitting sets from system conflicts.
        Parameters:
        conflicts - The conflict sets.
    • Method Detail

      • getSets

        public java.util.Vector getSets()
        Method used to get the hitting sets.
        Returns:
        The hitting sets.
      • calculateHittingSets

        protected void calculateHittingSets​(java.util.Vector cs,
                                            java.util.Vector hs)
        Calculates the hitting sets from a set of conflicts. This method implements a Boolean Algebraic algorithm to calculate the hitting sets.
        Parameters:
        cs - The conflict sets.
        hs - The vector in which the hitting sets should be stored.