| java.lang.Object edu.isi.pegasus.planner.ranking.Ranking
Ranking | public class Ranking implements Comparable(Code) | | A Data class that associates a DAX with the rank.
author: Karan Vahi version: $Revision: 444 $ |
Constructor Summary | |
public | Ranking(String name, long rank) The overloaded constructor. |
Ranking | public Ranking(String name, long rank)(Code) | | The overloaded constructor.
Parameters: name - the name of the dax Parameters: rank - the rank |
compareTo | public int compareTo(Object o)(Code) | | Implementation of the
java.lang.Comparable interface.
Compares this object with the specified object for order. Returns a
negative integer, zero, or a positive integer as this object is
less than, equal to, or greater than the specified object. The
definitions are compared by their type, and by their short ids.
Parameters: o - is the object to be compared a negative number, zero, or a positive number, if theobject compared against is less than, equals or greater thanthis object. exception: ClassCastException - if the specified object's typeprevents it from being compared to this Object. |
getName | public String getName()(Code) | | Returns the name of the dax.
the name |
getRank | public long getRank()(Code) | | Returns the rank.
the rank. |
setName | public void setName(String name)(Code) | | Sets the name.
Parameters: name - the name of the dax |
setRank | public void setRank(long rank)(Code) | | Sets the rank.
Parameters: rank - the rank. |
toString | public String toString()(Code) | | Returns a textual description.
String |
|
|