-
Notifications
You must be signed in to change notification settings - Fork 0
/
ATSManager.java
48 lines (43 loc) · 2.1 KB
/
ATSManager.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package phoenix;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import java.io.FileNotFoundException;
import java.util.ArrayList;
public class ATSManager {
DataManager dataMgr;
LogicManager logicMgr;
DisplayManager dispMgr;
ArrayList<Courses> courses;
ArrayList<Rooms> rooms;
ArrayList<Sections> sections;
ArrayList<Timeslots> timeslots;
ArrayList<Instructors> instructors;
public static void main(String[] args) throws FileNotFoundException{
String instructorFile = "C:/Users/ANJALI/Desktop/java_project/instructors.csv";
String courseFile ="C:/Users/ANJALI/Desktop/java_project/courses.csv";
String roomFile= "C:/Users/ANJALI/Desktop/java_project/rooms.csv";
String sectionFile= "C:/Users/ANJALI/Desktop/java_project/sections.csv";
String timeslotFile= "C:/Users/ANJALI/Desktop/java_project/timeslots.csv";
ATSManager myMgr = new ATSManager();
myMgr.dataMgr = new DataManager();
myMgr.logicMgr = new LogicManager();
//myMgr.dispMgr=new DisplayManager();
//myMgr.dispMgr.load(myMgr.dispMgr);
/* myMgr.dispMgr.pathscreen.instructorspath.getText().replace('\\','/');
myMgr.dispMgr.pathscreen.coursespath.getText().replace('\\','/');
String insFile=myMgr.dispMgr.pathscreen.instructorspath.getText();
String courseFile=myMgr.dispMgr.pathscreen.coursespath.getText();
System.out.println(insFile);
System.out.println(courseFile);*/
myMgr.courses = myMgr.dataMgr.readCourses(courseFile);
myMgr.instructors = myMgr.dataMgr.readInstructors(instructorFile);
myMgr.rooms=myMgr.dataMgr.readRooms(roomFile);
myMgr.sections=myMgr.dataMgr.readSections(sectionFile);
myMgr.timeslots = myMgr.dataMgr.readTimeslots(timeslotFile);
myMgr.logicMgr.generate(myMgr.timeslots,myMgr.courses,myMgr.sections,myMgr.rooms,myMgr.instructors);
//myMgr.dispMgr.loadtt();
}
}