public class DijkstraVertex<Q> extends Object implements WeightedVertex<Q>
| Constructor and Description |
|---|
DijkstraVertex(Q id) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(WeightedVertex<Q> object) |
HashMap<DijkstraVertex<Q>,Double> |
getConnections() |
Q |
getId() |
DijkstraVertex<Q> |
getPrevious() |
Double |
getWeight() |
void |
setConnections(HashMap<DijkstraVertex<Q>,Double> connections) |
void |
setId(Q id) |
void |
setPrevious(DijkstraVertex<Q> previous) |
void |
setWeight(Double weight) |
Map.Entry<Q,Double> |
toEntry() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic DijkstraVertex(Q id)
public Double getWeight()
getWeight in interface WeightedVertex<Q>public void setWeight(Double weight)
weight - public DijkstraVertex<Q> getPrevious()
public void setPrevious(DijkstraVertex<Q> previous)
previous - public HashMap<DijkstraVertex<Q>,Double> getConnections()
getConnections in interface WeightedVertex<Q>public void setConnections(HashMap<DijkstraVertex<Q>,Double> connections)
connections - public Q getId()
getId in interface WeightedVertex<Q>public void setId(Q id)
id - public int compareTo(WeightedVertex<Q> object)
compareTo in interface Comparable<WeightedVertex<Q>>Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.