Uses of Class
rails.algorithms.NetworkVertex

Packages that use NetworkVertex
rails.algorithms   
 

Uses of NetworkVertex in rails.algorithms
 

Fields in rails.algorithms declared as NetworkVertex
(package private)  NetworkVertex NetworkEdge.MergeResult.removedVertex
           
 

Fields in rails.algorithms with type parameters of type NetworkVertex
(package private)  org.jgrapht.Graph<NetworkVertex,NetworkEdge> RevenueAdapter.rcGraph
           
 java.util.Set<NetworkVertex> RevenueAdapter.VertexVisit.set
           
 

Methods in rails.algorithms that return NetworkVertex
static NetworkVertex NetworkVertex.duplicateVertex(org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> graph, NetworkVertex vertex, java.lang.String newIdentifier, boolean addOldVertexAsHidden)
          creates a new virtual vertex with identical properties and links
(package private)  NetworkVertex NetworkEdge.getCommonVertex(NetworkEdge otherEdge)
          gets common vertex, if both source and target are common, returns source of this edge
 NetworkVertex RevenueTrainRun.getFirstVertex()
          returns the first vertex of a train run
 NetworkVertex RevenueTrainRun.getLastVertex()
          returns the last vertex of a train run
(package private)  NetworkVertex NetworkEdge.getOtherVertex(NetworkVertex vertex)
          returns the other vertex, if given vertex is not source/target of vertex, returns null
 NetworkVertex NetworkEdge.getSource()
           
 NetworkVertex NetworkEdge.getTarget()
           
 NetworkVertex NetworkGraphBuilder.getVertex(MapHex hex, int side)
           
 NetworkVertex NetworkGraphBuilder.getVertex(TokenI token)
           
static NetworkVertex NetworkVertex.getVertexByIdentifier(java.util.Collection<NetworkVertex> vertices, java.lang.String identifier)
           
 NetworkVertex NetworkGraphBuilder.getVertexByIdentifier(java.lang.String identVertex)
           
static NetworkVertex NetworkVertex.getVirtualVertex(NetworkVertex.VertexType type, java.lang.String name)
          factory method for virtual vertex
 NetworkVertex NetworkIterator.next()
           
 NetworkVertex NetworkVertex.setCityName(java.lang.String locationName)
           
 NetworkVertex NetworkVertex.setSink(boolean sink)
           
 NetworkVertex NetworkVertex.setStationType(NetworkVertex.StationType stationType)
           
 NetworkVertex NetworkVertex.setValue(int value)
           
 

Methods in rails.algorithms that return types with arguments of type NetworkVertex
 org.jgrapht.graph.Multigraph<NetworkVertex,NetworkEdge> NetworkCompanyGraph.createPhaseTwoGraph()
           
 org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> NetworkCompanyGraph.createRevenueGraph(java.util.Collection<NetworkVertex> protectedVertices)
           
 org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> NetworkCompanyGraph.createRouteGraph(boolean addHQ)
           
 java.util.List<NetworkVertex> NetworkCompanyGraph.getCompanyBaseTokenVertexes(PublicCompanyI company)
           
 java.util.List<NetworkVertex> NetworkIterator.getCurrentRoute()
           
 org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> RevenueAdapter.getGraph()
           
 org.jgrapht.Graph<NetworkVertex,NetworkEdge> NetworkIterator.getGraph()
           
 java.util.List<NetworkVertex> NetworkEdge.getHiddenVertices()
           
 org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> NetworkGraphBuilder.getMapGraph()
           
 org.jgrapht.Graph<NetworkVertex,NetworkEdge> RevenueAdapter.getRCGraph()
           
 java.util.List<NetworkVertex> RevenueTrainRun.getRunVertices()
           
 java.util.Set<NetworkVertex> RevenueAdapter.getStartVertices()
           
 java.util.Set<NetworkVertex> RevenueTrainRun.getUniqueVertices()
           
 java.util.List<NetworkVertex> NetworkEdge.getVertexPath()
          all vertices from source to target, including hidden vertices
 java.util.List<NetworkVertex> RevenueBonus.getVertices()
           
 java.util.Set<NetworkVertex> RevenueAdapter.getVertices()
           
