public class CurriculumRestriction extends Restriction
Constructor and Description |
---|
CurriculumRestriction(long id,
Offering offering,
Collection<String> acadAreas,
Collection<String> classifications,
Collection<String> majors)
Constructor
|
CurriculumRestriction(long id,
Offering offering,
Collection<String> acadAreas,
Collection<String> classifications,
Collection<String> majors,
Collection<String> minors)
Constructor
|
CurriculumRestriction(long id,
Offering offering,
String acadArea,
Collection<String> classifications,
Collection<String> majors)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addConcentration(String major,
String concentration)
Add concentration for major
|
String |
getAcademicArea()
Deprecated.
|
Set<String> |
getAcademicAreas()
Academic areas
|
Set<String> |
getClassifications()
Academic classifications
|
Set<String> |
getConcentrations(String major)
Concentrations for major
|
Set<String> |
getMajors()
Majors
|
Set<String> |
getMinors()
Minors
|
boolean |
isApplicable(Student student)
Check the area, classifications and majors
|
addConfig, addSection, getConfigs, getId, getOffering, getSections, getSections, isIncluded, isIncluded, isIncluded
public CurriculumRestriction(long id, Offering offering, Collection<String> acadAreas, Collection<String> classifications, Collection<String> majors, Collection<String> minors)
id
- restriction unique idoffering
- instructional offering on which the restriction is setacadAreas
- one or more academic areasclassifications
- zero or more classifications (classifications must match if not empty)majors
- zero or more majors (majors must match if not empty)minors
- zero or more majors (minors must match if not empty)public CurriculumRestriction(long id, Offering offering, Collection<String> acadAreas, Collection<String> classifications, Collection<String> majors)
id
- restriction unique idoffering
- instructional offering on which the restriction is setacadAreas
- one or more academic areasclassifications
- zero or more classifications (classifications must match if not empty)majors
- zero or more majors (majors must match if not empty)@Deprecated public CurriculumRestriction(long id, Offering offering, String acadArea, Collection<String> classifications, Collection<String> majors)
id
- restriction unique idoffering
- instructional offering on which the restriction is setacadArea
- academic areaclassifications
- zero or more classifications (classifications must match if not empty)majors
- zero or more majors (majors must match if not empty)public Set<String> getAcademicAreas()
@Deprecated public String getAcademicArea()
public Set<String> getClassifications()
public Set<String> getConcentrations(String major)
public void addConcentration(String major, String concentration)
public boolean isApplicable(Student student)
isApplicable
in class Restriction
student
- a student