org.javanetworkanalyzer.data
Class VAccess<E>

java.lang.Object
  extended by org.javanetworkanalyzer.data.VId
      extended by org.javanetworkanalyzer.data.VPredImpl<V,E>
          extended by org.javanetworkanalyzer.data.VDijkstra<VAccess,E>
              extended by org.javanetworkanalyzer.data.VAccess<E>
All Implemented Interfaces:
VDist<Double>, VPred<VAccess,E>

public class VAccess<E>
extends VDijkstra<VAccess,E>

Vertex used during accessibility analysis.

Author:
Adam Gouge

Field Summary
 
Fields inherited from class org.javanetworkanalyzer.data.VDijkstra
DEFAULT_DISTANCE
 
Constructor Summary
VAccess(Integer id)
          Constructor: sets the id.
 
Method Summary
 int getClosestDestinationId()
          Gets the id of the closest destination.
 double getDistanceToClosestDestination()
          Gets the distance to the closest destination.
 void setClosestDestinationId(int id)
          Sets the id of the closest destination.
 void setDistanceToClosestDestination(double newDistance)
          Sets the distance to the closest destination.
 
Methods inherited from class org.javanetworkanalyzer.data.VDijkstra
getDistance, reset, setDistance, setSource
 
Methods inherited from class org.javanetworkanalyzer.data.VPredImpl
addPredecessor, addPredecessorEdge, clear, getPredecessorEdges, getPredecessors
 
Methods inherited from class org.javanetworkanalyzer.data.VId
getID, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VAccess

public VAccess(Integer id)
Constructor: sets the id.

Parameters:
id - Id
Method Detail

getClosestDestinationId

public int getClosestDestinationId()
Gets the id of the closest destination.

Returns:
The id of the closest destination

setClosestDestinationId

public void setClosestDestinationId(int id)
Sets the id of the closest destination.

Parameters:
id - New id

getDistanceToClosestDestination

public double getDistanceToClosestDestination()
Gets the distance to the closest destination.

Returns:
The distance to the closest destination.

setDistanceToClosestDestination

public void setDistanceToClosestDestination(double newDistance)
Sets the distance to the closest destination.

Parameters:
newDistance - New distance.


Copyright © 2014. All Rights Reserved.