Skip to content

Commit

Permalink
Added Constructors/Getters/Setters for UCSBSection.java, worked on pa…
Browse files Browse the repository at this point in the history
…rseSection method
  • Loading branch information
kmai12 committed Feb 27, 2014
1 parent eb61d77 commit f47fc9e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 13,948 deletions.
13,944 changes: 0 additions & 13,944 deletions sampleData/testOutput.html

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ public void parseLectureHtml(String html){
*/
public void parseSectionHtml(String html){
//Create a default Section object
String sect = new UCSBSection();
UCSBSection sect = new UCSBSection();



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,46 @@ public class UCSBSection {
private int capacity;

// TODO: Write constructor(s), getters/setters, toString(), equals()
/**
* Default Constructor
*/
public UCSBSection(){ };

/**
* Detailed Constructor
*/
public UCSBSection(UCSBLecture parent, String status, int enrollCode,
String sectionTime, String sectionRoom, int enrolled, int capacity)
{
this.parent = parent;
this.status = status;
this.enrollCode = enrollCode;
this.sectionTime = sectionTime;
this.sectionRoom = sectionRoom;
this.enrolled = enrolled;
this.capacity = capacity;
}

//Getters and Setters
public UCSBLecture getParent(){ return parent;}
public void setParent(UCSBLecture p){ this.parent = p;}

public String getStatus(){return status;}
public void setStatus(String s){ this.status = s;}

public int getEnrollCode(){ return enrollCode;}
public void setEnrollCode(int enrollCode){ this.enrollCode = enrollCode;}

public String getSectionTime(){ return sectionTime;}
public void setSectionTime(String sectionTime){ this.sectionTime = sectionTime;}

public String getSectionRoom(){ return sectionRoom;}
public void setSectionRoom(String sectionRoom){ this.sectionRoom = sectionRoom;}

public int getEnrolled(){ return enrolled;}
public void getEnrolled(int enrolled){ this.enrolled = enrolled;}

public int getCapacity(){ return capacity;}
public void setCapacity(int capacity){ this.capacity = capacity;}



}
}

0 comments on commit f47fc9e

Please sign in to comment.