static java.util.Set<NetworkVertex> NetworkVertex.getVerticesByHex(java.util.Collection<NetworkVertex> vertices, MapHex hex)
          Returns all vertices for a specified hex
static java.util.Set<NetworkVertex> NetworkVertex.getVerticesByHexes(java.util.Collection<NetworkVertex> vertices, java.util.Collection<MapHex> hexes)
          Filters all vertices from a collection of vertices that lay in a specified collection of hexes
 java.util.Iterator<NetworkVertex> NetworkGraphBuilder.iterator()
           
static org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> NetworkGraphBuilder.optimizeGraph(org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> inGraph)
           
static org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> NetworkGraphBuilder.optimizeGraph(org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> inGraph, java.util.Collection<NetworkVertex> protectedVertices)
           
 

Methods in rails.algorithms with parameters of type NetworkVertex
(package private)  void RevenueTrainRun.addVertex(NetworkVertex vertex)
           
 void RevenueBonus.addVertex(NetworkVertex vertex)
           
 boolean RevenueBonus.checkSimpleBonus(NetworkVertex vertex, TrainI train, PhaseI phase)
           
 int NetworkVertex.ValueOrder.compare(NetworkVertex vA, NetworkVertex vB)
           
 int NetworkVertex.compareTo(NetworkVertex otherVertex)
           
static NetworkVertex NetworkVertex.duplicateVertex(org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> graph, NetworkVertex vertex, java.lang.String newIdentifier, boolean addOldVertexAsHidden)
          creates a new virtual vertex with identical properties and links
(package private)  NetworkVertex NetworkEdge.getOtherVertex(NetworkVertex vertex)
          returns the other vertex, if given vertex is not source/target of vertex, returns null
 int RevenueAdapter.getRCVertexId(NetworkVertex vertex)
           
static java.awt.geom.Point2D NetworkVertex.getVertexPoint2D(HexMap map, NetworkVertex vertex)
           
 int RevenueAdapter.getVertexValue(NetworkVertex vertex, NetworkTrain train, PhaseI phase)
           
 java.lang.String RevenueAdapter.getVertexValueAsString(NetworkVertex vertex, NetworkTrain train, PhaseI phase)
           
static NetworkEdge NetworkEdge.replaceVertex(NetworkEdge edge, NetworkVertex oldVertex, NetworkVertex newVertex)
          for a given edge it replaces one of the vertices by a different one otherwise copies all edge attributes
static boolean NetworkVertex.replaceVertex(org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> graph, NetworkVertex oldVertex, NetworkVertex newVertex)
          replaces one vertex by another for a network graph copies all edges
 

Method parameters in rails.algorithms with type arguments of type NetworkVertex
 boolean RevenueAdapter.addStartVertices(java.util.Collection<NetworkVertex> startVertices)
           
 boolean RevenueBonus.addToRevenueCalculator(RevenueCalculator rc, int bonusId, java.util.List<NetworkVertex> allVertices, java.util.List<NetworkTrain> trains, PhaseI phase)
           
 void RevenueBonus.addVertices(java.util.Collection<NetworkVertex> vertices)
           
 boolean RevenueBonus.checkComplexBonus(java.util.List<NetworkVertex> visitVertices, TrainI train, PhaseI phase)
           
 org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> NetworkCompanyGraph.createRevenueGraph(java.util.Collection<NetworkVertex> protectedVertices)
           
static NetworkVertex NetworkVertex.duplicateVertex(org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> graph, NetworkVertex vertex, java.lang.String newIdentifier, boolean addOldVertexAsHidden)
          creates a new virtual vertex with identical properties and links
static java.util.List<MapHex> NetworkGraphBuilder.getMapHexes(org.jgrapht.Graph<NetworkVertex,NetworkEdge> graph)
           
