|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Atom
This interface represents an atom with a n-ary domain, where n is the arity of the predicate represented.
AtomicExpression
Method Summary | |
---|---|
int |
getArity()
The arity of the Atom indicates how many Terms are contained in the Atom's list of arguments. |
Identifier |
getIdentifier()
The returned Identifier represents the name of the predicate. |
Term |
getParameter(int i)
The index i points to a position in the Atom's list of arguments. |
List<Term> |
listParameters()
|
void |
setParameters(List<Term> parameter)
|
Methods inherited from interface org.omwg.logicalexpression.LogicalExpression |
---|
accept, toString |
Method Detail |
---|
int getArity()
Identifier getIdentifier()
Term getParameter(int i) throws IllegalArgumentException
i
- the position of the parameter desired, maximal value getArity-1
IllegalArgumentException
- in case i<0 or i exceeds the arity of the atomList<Term> listParameters()
void setParameters(List<Term> parameter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |