Class School
java.lang.Object
org.episteme.social.sociology.School
- All Implemented Interfaces:
Serializable, Identified<Identification>, Named
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProgram(String program) intintgetId()Returns the unique identifier of this entity.getLevel()getName()longReturns student-to-faculty ratio.getType()static Schoolmit()voidsetAcceptanceRate(Real rate) voidsetFacultyCount(int count) voidsetFoundedYear(int year) voidsetLevel(SchoolLevel level) voidsetLocation(String location) voidsetStudentCount(long count) voidsetType(SchoolType type) toString()
-
Constructor Details
-
School
Creates a new School.- Parameters:
name- identifying nametype- institution type- Throws:
NullPointerException- if inputs are nullIllegalArgumentException- if name is empty
-
-
Method Details
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
getName
-
getType
-
getLevel
-
getLocation
-
getFoundedYear
public int getFoundedYear() -
getStudentCount
public long getStudentCount() -
getFacultyCount
public int getFacultyCount() -
getAcceptanceRate
-
getPrograms
-
setType
-
setLevel
-
setLocation
-
setFoundedYear
public void setFoundedYear(int year) -
setStudentCount
public void setStudentCount(long count) -
setFacultyCount
public void setFacultyCount(int count) -
setAcceptanceRate
-
addProgram
-
getStudentFacultyRatio
Returns student-to-faculty ratio.- Returns:
- ratio, or ZERO if no faculty
-
toString
-
mit
-