Class Road
java.lang.Object
org.episteme.core.mathematics.geometry.boundaries.CompositeBoundary<EarthCoordinate>
org.episteme.social.geography.GeoPath
org.episteme.social.architecture.traffic.Road
- All Implemented Interfaces:
Serializable, Boundary<EarthCoordinate>, Named
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class GeoPath
GeoPath.SimpleGeoPath -
Constructor Summary
ConstructorsConstructorDescriptionRoad(String name, List<GeodeticCoordinate> coordinates, double speedLimit, int lanes) Initializes a new road segment. -
Method Summary
Modifier and TypeMethodDescriptionintgetLanes()getName()doublevoidsetSpeedLimit(double speedLimit) Updates the operational speed limit.Methods inherited from class GeoPath
addPoint, getEnd, getPoints, getStart, getTotalLength, setName, size, toStringMethods inherited from class CompositeBoundary
addExclusion, addInclusion, contains, convexHull, getBoundaryMeasure, getBoundingBox, getCentroid, getDimension, getExclusions, getInclusions, getMeasure, intersection, intersects, isEmpty, scale, translate, union
-
Constructor Details
-
Road
Initializes a new road segment.- Parameters:
name- common name for the road or segment IDcoordinates- list of geographic coordinates defining the road pathspeedLimit- maximum allowed speed in meters per second (m/s)lanes- number of directional traffic lanes
-
-
Method Details
-
getName
-
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()
-