Class Rules


  • public class Rules
    extends java.lang.Object
    This class represents a group of sequential rules found by the CMDeo algorithm.
    Author:
    Philippe Fournier-Viger
    See Also:
    AlgoCMDeogun, Itemset, Rule
    • Constructor Summary

      Constructors 
      Constructor Description
      Rules​(java.lang.String name)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Rule> getRules()
      Get the list of rules.
      int getRulesCount()
      Get the number of rules in this group.
      void printRules​(int objectsCount)
      Print this group of rules to System.out.
      • Methods inherited from class java.lang.Object

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

      • Rules

        public Rules​(java.lang.String name)
        Constructor
        Parameters:
        name - a name that should be given to this set of rules (string)
    • Method Detail

      • printRules

        public void printRules​(int objectsCount)
        Print this group of rules to System.out.
        Parameters:
        objectsCount - the number of sequences in the sequence database
      • getRulesCount

        public int getRulesCount()
        Get the number of rules in this group.
        Returns:
        a int.
      • getRules

        public java.util.List<Rule> getRules()
        Get the list of rules.
        Returns:
        A List object