Class Road

All Implemented Interfaces:
Serializable, Boundary<EarthCoordinate>, Named

public class Road extends GeoPath
Represents a physical roadway segment within a traffic network. It extends GeoPath to provide geographical geometry and adds operational parameters like speed limits and lane counts for micro-simulation. * @version 2.0
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

    • Road

      public Road(String name, List<GeodeticCoordinate> coordinates, double speedLimit, int lanes)
      Initializes a new road segment.
      Parameters:
      name - common name for the road or segment ID
      coordinates - list of geographic coordinates defining the road path
      speedLimit - maximum allowed speed in meters per second (m/s)
      lanes - number of directional traffic lanes
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Named
      Overrides:
      getName in class GeoPath
    • getSpeedLimit

      public double getSpeedLimit()
    • setSpeedLimit

      public void setSpeedLimit(double speedLimit)
      Updates the operational speed limit.
      Parameters:
      speedLimit - new limit in meters per second
    • getLanes

      public int getLanes()