uk.me.parabola.mkgmap.general
Class MapRoad

java.lang.Object
  extended by uk.me.parabola.mkgmap.general.MapElement
      extended by uk.me.parabola.mkgmap.general.MapLine
          extended by uk.me.parabola.mkgmap.general.MapRoad

public class MapRoad
extends MapLine

Used to represent a road. A road is a special kind of line in that it can be used to route down and can have addresses etc. A road has several coordinates, and some of those coordinates can be routing nodes. A lot of the information is kept in a RoadDef this is done because it needs to be shared between all sections and all levels of the same road.

Author:
Steve Ratcliffe

Constructor Summary
MapRoad(long id, MapLine line)
           
 
Method Summary
 MapRoad copy()
          Provide a copy of this MapElement without geometry.
 void doDeadEndCheck(boolean dec)
           
 void doFlareCheck(boolean fc)
           
 void ferry(boolean f)
           
 RoadDef getRoadDef()
           
 boolean isRoad()
           
 void paved(boolean p)
           
 void setAccess(boolean[] access)
           
 void setInternalNodes(boolean s)
           
 void setLinkRoad(boolean lr)
           
 void setNoThroughRouting()
           
 void setNumNodes(int n)
           
 void setOneway()
           
 void setRoadCity(City c)
           
 void setRoadClass(int roadClass)
           
 void setRoadZip(Zip z)
           
 void setRoundabout(boolean r)
           
 void setSpeed(int speed)
           
 void setStartsWithNode(boolean s)
           
 void setSynthesised(boolean s)
           
 void setToll()
           
 
Methods inherited from class uk.me.parabola.mkgmap.general.MapLine
getBounds, getLocation, getPoints, insertPointsAtEnd, insertPointsAtStart, isDirection, setDirection, setPoints, testForConsecutivePoints
 
Methods inherited from class uk.me.parabola.mkgmap.general.MapElement
getCity, getCountry, getExtTypeAttributes, getHouseNumber, getIsIn, getMaxResolution, getMinResolution, getName, getPhone, getRef, getRegion, getStreet, getType, getZip, hasExtendedType, isSimilar, setCity, setCountry, setExtTypeAttributes, setHouseNumber, setIsIn, setMaxResolution, setMinResolution, setName, setPhone, setRef, setRegion, setStreet, setType, setZip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapRoad

public MapRoad(long id,
               MapLine line)
Method Detail

copy

public MapRoad copy()
Description copied from class: MapElement
Provide a copy of this MapElement without geometry. This is used when filtering and clipping to create modified versions.

Overrides:
copy in class MapLine
Returns:
the copy;

isRoad

public boolean isRoad()
Overrides:
isRoad in class MapLine

setRoadClass

public void setRoadClass(int roadClass)

setSpeed

public void setSpeed(int speed)

setOneway

public void setOneway()

setToll

public void setToll()

paved

public void paved(boolean p)

ferry

public void ferry(boolean f)

setSynthesised

public void setSynthesised(boolean s)

setAccess

public void setAccess(boolean[] access)

setNoThroughRouting

public void setNoThroughRouting()

setStartsWithNode

public void setStartsWithNode(boolean s)

setInternalNodes

public void setInternalNodes(boolean s)

setNumNodes

public void setNumNodes(int n)

getRoadDef

public RoadDef getRoadDef()

setRoadCity

public void setRoadCity(City c)

setRoadZip

public void setRoadZip(Zip z)

setRoundabout

public void setRoundabout(boolean r)

doFlareCheck

public void doFlareCheck(boolean fc)

doDeadEndCheck

public void doDeadEndCheck(boolean dec)

setLinkRoad

public void setLinkRoad(boolean lr)