org.javanetworkanalyzer.data
Class VDFS<V extends VDFS,E>

java.lang.Object
  extended by org.javanetworkanalyzer.data.VId
      extended by org.javanetworkanalyzer.data.VPredImpl<V,E>
          extended by org.javanetworkanalyzer.data.VDFS<V,E>
Type Parameters:
V - Vertex
All Implemented Interfaces:
VPred<V,E>
Direct Known Subclasses:
VStrahler

public class VDFS<V extends VDFS,E>
extends VPredImpl<V,E>

Vertex to be used in the DFS algorithm.

Author:
Adam Gouge

Constructor Summary
VDFS(Integer id)
          Constructor: sets the id.
 
Method Summary
 int getDiscoveryTime()
          Returns the time this node was discovered.
 int getFinishingTime()
          Returns the time at which this node finished processing.
 void setDiscoveryTime(int newTime)
          Sets the time this node was discovered.
 void setFinishingTime(int newTime)
          Sets the time at which this node finished processing.
 
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

VDFS

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

Parameters:
id - Id
Method Detail

getDiscoveryTime

public int getDiscoveryTime()
Returns the time this node was discovered.

Returns:
The time this node was discovered.

setDiscoveryTime

public void setDiscoveryTime(int newTime)
Sets the time this node was discovered.

Parameters:
newTime - The time this node was discovered.

getFinishingTime

public int getFinishingTime()
Returns the time at which this node finished processing.

Returns:
The time at which this node finished processing.

setFinishingTime

public void setFinishingTime(int newTime)
Sets the time at which this node finished processing.

Parameters:
newTime - The time at which this node finished processing.


Copyright © 2014. All Rights Reserved.