static java.util.List<MapHex> NetworkGraphBuilder.getTokenableStationHexes(org.jgrapht.Graph<NetworkVertex,NetworkEdge> graph, PublicCompanyI company)
           
static NetworkVertex NetworkVertex.getVertexByIdentifier(java.util.Collection<NetworkVertex> vertices, java.lang.String identifier)
           
static java.awt.Rectangle NetworkVertex.getVertexMapCoverage(HexMap map, java.util.Collection<NetworkVertex> vertices)
           
static java.util.Set<NetworkVertex> NetworkVertex.getVerticesByHex(java.util.Collection<NetworkVertex> vertices, MapHex hex)
          Returns all vertices for a specified hex
static java.util.Set<NetworkVertex> NetworkVertex.getVerticesByHexes(java.util.Collection<NetworkVertex> vertices, java.util.Collection<MapHex> hexes)
          Filters all vertices from a collection of vertices that lay in a specified collection of hexes
static void NetworkVertex.initAllRailsVertices(java.util.Collection<NetworkVertex> vertices, PublicCompanyI company, PhaseI phase)
           
static int NetworkVertex.maxVertexValue(java.util.Collection<NetworkVertex> vertices)
          Returns the maximum positive value (lower bound zero)
static boolean NetworkEdge.mergeEdgesInGraph(org.jgrapht.Graph<NetworkVertex,NetworkEdge> graph, NetworkEdge edgeA, NetworkEdge edgeB)
           
static int NetworkVertex.numberOfVertexType(java.util.Collection<NetworkVertex> vertices, NetworkVertex.VertexType vertexType, NetworkVertex.StationType stationType)
          Returns the number of specified vertex type in a vertex collection If station then specify station type
static org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> NetworkGraphBuilder.optimizeGraph(org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> inGraph)
           
static org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> NetworkGraphBuilder.optimizeGraph(org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> inGraph, java.util.Collection<NetworkVertex> protectedVertices)
           
static org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> NetworkGraphBuilder.optimizeGraph(org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> inGraph, java.util.Collection<NetworkVertex> protectedVertices)
           
static boolean NetworkVertex.replaceVertex(org.jgrapht.graph.SimpleGraph<NetworkVertex,NetworkEdge> graph, NetworkVertex oldVertex, NetworkVertex newVertex)
          replaces one vertex by another for a network graph copies all edges
static void NetworkGraphBuilder.visualize(org.jgrapht.Graph<NetworkVertex,NetworkEdge> graph, java.lang.String title)
           
 

Constructors in rails.algorithms with parameters of type NetworkVertex
NetworkEdge.MergeResult(NetworkEdge newEdge, NetworkVertex removedVertex)
           
NetworkEdge(NetworkVertex source, NetworkVertex target, boolean greedy)
           
NetworkEdge(NetworkVertex source, NetworkVertex target, boolean greedy, int distance, java.util.List<NetworkVertex> hiddenVertexes)
           
NetworkIterator(org.jgrapht.Graph<NetworkVertex,NetworkEdge> graph, NetworkVertex startVertex)
           
NetworkIterator(org.jgrapht.Graph<NetworkVertex,NetworkEdge> graph, NetworkVertex startVertex, PublicCompanyI company)
          Returns NetworkIterator for specific company
 

Constructor parameters in rails.algorithms with type arguments of type NetworkVertex
NetworkEdge(NetworkVertex source, NetworkVertex target, boolean greedy, int distance, java.util.List<NetworkVertex> hiddenVertexes)
           
NetworkIterator(org.jgrapht.Graph<NetworkVertex,NetworkEdge> graph, NetworkVertex startVertex)
           
NetworkIterator(org.jgrapht.Graph<NetworkVertex,NetworkEdge> graph, NetworkVertex startVertex, PublicCompanyI company)
          Returns NetworkIterator for specific company
RevenueAdapter.VertexVisit(java.util.Collection<NetworkVertex> coll)