public class RoadSensor { private boolean hazardDetected; //flag for whether a hazard is detected private String roadwayDetails; //stores road quality details, eg wet, uneven private double[] laneEdges; //stores distance to left/right lane edges private String roadSigns; //stores roadsign text for visible signs public void detectLaneEdges() { laneEdges[0] = 1; laneEdges[1] = 1.1; } public int detectSpeedLimit() { //image intepretation api call to review any street signs with a speed limit marking //in practice this will be combined with route mapping data to confirm current //speed limits return 45; } }