|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.optimisations.magicsets.AdornedProgram.AdornedPredicate
public static class AdornedProgram.AdornedPredicate
Represents an adorned predicate. A adorned predicate is a predicate with an array of adornments attached to it denoting the bound and free arguments of it's tuple's terms
| Constructor Summary | |
|---|---|
AdornedProgram.AdornedPredicate(IAtom atom)
Constructs an adorned predicate out of an atom. |
|
AdornedProgram.AdornedPredicate(IAtom atom,
Collection<IVariable> bounds)
Constructs an adorned predicate out of an atom and its bound variables. |
|
AdornedProgram.AdornedPredicate(ILiteral literal)
Constructs an adorned predicate out of a literal. |
|
AdornedProgram.AdornedPredicate(String symbol,
Adornment[] adornment)
Constructs an adorned predicate. |
|
AdornedProgram.AdornedPredicate(String symbol,
int arity,
Adornment[] adornment)
Constructs an adorned predicate. |
|
| Method Summary | |
|---|---|
int |
compareTo(IPredicate other)
|
boolean |
equals(Object object)
|
Adornment[] |
getAdornment()
|
int |
getArity()
Returns the arity of the predicate. |
String |
getPredicateSymbol()
Returns the predicate symbol. |
IPredicate |
getUnadornedPredicate()
|
int |
hashCode()
|
boolean |
hasSameSignature(IPredicate other)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AdornedProgram.AdornedPredicate(String symbol,
Adornment[] adornment)
symbol - symbol for the predicateadornment - the array of bound and frees
IllegalArgumentException - if the adornment is
null
IllegalArgumentException - if the predicate symbol is
null
IllegalArgumentException - if the adornment contains
null
public AdornedProgram.AdornedPredicate(String symbol,
int arity,
Adornment[] adornment)
symbol - symbol for the predicatearity - the arity of the predicate.adornment - the array of bound and frees
IllegalArgumentException - if the adornment is
null
IllegalArgumentException - if the predicate symbol is
null
IllegalArgumentException - if the adornment contains
null
IllegalArgumentException - if the arity of the
predicate is bigger than the length of the adornment
public AdornedProgram.AdornedPredicate(IAtom atom,
Collection<IVariable> bounds)
atom - the atombounds - collection of all bound variables of the atom
IllegalArgumentException - if the atom is nullpublic AdornedProgram.AdornedPredicate(ILiteral literal)
literal - for which to construct the adorned predicate
IllegalArgumentException - if literal's the atom is nullpublic AdornedProgram.AdornedPredicate(IAtom atom)
atom - the atom
IllegalArgumentException - if the atom is null| Method Detail |
|---|
public boolean hasSameSignature(IPredicate other)
public IPredicate getUnadornedPredicate()
public Adornment[] getAdornment()
public int getArity()
IPredicateReturns the arity of the predicate.
getArity in interface IPredicatepublic String getPredicateSymbol()
IPredicateReturns the predicate symbol.
getPredicateSymbol in interface IPredicatepublic int compareTo(IPredicate other)
compareTo in interface Comparable<IPredicate>public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic boolean equals(Object object)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||