cz.muni.fi.pclis.domain.learningContracts
Class LearningContractsBehaviour

java.lang.Object
  extended by cz.muni.fi.pclis.commons.domain.DomainObject
      extended by cz.muni.fi.pclis.domain.learningContracts.LearningContractsBehaviour

public class LearningContractsBehaviour
extends DomainObject

Entity representing Learning Contracts Behaviour User: Ľuboš Pecho Date: 9.2.2010 Time: 20:11:51


Field Summary
private  int acceptContracts
          Count of accepted contracts
private  boolean canStudentAddContract
          Flag if students can add contract on their own
private  Course course
          Course for which is this behaviour valid
private  Period duration
          Period when the contracts can be filled
private  Term term
          Term in which is the behaviour valid
private  int votesPerStudent
          Count of votes each student has
 
Constructor Summary
LearningContractsBehaviour()
           
 
Method Summary
 int getAcceptContracts()
           
 Course getCourse()
           
 Period getDuration()
           
 Term getTerm()
           
 int getVotesPerStudent()
           
 boolean isCanStudentAddContract()
          Returns true if students can add their own contracts
 void setAcceptContracts(int acceptContracts)
          Serts the acceptContracts count
 void setCanStudentAddContract(boolean canStudentAddContract)
          Sets wheter students can add their own contracts
 void setCourse(Course course)
          Sets the course
 void setDuration(Period duration)
          Sets the duration
 void setTerm(Term term)
           
 void setVotesPerStudent(int votesPerStudent)
          Sets the votes per student count
 
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

course

private Course course
Course for which is this behaviour valid


term

private Term term
Term in which is the behaviour valid


acceptContracts

private int acceptContracts
Count of accepted contracts


votesPerStudent

private int votesPerStudent
Count of votes each student has


canStudentAddContract

private boolean canStudentAddContract
Flag if students can add contract on their own


duration

private Period duration
Period when the contracts can be filled

Constructor Detail

LearningContractsBehaviour

public LearningContractsBehaviour()
Method Detail

getCourse

public Course getCourse()
Returns:
course

setCourse

public void setCourse(Course course)
Sets the course

Parameters:
course -

getTerm

public Term getTerm()
Returns:
term

setTerm

public void setTerm(Term term)
Parameters:
term -

getAcceptContracts

public int getAcceptContracts()
Returns:
accept contracts count

setAcceptContracts

public void setAcceptContracts(int acceptContracts)
Serts the acceptContracts count

Parameters:
acceptContracts -

getVotesPerStudent

public int getVotesPerStudent()
Returns:
votes per student count

setVotesPerStudent

public void setVotesPerStudent(int votesPerStudent)
Sets the votes per student count

Parameters:
votesPerStudent -

getDuration

public Period getDuration()
Returns:
duration

setDuration

public void setDuration(Period duration)
Sets the duration

Parameters:
duration -

isCanStudentAddContract

public boolean isCanStudentAddContract()
Returns true if students can add their own contracts

Returns:

setCanStudentAddContract

public void setCanStudentAddContract(boolean canStudentAddContract)
Sets wheter students can add their own contracts

Parameters:
canStudentAddContract -


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