C# 클래스 Rozvrh.Models.OneXMLTimetable

상속: IXMLTimetable
파일 보기 프로젝트 열기: jandoubek/fjfi-rozvrh 1 사용 예제들

공개 메소드들

메소드 설명
Copy ( OneXMLTimetable src ) : void

Copy properties (data) from one instance to this.

FilterClassroomsByBuildings ( List buildingIds ) : List

Method filtering classrooms by given buildings. Result held in 'Classrooms' property of Model.

FilterGroupsBySpecializations ( List specializationIds ) : List

Method filtering groups (kruhy) by given specializations (zaměření). Groups are visible when just one degreeYear is selected. Result held in 'Groups' property of Model.

FilterLecturersByDepartments ( List departmentIds ) : List

Method filtering lecturers by given departments, where employed. Result held in 'Lecturers' property of Model.

FilterSpecializationsByDegreeYears ( List degreeYearIds ) : List

Method filtering specializations (zaměření) by given degreeYears. Specializations are visible just only one degreeYear is selected.

FilterTimetableFieldsByAll ( List degreeYearIds, List specializationIds, List groupIds, List departmentIds, List lecturerIds, List buildingIds, List classroomIds, List dayIds, List timeIds, string searchedString ) : List

Method filtering lessons (vyučovací hodiny) by given degreeYears, specializations zaměření, groups (kruhy), departments (dep. of the course), lecturers, classrooms, days and times. Result held in 'TimetableFields' property of Model.

Load ( string xmlPath ) : bool

Reloads xml file, parses and initializes properties which holds base data of the application. This method should be used for refreshing the model after updating thxml with timetable.

비공개 메소드들

메소드 설명
LoadOneXMLTimetableFromFile ( string xmlPath ) : bool

Method which open and parse the xml file.

ParseData ( ) : bool

Init class properties by xml data.

RemoveDiacriticsAndLower ( string s ) : string

Removes diacritics and gets the characters to lower case.

RemoveFirstTwoDigits ( string s ) : string

Removes first two digits of the given string.

anyId ( List ids ) : bool

Return true when there is any id, false for empty list.

filterLessonsByBuildings ( List buildingIds, ICollection lessonsFromAllFilters ) : void

Method filtering lessons by given buildings, used only when no classroom is selected.

filterLessonsByClassrooms ( List classroomIds, ICollection lessonsFromAllFilters ) : void

Method filtering lessons by given classrooms.

filterLessonsByCourses ( List courseIds, ICollection lessonsFromAllFilters ) : void

Method filtering lessons by given courses.

filterLessonsByDays ( List dayIds, ICollection lessonsFromAllFilters ) : void

Method filtering lessons by given days.

filterLessonsByDegreeYears ( List degreeYearIds, ICollection lessonsFromAllFilters ) : void

Method filtering lessons by given degreeYear.

filterLessonsByDepartments ( List departmentIds, ICollection lessonsFromAllFilters ) : void

Method filtering lessons by given departments.

filterLessonsByGroups ( List groupIds, ICollection lessonsFromAllFilters ) : void

Method filtering lessons by given groups.

filterLessonsByLecturers ( List lecturerIds, ICollection lessonsFromAllFilters ) : void

Method filtering lessons by given lecturers.

filterLessonsByLectures ( List lectureIds, ICollection lessonsFromAllFilters ) : void

Method filtering lessons by given lectures.

filterLessonsBySearchString ( string searchString, ICollection lessonsFromAllFilters ) : void

Method filtering lessons by given search string representing acronym or name of a course.

filterLessonsBySpecializations ( List specializationIds, ICollection lessonsFromAllFilters ) : void

Method filtering lessons by given specializations.

filterLessonsByTimes ( List timeIds, ICollection lessonsFromAllFilters ) : void

Method filtering lessons by given times.

intersect ( IEnumerable lessonsFromAllFilters ) : IEnumerable

Makes set intersection of the given lists of lessons.

메소드 상세

Copy() 공개 메소드

Copy properties (data) from one instance to this.
public Copy ( OneXMLTimetable src ) : void
src OneXMLTimetable Source instance.
리턴 void

FilterClassroomsByBuildings() 공개 메소드

Method filtering classrooms by given buildings. Result held in 'Classrooms' property of Model.
public FilterClassroomsByBuildings ( List buildingIds ) : List
buildingIds List Ids of the given buildings
리턴 List

FilterGroupsBySpecializations() 공개 메소드

Method filtering groups (kruhy) by given specializations (zaměření). Groups are visible when just one degreeYear is selected. Result held in 'Groups' property of Model.
public FilterGroupsBySpecializations ( List specializationIds ) : List
specializationIds List
리턴 List

FilterLecturersByDepartments() 공개 메소드

Method filtering lecturers by given departments, where employed. Result held in 'Lecturers' property of Model.
public FilterLecturersByDepartments ( List departmentIds ) : List
departmentIds List Ids of the given departments
리턴 List

FilterSpecializationsByDegreeYears() 공개 메소드

Method filtering specializations (zaměření) by given degreeYears. Specializations are visible just only one degreeYear is selected.
public FilterSpecializationsByDegreeYears ( List degreeYearIds ) : List
degreeYearIds List
리턴 List

FilterTimetableFieldsByAll() 공개 메소드

Method filtering lessons (vyučovací hodiny) by given degreeYears, specializations zaměření, groups (kruhy), departments (dep. of the course), lecturers, classrooms, days and times. Result held in 'TimetableFields' property of Model.
public FilterTimetableFieldsByAll ( List degreeYearIds, List specializationIds, List groupIds, List departmentIds, List lecturerIds, List buildingIds, List classroomIds, List dayIds, List timeIds, string searchedString ) : List
degreeYearIds List Ids of the given degreeYear.
specializationIds List Ids of the given specialization.
groupIds List Ids of the given groups.
departmentIds List Ids of the given departments.
lecturerIds List Ids of the given lecturers.
buildingIds List Ids of the given buildings.
classroomIds List Ids of the given classrooms.
dayIds List Ids of the given days.
timeIds List Ids of the given times.
searchedString string
리턴 List

Load() 공개 메소드

Reloads xml file, parses and initializes properties which holds base data of the application. This method should be used for refreshing the model after updating thxml with timetable.
public Load ( string xmlPath ) : bool
xmlPath string Path to the source xml file.
리턴 bool