コード例 #1
0
ファイル: Route.java プロジェクト: pceric/zephyr-train-system
  // the Route contructor takes a unique ID, start station, end station, and the number of segments
  // between the stations. Then initializes _id, _startStation, _endStation, and fills the segment
  // array list with Segments to the size of numSegments
  public Route(TrainSystem system, int id, Station start, Station end, int numSegments) {
    this(system);

    _id = id;
    _startStation = start;
    _endStation = end;
    end.CreatePlatform(this);
    set_NumSegments(numSegments);
  }