org.deri.iris.basics
Class Predicate

java.lang.Object
  extended by org.deri.iris.basics.Predicate
All Implemented Interfaces:
Comparable<IPredicate>, IPredicate

public class Predicate
extends Object
implements IPredicate

This is a simple IPredicate implementation.

NOTE: This implementation is immutable

$Id$

Version:
$Revision$
Author:
Richard P??ttler (richard dot poettler at deri dot at)

Method Summary
 int compareTo(IPredicate o)
           
 boolean equals(Object o)
           
 int getArity()
           Returns the arity of the predicate.
 String getPredicateSymbol()
           Returns the predicate symbol.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getPredicateSymbol

public String getPredicateSymbol()
Description copied from interface: IPredicate

Returns the predicate symbol.

Specified by:
getPredicateSymbol in interface IPredicate
Returns:
The predicate symbol.

getArity

public int getArity()
Description copied from interface: IPredicate

Returns the arity of the predicate.

Specified by:
getArity in interface IPredicate
Returns:
The arity.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

compareTo

public int compareTo(IPredicate o)
Specified by:
compareTo in interface Comparable<IPredicate>

toString

public String toString()
Overrides:
toString in class Object