|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--routing.PathEdge
Class for representing pathes of edges.
| Field Summary | |
protected Edge |
edge
The corresponding edge |
protected boolean |
forwards
Is the direction forwards? |
protected PathEdge |
next
The next edge |
protected double |
origWeight
Original weight of the edge |
| Constructor Summary | |
PathEdge(Edge edge,
boolean forwards)
Constructor of a new path element. |
|
PathEdge(Edge edge,
boolean forwards,
double origWeight)
Constructor of a new path element. |
|
PathEdge(Edge edge,
boolean forwards,
double origWeight,
PathEdge next)
Constructor of a new path element. |
|
| Method Summary | |
PathEdge |
addPath(PathEdge path)
Appends a path. |
void |
changePresentation(java.lang.String presName)
Ändert die Darstellung der Kanten. |
boolean |
checkForDestinationNode(Node node)
Checks the path for a given destination node. |
int |
computeDegree()
Computes the degrees of starting nodes. |
double |
computeDistance()
Berechnet die Länge des Pfads. |
int |
computeNumber()
Computes the number of edges. |
void |
debugPrint()
Gibt den Pfad zu Debugging-Zwecken aus. |
PathEdge |
findEdge(Edge pEdge)
Sucht übergebene Kante im Pfad. |
Node |
getDestinationNode()
Gibt den Knoten zurück, bei dem die Pfadkante endet. |
Edge |
getEdge()
Gibt die Kante des Pfadelements zurück. |
boolean |
getForwards()
Gibt die Kantenrichtung zurück. |
Edge |
getLastEdge()
Gint die letzte Kante des Pfads zurück. |
PathEdge |
getNext()
Gibt das folgende Pfadelement zurück. |
double |
getOrigWeight()
Gibt das Originalgewicht der Kante zurück. |
Node |
getStartingNode()
Gibt den Knoten zurück, bei dem die Pfadkante startet. |
void |
select()
Selektiert die Kanten ungerichtet. |
void |
setNext(PathEdge path)
Setzt das Feld "next" auf den übergebenen Pfad. |
void |
setStandardAppearance()
Setzt die Kanten des Pfads auf die Standard-Darstellung. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Edge edge
protected boolean forwards
protected double origWeight
protected PathEdge next
| Constructor Detail |
public PathEdge(Edge edge,
boolean forwards)
edge - the corresponding edgeforwards - is the direction forwards?
public PathEdge(Edge edge,
boolean forwards,
double origWeight)
edge - the corresponding edgeforwards - is the direction forwards?origWeight - the (original) weigth of the edge
public PathEdge(Edge edge,
boolean forwards,
double origWeight,
PathEdge next)
edge - the corresponding edgeforwards - is the direction forwards?origWeight - the (original) weigth of the edgenext - the next path element| Method Detail |
public PathEdge addPath(PathEdge path)
path - the additional path
public void changePresentation(java.lang.String presName)
presName - Darstellungsnamepublic boolean checkForDestinationNode(Node node)
node - the destination nodepublic int computeDegree()
public double computeDistance()
public int computeNumber()
public void debugPrint()
public PathEdge findEdge(Edge pEdge)
pEdge - gesuchte Kante
public Node getDestinationNode()
public Edge getEdge()
public boolean getForwards()
public Edge getLastEdge()
public PathEdge getNext()
public double getOrigWeight()
public Node getStartingNode()
public void select()
public void setNext(PathEdge path)
path - neuer Folge-Pfadpublic void setStandardAppearance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||