Interface Predicate
- All Superinterfaces:
fr.inria.rules.dlgpemodel.api.elems.IPredicate, fr.inria.rules.dlgpemodel.api.sentences.IPrintable, Standardizable
- All Known Implementing Classes:
PredicateImpl
A Predicate represents a relation between terms. It's arity determines the
number of terms allowed in the relation. For example, a Predicate with name
P and arity n allows atomic formulas of the form
P(t1,...,tn).-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PredicateBottom predicate: always falsestatic final PredicateTop predicate: always trueFields inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
WRITER -
Method Summary
Methods inherited from interface fr.inria.rules.dlgpemodel.api.elems.IPredicate
getArity, getNameMethods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
toDLGPEMethods inherited from interface Standardizable
toStandardForm
-
Field Details
-
BOTTOM
Bottom predicate: always false -
TOP
Top predicate: always true
-
-
Method Details
-
arity
int arity()Returns the arity of this predicate.- Returns:
- the arity of this predicate
-
label
String label()Returns the label of this predicate.- Returns:
- a String representation of this predicate name
-
toStandardForm
Description copied from interface:StandardizableReturns the standardized textual form.- Specified by:
toStandardFormin interfaceStandardizable- Parameters:
shortForm- indicates whether the generated form should take into account the prefix system- Returns:
- the standardized form
-