uk.me.parabola.mkgmap.general
Class RoadNetwork
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
RoadNetwork
public RoadNetwork()
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)