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

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
              extended by cz.muni.fi.pclis.domain.peerEvaluation.SelfEvaluationAssignment

public class SelfEvaluationAssignment
extends PeerEvaluationAssignment

Entity representing self evaluation assignment User: Ľuboš Pecho Date: 30.3.2010 Time: 0:57:20


Field Summary
private  Set<SelfEvaluation> evaluations
          Evaluations contained
private  SortedSet<User> studentsToEvaluate
          Students that should be included in the evaluation
 
Constructor Summary
SelfEvaluationAssignment()
           
 
Method Summary
 void generateEvaluations()
          generates evaluations
 SortedMap<? extends Object,Integer> getAbsoluteStatistics()
          Returns absolute statistics
 SortedMap<? extends Object,Double> getAverageStatistics()
          Returns average statistics
 SelfEvaluation getEvaluation(User user)
          Returns evaluation for user
 Set<SelfEvaluation> getEvaluations()
           
 SortedSet<User> getStudentsToEvaluate()
           
 SortedSet<SelfEvaluation> getViewableEvaluations()
          Returns evaluation which are worth viewing
 boolean refersToUser(User user)
          Returns true if given user should post some evaluation in the assignment
 void setEvaluations(Set<SelfEvaluation> evaluations)
          Sets the evaluations
 void setStudentsToEvaluate(SortedSet<User> studentsToEvaluate)
          Sets students to evaluate
 
Methods inherited from class cz.muni.fi.pclis.domain.peerEvaluation.PeerEvaluationAssignment
getCourse, getFilling, getTerm, isDiscreteEvaluation, isGenerateAbsoluteStatisticsPerPeer, isGenerateAverageStatisticsPerPeer, isInFilling, isUploadFile, isWrittenComment, setCourse, setDiscreteEvaluation, setFilling, setGenerateAbsoluteStatisticsPerPeer, setGenerateAverageStatisticsPerPeer, setTerm, setUploadFile, setWrittenComment
 
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

studentsToEvaluate

private SortedSet<User> studentsToEvaluate
Students that should be included in the evaluation


evaluations

private Set<SelfEvaluation> evaluations
Evaluations contained

Constructor Detail

SelfEvaluationAssignment

public SelfEvaluationAssignment()
Method Detail

generateEvaluations

public void generateEvaluations()
Description copied from class: PeerEvaluationAssignment
generates evaluations

Specified by:
generateEvaluations in class PeerEvaluationAssignment

getStudentsToEvaluate

public SortedSet<User> getStudentsToEvaluate()
Returns:
students to evaluate

setStudentsToEvaluate

public void setStudentsToEvaluate(SortedSet<User> studentsToEvaluate)
Sets students to evaluate

Parameters:
studentsToEvaluate -

getEvaluations

public Set<SelfEvaluation> getEvaluations()
Returns:
evaluations

setEvaluations

public void setEvaluations(Set<SelfEvaluation> evaluations)
Sets the evaluations

Parameters:
evaluations -

getEvaluation

public SelfEvaluation getEvaluation(User user)
Returns evaluation for user

Parameters:
user -
Returns:

refersToUser

public boolean refersToUser(User user)
Description copied from class: PeerEvaluationAssignment
Returns true if given user should post some evaluation in the assignment

Specified by:
refersToUser in class PeerEvaluationAssignment
Returns:

getViewableEvaluations

public SortedSet<SelfEvaluation> getViewableEvaluations()
Description copied from class: PeerEvaluationAssignment
Returns evaluation which are worth viewing

Specified by:
getViewableEvaluations in class PeerEvaluationAssignment
Returns:

getAbsoluteStatistics

public SortedMap<? extends Object,Integer> getAbsoluteStatistics()
Description copied from class: PeerEvaluationAssignment
Returns absolute statistics

Specified by:
getAbsoluteStatistics in class PeerEvaluationAssignment
Returns:

getAverageStatistics

public SortedMap<? extends Object,Double> getAverageStatistics()
Description copied from class: PeerEvaluationAssignment
Returns average statistics

Specified by:
getAverageStatistics in class PeerEvaluationAssignment
Returns:


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