コード例 #1
0
        public void Init()
        {
            var testDataModel = new TestDataModel();

            spaceConstraintsList = new SpaceConstraintsList(testDataModel.MockDataModel.Object);
            test = spaceConstraintsList.Create();
        }
コード例 #2
0
        /// <summary>
        /// Generates a .FET file for use in the algorithm.
        /// </summary>
        /// <param name="outputDir">Output directory for the FET file.</param>
        /// <returns>Filename of the generated .FET file.</returns>
        public string GenerateFetFile(string outputDir)
        {
            // Init XML creator
            var xmlCreator = new XmlCreator(FetVersion);

            // Create FET file
            xmlCreator.AddToRoot(DaysList.Create());
            xmlCreator.AddToRoot(HoursList.Create());
            xmlCreator.AddToRoot(TeachersList.Create());
            xmlCreator.AddToRoot(SubjectsList.Create());
            xmlCreator.AddToRoot(YearsList.Create());
            xmlCreator.AddToRoot(ActivitiesList.Create());
            xmlCreator.AddToRoot(TimeConstraintsList.Create());
            xmlCreator.AddToRoot(SpaceConstraintsList.Create());
            xmlCreator.AddToRoot(RoomsList.Create());

            return(xmlCreator.Save(outputDir));
        }