de.upb.swtpra05.group03.shuttle
Class GraphNode
java.lang.Object
de.upb.swtpra05.group03.shuttle.DijkstraNode
de.upb.swtpra05.group03.shuttle.GraphNode
- All Implemented Interfaces:
- java.lang.Comparable
- public class GraphNode
- extends DijkstraNode
- Version:
- $Revision: 1.3 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
routeMember
private int routeMember
prevStations
private java.util.HashSet prevStations
notUseableAsStartStation
private boolean notUseableAsStartStation
notUseableAsDestinationStation
private boolean notUseableAsDestinationStation
- No comment provided by developer, please add a comment to improve
documentation.
GraphNode
public GraphNode(int id)
- Parameters:
id - Description of the Parameter
GraphNode
public GraphNode(int id,
long s,
int indexOfSpp)
- Parameters:
s - id - Description of the ParameterindexOfSpp - Description of the Parameter
disableEdge
public void disableEdge(int destinationId,
int disabledUntilTime)
- Parameters:
destinationId - Description of the ParameterdisabledUntilTime - Description of the Parameter
isRouteMember
public boolean isRouteMember()
- Returns:
setRouteMember
public void setRouteMember(boolean routeMember)
- Parameters:
routeMember -
getRouteMemberCounter
public int getRouteMemberCounter()
- Gets the routeMember attribute of the GraphNode object
- Returns:
- The routeMember value
getPrevStations
public java.util.HashSet getPrevStations()
- Returns:
addPrevStation
public void addPrevStation(GraphNode egn)
- Parameters:
egn - The feature to be added to the PrevStation attribute
remPrevStation
public void remPrevStation(GraphNode egn)
- Parameters:
egn - Description of the Parameter
getEdges
public java.util.HashSet getEdges()
- Returns:
addEdge
public void addEdge(GraphEdge ege)
- Parameters:
ege -
remEdge
public void remEdge(GraphEdge ege)
- Parameters:
ege -
isNotUseableAsStartStation
public boolean isNotUseableAsStartStation()
- Returns:
setNotUseableAsStartStation
public void setNotUseableAsStartStation(boolean dontUse)
- Parameters:
dontUse -
isNotUseableAsDestinationStation
public boolean isNotUseableAsDestinationStation()
- Returns:
setNotUseableAsDestinationStation
public void setNotUseableAsDestinationStation(boolean dontUse)
- Parameters:
dontUse -
toString
public java.lang.String toString()
- Returns a string value containing a description of this instance
- Overrides:
toString in class DijkstraNode
- Returns:
- A string containing a description of this instance