Class Structure

All Implemented Interfaces:
LogicalFormula, Term, ToDOM, ToJson, Serializable, Cloneable, Comparable<Term>
Direct Known Subclasses:
ArithFunctionTerm, BinaryStructure, InternalActionLiteral, ListTermImpl, Plan, PlanBodyImpl, Pred, Trigger

public class Structure extends Atom
Represents a structure: a functor with n arguments, e.g.: val(10,x(3)).
See Also:
  • Field Details

    • emptyTermList

      protected static final List<Term> emptyTermList
    • emptyTermArray

      protected static final Term[] emptyTermArray
  • Constructor Details

    • Structure

      public Structure(String functor)
    • Structure

      public Structure(Literal l)
    • Structure

      public Structure(Atom namespace, String functor)
    • Structure

      public Structure(Atom namespace, Literal l)
    • Structure

      protected Structure(Literal l, Unifier u)
    • Structure

      public Structure(String functor, int termsSize)
      Create a structure with a defined number of terms. It is used by list term, plan body, ... to not create the array list for terms.
  • Method Details