de.upb.swtpra05.group03.shuttle
Class GraphNode

java.lang.Object
  extended byde.upb.swtpra05.group03.shuttle.DijkstraNode
      extended byde.upb.swtpra05.group03.shuttle.GraphNode
All Implemented Interfaces:
java.lang.Comparable

public class GraphNode
extends DijkstraNode

Version:
$Revision: 1.3 $

Field Summary
private  boolean notUseableAsDestinationStation
          No comment provided by developer, please add a comment to improve documentation.
private  boolean notUseableAsStartStation
           
private  java.util.HashSet prevStations
           
private  int routeMember
           
 
Fields inherited from class de.upb.swtpra05.group03.shuttle.DijkstraNode
edges, id, shortestPathPredecessor, stretch
 
Constructor Summary
GraphNode(int id)
           
GraphNode(int id, long s, int indexOfSpp)
           
 
Method Summary
 void addEdge(GraphEdge ege)
           
 void addPrevStation(GraphNode egn)
           
 void disableEdge(int destinationId, int disabledUntilTime)
           
 java.util.HashSet getEdges()
           
 java.util.HashSet getPrevStations()
           
 int getRouteMemberCounter()
          Gets the routeMember attribute of the GraphNode object
 boolean isNotUseableAsDestinationStation()
           
 boolean isNotUseableAsStartStation()
           
 boolean isRouteMember()
           
 void remEdge(GraphEdge ege)
           
 void remPrevStation(GraphNode egn)
           
 void setNotUseableAsDestinationStation(boolean dontUse)
           
 void setNotUseableAsStartStation(boolean dontUse)
           
 void setRouteMember(boolean routeMember)
           
 java.lang.String toString()
          Returns a string value containing a description of this instance
 
Methods inherited from class de.upb.swtpra05.group03.shuttle.DijkstraNode
addDijkstraEdge, compareTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

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 Parameter
indexOfSpp - Description of the Parameter
Method Detail

disableEdge

public void disableEdge(int destinationId,
                        int disabledUntilTime)
Parameters:
destinationId - Description of the Parameter
disabledUntilTime - 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