uk.me.parabola.mkgmap.general
Class RoadNetwork

java.lang.Object
  extended by uk.me.parabola.mkgmap.general.RoadNetwork

public class RoadNetwork
extends java.lang.Object

This holds the road network. That is all the roads and the nodes that connect them together.

Author:
Steve Ratcliffe
See Also:
Distance / bearing calculations

Field Summary
static int NO_BIKE
           
static int NO_BUS
           
static int NO_CAR
           
static int NO_CARPOOL
           
static int NO_DELIVERY
           
static int NO_EMERGENCY
           
static int NO_FOOT
           
static int NO_MAX
           
static int NO_TAXI
           
static int NO_TRUCK
           
 
Constructor Summary
RoadNetwork()
           
 
Method Summary
 void addRestriction(CoordNode fromNode, CoordNode toNode, CoordNode viaNode, byte exceptMask)
           
 void addRoad(MapRoad road)
           
 void addThroughRoute(long junctionNodeId, long roadIdA, long roadIdB)
           
 void config(EnhancedProperties props)
           
 java.util.List<RouteNode> getBoundary()
          Get the list of nodes on the boundary of the network.
 java.util.List<RouteCenter> getCenters()
           
 java.util.List<RoadDef> getRoadDefs()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_EMERGENCY

public static final int NO_EMERGENCY
See Also:
Constant Field Values

NO_DELIVERY

public static final int NO_DELIVERY
See Also:
Constant Field Values

NO_CAR

public static final int NO_CAR
See Also:
Constant Field Values

NO_BUS

public static final int NO_BUS
See Also:
Constant Field Values

NO_TAXI

public static final int NO_TAXI
See Also:
Constant Field Values

NO_FOOT

public static final int NO_FOOT
See Also:
Constant Field Values

NO_BIKE

public static final int NO_BIKE
See Also:
Constant Field Values

NO_TRUCK

public static final int NO_TRUCK
See Also:
Constant Field Values

NO_CARPOOL

public static final int NO_CARPOOL
See Also:
Constant Field Values

NO_MAX

public static final int NO_MAX
See Also:
Constant Field Values
Constructor Detail

RoadNetwork

public RoadNetwork()
Method Detail

config

public void config(EnhancedProperties props)

addRoad

public void addRoad(MapRoad road)

getRoadDefs

public java.util.List<RoadDef> getRoadDefs()

getCenters

public java.util.List<RouteCenter> getCenters()

getBoundary

public java.util.List<RouteNode> getBoundary()
Get the list of nodes on the boundary of the network. Currently empty.


addRestriction

public void addRestriction(CoordNode fromNode,
                           CoordNode toNode,
                           CoordNode viaNode,
                           byte exceptMask)

addThroughRoute

public void addThroughRoute(long junctionNodeId,
                            long roadIdA,
                            long roadIdB)