cz.muni.fi.pclis.domain
Class Course

java.lang.Object
  extended by cz.muni.fi.pclis.commons.domain.DomainObject
      extended by cz.muni.fi.pclis.domain.Educatable
          extended by cz.muni.fi.pclis.domain.Course

public class Course
extends Educatable

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

code

private String code
code of the course


seminars

private Set<Seminar> seminars
Seminars of this course


availableInTerms

private Set<Term> availableInTerms
Terms in which is the course taught


name

private String name
Name of the course

Constructor Detail

Course

public Course()
Method Detail

getCode

public String getCode()
Description copied from class: Educatable
Returns the code

Specified by:
getCode in class Educatable
Returns:
the code

setCode

public void setCode(String code)
sets the code

Parameters:
code -

getSeminars

public Set<Seminar> getSeminars()
Returns:
the seminars

setSeminars

public void setSeminars(Set<Seminar> seminars)
Sets the seminars

Parameters:
seminars -

addSeminar

public void addSeminar(Seminar seminar)
Adds seminar

Parameters:
seminar -

removeSeminar

public void removeSeminar(Seminar seminar)
Removes seminar

Parameters:
seminar -

getSeminars

public Set<Seminar> getSeminars(Date date)
Returns seminars which are valid at given date

Parameters:
date -
Returns:
seminars

getSeminars

public Set<Seminar> getSeminars(Term term)
Returns seminars which are taught in term

Parameters:
term -
Returns:
seminars

getActualSeminars

public Set<Seminar> getActualSeminars()
Returns actual seminars

Returns:
seminars

getName

public String getName()
Returns:
the name

setName

public void setName(String name)
Sets the name

Parameters:
name -

addTerm

public void addTerm(Term term)
Adds term

Parameters:
term -

removeTerm

public void removeTerm(Term term)
Removes term

Parameters:
term -

isAvailableInTerm

public boolean isAvailableInTerm(Term term)
Returns true, if this course is available in term

Parameters:
term -
Returns:

getAvailableInTerms

public Set<Term> getAvailableInTerms()
Returns:
return available terms

setAvailableInTerms

public void setAvailableInTerms(Set<Term> inTerms)
Sets available terms

Parameters:
inTerms -


Copyright © 2009-2010 Faculty of Informatics, Masaryk university, Brno. All Rights Reserved.