Class CompositeFactPattern

  • All Implemented Interfaces:
    IPattern

    public class CompositeFactPattern
    extends Object
    implements IPattern
    Represents first order logic like Or, Not, Exists.
    • Constructor Detail

      • CompositeFactPattern

        public CompositeFactPattern​(String type)
        This type should be from the contants in this class of course.
      • CompositeFactPattern

        public CompositeFactPattern()
    • Method Detail

      • clearFactPatterns

        public void clearFactPatterns()
      • addFactPatterns

        public void addFactPatterns​(IFactPattern[] patterns)
      • addFactPattern

        public void addFactPattern​(IFactPattern pat)
      • removeFactPattern

        public boolean removeFactPattern​(int index)
        Remove a FactPattern at the provided index. If index is less than zero or greater than or equal to the number of patterns the effect of this method is "no operation".
        Parameters:
        index -
        Returns:
        true if the deletion was successful, i.e. within range
      • getType

        public String getType()
      • setType

        public void setType​(String type)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object