/// <summary>
 /// Generates the timetables. But in fact just only evaluate the original timetable.
 /// </summary>
 /// <param name="number">The number.</param>
 public void generateTimetables(int number)
 {
     this.Timetables.Clear();
     this.originalTimetable.calculateRatingValue();
     LogUtil.printTimetableTransfersEvaluation(originalTimetable, FinalInput.getInstance().getCacheContent());
     this.Timetables.Add(this.originalTimetable);
 }
Esempio n. 2
0
        /// <summary>
        /// Creates the transfers.
        /// </summary>
        /// <param name="line">The line.</param>
        /// <param name="transfers">The transfers.</param>
        public static void createTransfers(TrainLine line, List <Transfer> transfers)
        {
            // List<Transfer> transfers = new List<Transfer>();
            List <GroupOfConnections> connections = FinalInput.getInstance().getGroupsOfConnections();

            findOnOffTransfers(connections, line, transfers);
        }
Esempio n. 3
0
        /// <summary>
        /// Creates the transfers on each line train line respectively.
        /// </summary>
        /// <returns>List of transfers.</returns>
        public static List <Transfer> retrieveTransfers()
        {
            // TODO: Retrieve from FinalInput.

            List <Transfer> transfers = FinalInput.getInstance().getCacheContent();

            //List<Transfer> transfers = new List<Transfer>();
            //foreach (TrainLine line in TrainLineCache.getInstance().getCacheContent())
            //{
            //    TransferUtil.createTransfers(line, transfers);
            //}

            return(transfers);
        }