Skip to content

Commit

Permalink
SessionInfo.addClass(CRN) breaks it. fix schedule line 82.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathang104 committed Mar 17, 2013
1 parent b578e46 commit c213671
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions branch/proto/Schedule.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,22 @@ public String getInstructor() {
return this.Instructor;
}

public String getWeekday() {
return this.Weekday;
public String getTimeslot() {
return this.Start_time + " - " + this.End_time + " " + this.Weekday;
}

public String getCoursename() {
return this.Subject+this.Course_no.toString();
}

public ArrayList<Integer> getTimes(){
return this.Times;
public ArrayList<Integer> getTimes() {
if (this.Times != null) {
return this.Times;
}
else {
//TODO actually create times if it doesn't exist
return new ArrayList<Integer>();
}
}
/**
* The <code>toCsv</code> function creates a string of comma separated
Expand Down
2 changes: 1 addition & 1 deletion branch/proto/UserHistory.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ public void actionPerformed(ActionEvent e) {
submit.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
sessioninfo = DragonCourseScheduler.updateMajor(sessioninfo, getMajorCode());//what is the major value?
sessioninfo = DragonCourseScheduler.setTerms(sessioninfo, getTerms());
sessioninfo = DragonCourseScheduler.updateHistory(sessioninfo, PreviousClassesField.getText());
sessioninfo = DragonCourseScheduler.updateConcentrations(sessioninfo, getTrackList());// please fill in concentration info
sessioninfo = DragonCourseScheduler.setTerms(sessioninfo, getTerms());

setVisible(false);
}
Expand Down

0 comments on commit c213671

Please sign in to comment.