|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.ranking.Ranking
public class Ranking
A Data class that associates a DAX with the rank.
| Field Summary | |
|---|---|
private String |
mName
The name of the DAX. |
private long |
mRank
Rank of the dax. |
private long |
mRuntime
The runtime of the dax in seconds. |
| Constructor Summary | |
|---|---|
Ranking(String name,
long runtime)
The overloaded constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Implementation of the Comparable interface. |
boolean |
equals(Object o)
|
String |
getName()
Returns the name of the dax. |
long |
getRank()
Returns the rank. |
long |
getRuntime()
Returns the runtime. |
void |
setName(String name)
Sets the name. |
void |
setRank(long rank)
Sets the rank. |
void |
setRuntime(long runtime)
Sets the runtime. |
String |
toString()
Returns a textual description. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private String mName
private long mRank
private long mRuntime
| Constructor Detail |
|---|
public Ranking(String name,
long runtime)
name - the name of the daxruntime - the runtime of the dax| Method Detail |
|---|
public void setRuntime(long runtime)
runtime - the runtimepublic void setRank(long rank)
rank - the rank.public void setName(String name)
name - the name of the daxpublic long getRank()
public long getRuntime()
public String getName()
public String toString()
toString in class Objectpublic int compareTo(Object o)
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.
compareTo in interface Comparableo - is the object to be compared
ClassCastException - if the specified object's type
prevents it from being compared to this Object.public boolean equals(Object o)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||