cz.muni.fi.pclis.domain.peerEvaluation
Class PeerEvaluationAssignment

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.peerEvaluation.PeerEvaluationAssignment
Direct Known Subclasses:
SelfEvaluationAssignment, StudentEvaluationAssignment, TeamEvaluationAssignment

public abstract class PeerEvaluationAssignment
extends NamedDomainObject

Abstract entity representing peer evaluation assignment User: Ľuboš Pecho Date: 29.3.2010 Time: 22:26:44


Field Summary
private  Course course
          Course in which is the assignment assigned
private  boolean discreteEvaluation
          Flag if the evaluation should contain discrete evaluation
private  Period filling
          Period when is the evaluation filled
private  boolean generateAbsoluteStatisticsPerPeer
          Flag if absolute statistic of evaluation grades should be generated
private  boolean generateAverageStatisticsPerPeer
          Flag if average statistic of evaluation grades should be generated
private  Term term
          Term in which is the assignment valid
private  boolean uploadFile
          Flag if the evaluation should contain a file
private  boolean writtenComment
          Flag if the evaluation should contain written comment
 
Constructor Summary
PeerEvaluationAssignment()
           
 
Method Summary
abstract  void generateEvaluations()
          generates evaluations
abstract  SortedMap<? extends Object,Integer> getAbsoluteStatistics()
          Returns absolute statistics
abstract  SortedMap<? extends Object,Double> getAverageStatistics()
          Returns average statistics
 Course getCourse()
           
 Period getFilling()
           
 Term getTerm()
           
abstract  SortedSet<? extends PeerEvaluation> getViewableEvaluations()
          Returns evaluation which are worth viewing
 boolean isDiscreteEvaluation()
          Returns true if the evaluation should contain discrete evaluation
 boolean isGenerateAbsoluteStatisticsPerPeer()
          Returns true if absolute statistics should be evaluated
 boolean isGenerateAverageStatisticsPerPeer()
          Returns true if average statistic should be generated
 boolean isInFilling()
          Returns true if the evaluation are filled now
 boolean isUploadFile()
          Returns true if the evaluation should contain uploaded file
 boolean isWrittenComment()
          Returns true if the evaluation should contain written comment
abstract  boolean refersToUser(User user)
          Returns true if given user should post some evaluation in the assignment
 void setCourse(Course course)
          Sets the course
 void setDiscreteEvaluation(boolean discreteEvaluation)
          Sets if the evaluation should contain discrete evaluation
 void setFilling(Period filling)
          Sets the filling
 void setGenerateAbsoluteStatisticsPerPeer(boolean generateAbsoluteStatisticsPerPeer)
          Sets if absolute statistics should be evaluated
 void setGenerateAverageStatisticsPerPeer(boolean generateAverageStatisticsPerPeer)
          Sets if average statistic should be generated
 void setTerm(Term term)
          Sets the term
 void setUploadFile(boolean uploadFile)
          Sets if the evaluation should contain uploaded file
 void setWrittenComment(boolean writtenComment)
          Sets if the evaluation should contain written comment
 
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

course

private Course course
Course in which is the assignment assigned


term

private Term term
Term in which is the assignment valid


filling

private Period filling
Period when is the evaluation filled


discreteEvaluation

private boolean discreteEvaluation
Flag if the evaluation should contain discrete evaluation


writtenComment

private boolean writtenComment
Flag if the evaluation should contain written comment


uploadFile

private boolean uploadFile
Flag if the evaluation should contain a file


generateAverageStatisticsPerPeer

private boolean generateAverageStatisticsPerPeer
Flag if average statistic of evaluation grades should be generated


generateAbsoluteStatisticsPerPeer

private boolean generateAbsoluteStatisticsPerPeer
Flag if absolute statistic of evaluation grades should be generated

Constructor Detail

PeerEvaluationAssignment

public PeerEvaluationAssignment()
Method Detail

generateEvaluations

public abstract void generateEvaluations()
generates evaluations


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)
Sets the term

Parameters:
term -

getFilling

public Period getFilling()
Returns:
filling

setFilling

public void setFilling(Period filling)
Sets the filling

Parameters:
filling -

isInFilling

public boolean isInFilling()
Returns true if the evaluation are filled now

Returns:

isDiscreteEvaluation

public boolean isDiscreteEvaluation()
Returns true if the evaluation should contain discrete evaluation

Returns:

setDiscreteEvaluation

public void setDiscreteEvaluation(boolean discreteEvaluation)
Sets if the evaluation should contain discrete evaluation

Parameters:
discreteEvaluation -

isWrittenComment

public boolean isWrittenComment()
Returns true if the evaluation should contain written comment

Returns:

setWrittenComment

public void setWrittenComment(boolean writtenComment)
Sets if the evaluation should contain written comment

Parameters:
writtenComment -

isUploadFile

public boolean isUploadFile()
Returns true if the evaluation should contain uploaded file

Returns:

setUploadFile

public void setUploadFile(boolean uploadFile)
Sets if the evaluation should contain uploaded file

Parameters:
uploadFile -

isGenerateAverageStatisticsPerPeer

public boolean isGenerateAverageStatisticsPerPeer()
Returns true if average statistic should be generated

Returns:

setGenerateAverageStatisticsPerPeer

public void setGenerateAverageStatisticsPerPeer(boolean generateAverageStatisticsPerPeer)
Sets if average statistic should be generated

Parameters:
generateAverageStatisticsPerPeer -

isGenerateAbsoluteStatisticsPerPeer

public boolean isGenerateAbsoluteStatisticsPerPeer()
Returns true if absolute statistics should be evaluated

Returns:

setGenerateAbsoluteStatisticsPerPeer

public void setGenerateAbsoluteStatisticsPerPeer(boolean generateAbsoluteStatisticsPerPeer)
Sets if absolute statistics should be evaluated

Parameters:
generateAbsoluteStatisticsPerPeer -

getViewableEvaluations

public abstract SortedSet<? extends PeerEvaluation> getViewableEvaluations()
Returns evaluation which are worth viewing

Returns:

refersToUser

public abstract boolean refersToUser(User user)
Returns true if given user should post some evaluation in the assignment

Parameters:
user -
Returns:

getAbsoluteStatistics

public abstract SortedMap<? extends Object,Integer> getAbsoluteStatistics()
Returns absolute statistics

Returns:

getAverageStatistics

public abstract SortedMap<? extends Object,Double> getAverageStatistics()
Returns average statistics

Returns:


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