|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopenlr.map.utils.PQElem
public class PQElem
The Class PQElem represents an entry of a priority queue. It implements the
LineLinkedListElement interface and holds additionally to the line
also data for ordering the elements in the priority queue. Each element has
got two numerical values for such ordering and the compare method orders the
elements lexicographically.
OpenLR is a trade mark of TomTom International B.V.
email: software@openlr.org
| Nested Class Summary | |
|---|---|
static class |
PQElem.PQElemComparator
The Class PQElemComparator. |
| Constructor Summary | |
|---|---|
PQElem(Line l,
int f,
int s,
PQElem p)
Instantiates a new Priority Queue element. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
int |
getFirstVal()
Gets the first value. |
Line |
getLine()
Gets the line. |
PQElem |
getPrevious()
Gets the predecessor. |
int |
getSecondVal()
Gets the second value. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PQElem(Line l,
int f,
int s,
PQElem p)
l - the linef - the first numerical values - the second numerical valuep - the parent| Method Detail |
|---|
public final boolean equals(Object o)
equals in class Objectpublic final int hashCode()
hashCode in class Objectpublic final Line getLine()
getLine in interface LineLinkedListElementpublic final PQElem getPrevious()
getPrevious in interface LineLinkedListElementpublic final int getFirstVal()
public final int getSecondVal()
public final String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||