|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.muni.fi.pclis.commons.domain.DomainObject
cz.muni.fi.pclis.domain.Educatable
cz.muni.fi.pclis.domain.Course
public class Course
Course implementation of Educatable. User: Ľuboš Pecho Date: 6.7.2009 Time: 18:05:36
| Field Summary | |
|---|---|
private Set<Term> |
availableInTerms
Terms in which is the course taught |
private String |
code
code of the course |
private String |
name
Name of the course |
private Set<Seminar> |
seminars
Seminars of this course |
| Constructor Summary | |
|---|---|
Course()
|
|
| Method Summary | |
|---|---|
void |
addSeminar(Seminar seminar)
Adds seminar |
void |
addTerm(Term term)
Adds term |
Set<Seminar> |
getActualSeminars()
Returns actual seminars |
Set<Term> |
getAvailableInTerms()
|
String |
getCode()
Returns the code |
String |
getName()
|
Set<Seminar> |
getSeminars()
|
Set<Seminar> |
getSeminars(Date date)
Returns seminars which are valid at given date |
Set<Seminar> |
getSeminars(Term term)
Returns seminars which are taught in term |
boolean |
isAvailableInTerm(Term term)
Returns true, if this course is available in term |
void |
removeSeminar(Seminar seminar)
Removes seminar |
void |
removeTerm(Term term)
Removes term |
void |
setAvailableInTerms(Set<Term> inTerms)
Sets available terms |
void |
setCode(String code)
sets the code |
void |
setName(String name)
Sets the name |
void |
setSeminars(Set<Seminar> seminars)
Sets the seminars |
| Methods inherited from class cz.muni.fi.pclis.commons.domain.DomainObject |
|---|
equals, getId, hashCode, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private String code
private Set<Seminar> seminars
private Set<Term> availableInTerms
private String name
| Constructor Detail |
|---|
public Course()
| Method Detail |
|---|
public String getCode()
Educatable
getCode in class Educatablepublic void setCode(String code)
code - public Set<Seminar> getSeminars()
public void setSeminars(Set<Seminar> seminars)
seminars - public void addSeminar(Seminar seminar)
seminar - public void removeSeminar(Seminar seminar)
seminar - public Set<Seminar> getSeminars(Date date)
date -
public Set<Seminar> getSeminars(Term term)
term -
public Set<Seminar> getActualSeminars()
public String getName()
public void setName(String name)
name - public void addTerm(Term term)
term - public void removeTerm(Term term)
term - public boolean isAvailableInTerm(Term term)
term -
public Set<Term> getAvailableInTerms()
public void setAvailableInTerms(Set<Term> inTerms)
inTerms -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||