org.semwebcentral.sweetrules.analyzer
Class SweetStratifiedPredicate

java.lang.Object
  extended byorg.semwebcentral.sweetrules.analyzer.SweetPredicate
      extended byorg.semwebcentral.sweetrules.analyzer.SweetStratifiedPredicate
All Implemented Interfaces:
java.lang.Comparable

public class SweetStratifiedPredicate
extends SweetPredicate
implements java.lang.Comparable

Created on Nov 8, 2004 A predicate with a stratum number

Author:
Shashidhara K Ganjugunte, Dr. Benjamin Grosof, Dr. Said Tabet, Chitravanu Neogy

Field Summary
private  long predicateStratum
          The predicate stratum number
 
Fields inherited from class org.semwebcentral.sweetrules.analyzer.SweetPredicate
 
Constructor Summary
SweetStratifiedPredicate(java.lang.String name, int arity, long stratum)
          Constructor for the stratified predicate
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(SweetStratifiedPredicate otherPredicate)
          Compares two predicates for equality
 long getPredicateStratum()
           
 
Methods inherited from class org.semwebcentral.sweetrules.analyzer.SweetPredicate
equals, equalsIgnoreCase, getPredicateArity, getPredicateName, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

predicateStratum

private long predicateStratum
The predicate stratum number

Constructor Detail

SweetStratifiedPredicate

public SweetStratifiedPredicate(java.lang.String name,
                                int arity,
                                long stratum)
Constructor for the stratified predicate

Parameters:
name - Name of the predicate
arity - Arity of the predicate
stratum - The predicate stratum number
Method Detail

getPredicateStratum

public long getPredicateStratum()
Returns:
Returns the predicateStratum.

equals

public boolean equals(SweetStratifiedPredicate otherPredicate)
Compares two predicates for equality

Parameters:
otherPredicate - The other predicate to be compared
Returns:
true if the predicates are equal

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable