uk.me.parabola.imgfmt.app.net
Class RouteCenter

java.lang.Object
  extended by uk.me.parabola.imgfmt.app.net.RouteCenter

public class RouteCenter
extends java.lang.Object

Routing nodes are divided into areas which I am calling RouteCenter's. The center has a location and it contains nodes that are nearby. There is routing between nodes in the center and there are links to nodes in other centers.


Constructor Summary
RouteCenter(Area area, java.util.List<RouteNode> nodes, TableA tabA, TableB tabB)
           
 
Method Summary
 Area getArea()
           
 java.lang.String reportSizes()
           
 void write(ImgFileWriter writer)
          Write a route center.
 void writePost(ImgFileWriter writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouteCenter

public RouteCenter(Area area,
                   java.util.List<RouteNode> nodes,
                   TableA tabA,
                   TableB tabB)
Method Detail

write

public void write(ImgFileWriter writer)
Write a route center. writer.position() is relative to the start of NOD 1. Space for Table A is reserved but not written. See writeTableA.


writePost

public void writePost(ImgFileWriter writer)

getArea

public Area getArea()

reportSizes

public java.lang.String reportSizes()