package atmsdriver.model; import java.util.ArrayList; /** * Highway represents a freeway that has two directions of traffic. A highway is * identified by its highway number. A highway contains lane detector stations, * called Stations, along its length. * * @author jdalbey */ final class Highway { /** The identifying number for this highway, e.g., 101 */ public final Integer highwayNumber; /** The ordered list of stations (lane detector stations) on this highway */ public final ArrayList stations; /** Construct a highway * * @param highwayNum integer identifier for this highway * @param stations ordered list of stations on this highway */ public Highway(Integer highwayNum, ArrayList stations) { this.highwayNumber = highwayNum; this.stations = stations; } }