Package edu.isi.pegasus.planner.ranking
Class Ranking
- java.lang.Object
-
- edu.isi.pegasus.planner.ranking.Ranking
-
- All Implemented Interfaces:
java.lang.Comparable
public class Ranking extends java.lang.Object implements java.lang.ComparableA Data class that associates a DAX with the rank.- Version:
- $Revision$
- Author:
- Karan Vahi
-
-
Constructor Summary
Constructors Constructor Description Ranking(java.lang.String name, long runtime)The overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(java.lang.Object o)Implementation of theComparableinterface.booleanequals(java.lang.Object o)java.lang.StringgetName()Returns the name of the dax.longgetRank()Returns the rank.longgetRuntime()Returns the runtime.voidsetName(java.lang.String name)Sets the name.voidsetRank(long rank)Sets the rank.voidsetRuntime(long runtime)Sets the runtime.java.lang.StringtoString()Returns a textual description.
-
-
-
Method Detail
-
setRuntime
public void setRuntime(long runtime)
Sets the runtime.- Parameters:
runtime- the runtime
-
setRank
public void setRank(long rank)
Sets the rank.- Parameters:
rank- the rank.
-
setName
public void setName(java.lang.String name)
Sets the name.- Parameters:
name- the name of the dax
-
getRank
public long getRank()
Returns the rank.- Returns:
- the rank.
-
getRuntime
public long getRuntime()
Returns the runtime.- Returns:
- the runtime
-
getName
public java.lang.String getName()
Returns the name of the dax.- Returns:
- the name
-
toString
public java.lang.String toString()
Returns a textual description.- Overrides:
toStringin classjava.lang.Object- Returns:
- String
-
compareTo
public int compareTo(java.lang.Object o)
Implementation of theComparableinterface. 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.- Specified by:
compareToin interfacejava.lang.Comparable- Parameters:
o- is the object to be compared- Returns:
- a negative number, zero, or a positive number, if the object compared against is less than, equals or greater than this object.
- Throws:
java.lang.ClassCastException- if the specified object's type prevents it from being compared to this Object.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-