cz.muni.fi.pclis.domain
Class Term

java.lang.Object
  extended by cz.muni.fi.pclis.commons.domain.DomainObject
      extended by cz.muni.fi.pclis.commons.domain.NamedDomainObject
          extended by cz.muni.fi.pclis.domain.Term

public class Term
extends NamedDomainObject

Term entity implementation User: Ľuboš Pecho Date: 6.7.2009 Time: 18:10:57


Field Summary
private  Period duration
          Period, when the term is actual
private  Period exams
          Period, when are the exams in this term
private  Period registration
          Period, when is possible to register courses in this term
 
Constructor Summary
Term()
           
 
Method Summary
 Period getDuration()
           
 Period getExams()
           
 Period getRegistration()
           
 boolean isInDuration(Date date)
          Returns true if the term is in duration at given date
 boolean isInExams(Date date)
          Returns true if the term is in exams period at given date
 boolean isInRegistration(Date date)
          Returns true if the term is in registration at given date
 void setDuration(Period duration)
          Sets the duration
 void setExams(Period exams)
          Sets exams period
 void setRegistration(Period registration)
          Sets the registration
 
Methods inherited from class cz.muni.fi.pclis.commons.domain.NamedDomainObject
getName, setName
 
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

duration

private Period duration
Period, when the term is actual


registration

private Period registration
Period, when is possible to register courses in this term


exams

private Period exams
Period, when are the exams in this term

Constructor Detail

Term

public Term()
Method Detail

getDuration

public Period getDuration()
Returns:
duration

setDuration

public void setDuration(Period duration)
Sets the duration

Parameters:
duration -

isInDuration

public boolean isInDuration(Date date)
Returns true if the term is in duration at given date

Parameters:
date -
Returns:

getRegistration

public Period getRegistration()
Returns:
registration

setRegistration

public void setRegistration(Period registration)
Sets the registration

Parameters:
registration -

isInRegistration

public boolean isInRegistration(Date date)
Returns true if the term is in registration at given date

Parameters:
date -
Returns:

getExams

public Period getExams()
Returns:
exams period

setExams

public void setExams(Period exams)
Sets exams period

Parameters:
exams -

isInExams

public boolean isInExams(Date date)
Returns true if the term is in exams period at given date

Parameters:
date -
Returns:


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