NetworkVisualiserDemo

public class NetworkVisualiserDemo

For visualising the road network.

Author:Milan Lovric

Fields

Constructors

NetworkVisualiserDemo

protected NetworkVisualiserDemo()

Methods

getMap

public static JFrame getMap(URL zonesUrl, URL networkUrl, URL nodesUrl, URL AADFurl, String mapTitle, String linkDataLabel)

Visualises the road network with link data.

Parameters:
  • zonesUrl – Url for the zones shapefile.
  • networkUrl – Url for the road network shapefile.
  • nodesUrl – Url for the nodes shapefile.
  • AADFurl – Url for the traffic counts shapefile.
  • mapTitle – Map title for the window.
  • linkDataLabel – Label describing the link data used.
Throws:
  • IOException – if any.
Returns:

JFrame with the map.

main

public static void main(String[] args)
Parameters:
  • args – Arguments.
Throws:
  • IOException – if any.

visualise

public static void visualise(RoadNetwork roadNetwork, String mapTitle)

Visualises the road network as loaded from the shapefiles.

Parameters:
  • roadNetwork – Road network.
  • mapTitle – Map title for the window.
Throws:
  • IOException – if any.

visualise

public static JFrame visualise(URL zonesUrl, URL networkUrl, URL nodesUrl, URL AADFurl, String mapTitle, String linkDataLabel)

Visualises the road network with link data.

Parameters:
  • zonesUrl – Url for the zones shapefile.
  • networkUrl – Url for the road network shapefile.
  • nodesUrl – Url for the nodes shapefile.
  • AADFurl – Url for the traffic counts shapefile.
  • mapTitle – Map title for the window.
  • linkDataLabel – Label describing the link data used.
Throws:
  • IOException – if any.
Returns:

JFrame with the map.

visualise

public static JFrame visualise(RoadNetwork roadNetwork, String mapTitle, Map<Integer, Double> linkData, String linkDataLabel, String shapefilePath)

Visualises the road network with dailyVolume.

Parameters:
  • roadNetwork – Road network.
  • mapTitle – Map title for the window.
  • linkData – Data used to classify and colour road links.
  • linkDataLabel – Label describing the link data used.
  • shapefilePath – The path to the shapefile into which data will be stored.
Throws:
  • IOException – if any.
Returns:

JFrame with the map.

visualise

public static JFrame visualise(RoadNetwork roadNetwork, String mapTitle, Map<Integer, Double> linkData, String linkDataLabel, String shapefilePath, URL congestionChargeZoneUrl)

Visualises the road network with link data and congestion charging zone.

Parameters:
  • roadNetwork – Road network.
  • mapTitle – Map title for the window.
  • linkData – Data used to classify and colour road links.
  • linkDataLabel – Label describing the link data used.
  • shapefilePath – The path to the shapefile into which data will be stored.
  • congestionChargeZoneUrl – The path to the shapefile with the congestion charge zone boundary.
Throws:
  • IOException – if any.
Returns:

JFrame with the map.