Class AbstractHierarchicalTerm

java.lang.Object
org.jreliability.booleanfunction.AbstractHierarchicalTerm
All Implemented Interfaces:
Term
Direct Known Subclasses:
ANDTerm, LinearTerm, ORTerm

public abstract class AbstractHierarchicalTerm extends Object implements Term
The AbstractHierarchicalTerm is the basic class for TermUtils that consist of other TermUtils.
  • Field Details

  • Constructor Details

    • AbstractHierarchicalTerm

      public AbstractHierarchicalTerm()
  • Method Details

    • getTerms

      public List<Term> getTerms()
      Returns a list of the embedded TermUtils.
      Returns:
      a list of the embedded terms
    • add

      public void add(Term term)
      Adds a Term to the list of embedded TermUtils.
      Parameters:
      term - the term to add
    • add

      public void add(Term... terms)
      Adds Terms to the list of embedded TermUtils.
      Parameters:
      terms - the terms to add
    • size

      public int size()
      Returns the number of embedded TermUtils.
      Returns:
      the number of embedded terms