|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.merlin.algorithm.route.util.Vertex
This class is the representation of a node in the graph
This class was developed at the National Institute of Standards and Technology by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain. NIST assumes no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic.
We would appreciate acknowledgement if the software is used.
NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
| Field Summary | |
java.util.List |
adj
The adjacent vertices |
double |
dist
The cost to access this vertex |
int |
id
The id of the Vertex. |
ExtRouter |
node
The ExtRouter or OXC attached to this vertex |
Vertex |
prev
The previous vertex on the path |
int |
scratch
Extra variable used in algorithm |
| Constructor Summary | |
Vertex(int newId,
ExtRouter node)
Default constructor |
|
| Method Summary | |
void |
reset()
Reset all attributes of the vertex |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int id
public ExtRouter node
public java.util.List adj
public double dist
public Vertex prev
public int scratch
| Constructor Detail |
public Vertex(int newId,
ExtRouter node)
newId - The id of this vertexnode - The node attached to this vertex| Method Detail |
public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||