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

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.StudentEvaluationAssignment

public class StudentEvaluationAssignment
extends PeerEvaluationAssignment

Entity representing student evaluation assignment User: Ľuboš Pecho Date: 29.3.2010 Time: 22:48:37


Field Summary
private  Integer evaluatedStudentCount
          Count of student each student should evaluate
private  Set<StudentEvaluation> evaluations
          Evaluations contained
private  PeerAssignmentType peerAssignmentType
          Type of peer assignment
private  SortedSet<User> studentsToEvaluate
          Students that should be included in the evaluation
 
Constructor Summary
StudentEvaluationAssignment()
           
 
Method Summary
private  void generateAll()
           
 void generateEvaluations()
          generates evaluations
private  void generateRandomly()
           
 SortedMap<? extends Object,Integer> getAbsoluteStatistics()
          Returns absolute statistics
 SortedMap<? extends Object,Double> getAverageStatistics()
          Returns average statistics
 Integer getEvaluatedStudentCount()
           
 Set<StudentEvaluation> getEvaluationByUser(User user)
          Returns evaluations for user
 Set<StudentEvaluation> getEvaluations()
           
 PeerAssignmentType getPeerAssignmentType()
           
 SortedSet<User> getStudentsToEvaluate()
           
 Set<StudentEvaluation> getStudentsToEvaluate(User user)
          Returns students to evaluate for user
 SortedSet<StudentEvaluation> getViewableEvaluations()
          Returns evaluation which are worth viewing
 boolean refersToUser(User user)
          Returns true if given user should post some evaluation in the assignment
 void setEvaluatedStudentCount(Integer evaluatedStudentCount)
          Sets the evaluated student count
 void setEvaluations(Set<StudentEvaluation> evaluations)
          Sets the evaluations
 void setPeerAssignmentType(PeerAssignmentType peerAssignmentType)
          Sets the peer assignment type
 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<StudentEvaluation> evaluations
Evaluations contained


evaluatedStudentCount

private Integer evaluatedStudentCount
Count of student each student should evaluate


peerAssignmentType

private PeerAssignmentType peerAssignmentType
Type of peer assignment

Constructor Detail

StudentEvaluationAssignment

public StudentEvaluationAssignment()
Method Detail

generateEvaluations

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

Specified by:
generateEvaluations in class PeerEvaluationAssignment

generateAll

private void generateAll()

generateRandomly

private void generateRandomly()

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<StudentEvaluation> getEvaluations()
Returns:
evaluations

setEvaluations

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

Parameters:
evaluations -

getEvaluatedStudentCount

public Integer getEvaluatedStudentCount()
Returns:
evaluated student count

setEvaluatedStudentCount

public void setEvaluatedStudentCount(Integer evaluatedStudentCount)
Sets the evaluated student count

Parameters:
evaluatedStudentCount -

getPeerAssignmentType

public PeerAssignmentType getPeerAssignmentType()
Returns:
peer assignment type

setPeerAssignmentType

public void setPeerAssignmentType(PeerAssignmentType peerAssignmentType)
Sets the peer assignment type

Parameters:
peerAssignmentType -

getStudentsToEvaluate

public Set<StudentEvaluation> getStudentsToEvaluate(User user)
Returns students to evaluate 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:

getEvaluationByUser

public Set<StudentEvaluation> getEvaluationByUser(User user)
Returns evaluations for user

Parameters:
user -
Returns:

getViewableEvaluations

public SortedSet<StudentEvaluation> 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.