001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/sam/tags/sakai_2-4-1/samigo-api/src/java/org/sakaiproject/tool/assessment/data/ifc/grading/AssessmentGradingIfc.java $
003: * $Id: AssessmentGradingIfc.java 15716 2006-10-05 23:16:42Z ktsao@stanford.edu $
004: ***********************************************************************************
005: *
006: * Copyright (c) 2004, 2005, 2006 The Sakai Foundation.
007: *
008: * Licensed under the Educational Community License, Version 1.0 (the"License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.opensource.org/licenses/ecl1.php
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: **********************************************************************************/package org.sakaiproject.tool.assessment.data.ifc.grading;
021:
022: import java.util.Date;
023: import java.util.Set;
024:
025: public interface AssessmentGradingIfc extends java.io.Serializable {
026:
027: public static final Integer AUTO_GRADED = new Integer(2);
028:
029: public static final Integer NEED_HUMAN_ATTENTION = new Integer(3);
030:
031: public static final Integer LATE_SUBMISSION = new Integer(4);
032:
033: public static final Integer NO_SUBMISSION = new Integer(5);
034:
035: Long getAssessmentGradingId();
036:
037: void setAssessmentGradingId(Long assessmentGradingId);
038:
039: Long getPublishedAssessmentId();
040:
041: void setPublishedAssessmentId(Long publishedAssessmentId);
042:
043: String getAgentId();
044:
045: void setAgentId(String agentId);
046:
047: //AgentIfc getAgent();
048:
049: Date getSubmittedDate();
050:
051: void setSubmittedDate(Date submittedDate);
052:
053: // Is isLate determined by comparing the submitted date with the duedate
054: // of published assessment or core assessment?
055: // if the former, then we need to store the duedate info in DB
056: // if latter, isLate is determined on the fly -
057: // 'cos core assessment due date can be changed.
058: Boolean getIsLate();
059:
060: void setIsLate(Boolean isLate);
061:
062: Boolean getForGrade();
063:
064: void setForGrade(Boolean forGrade);
065:
066: // sum of item score through auto scoring
067: Float getTotalAutoScore();
068:
069: void setTotalAutoScore(Float totalAutoScore);
070:
071: // sum of item score through instructor grading
072: Float getTotalOverrideScore();
073:
074: void setTotalOverrideScore(Float totalOverrideScore);
075:
076: // grader can override the total score with a final score
077: Float getFinalScore();
078:
079: void setFinalScore(Float finalScore);
080:
081: String getComments();
082:
083: void setComments(String comments);
084:
085: String getGradedBy();
086:
087: void setGradedBy(String GradedBy);
088:
089: Date getGradedDate();
090:
091: void setGradedDate(Date GradedDate);
092:
093: Integer getStatus();
094:
095: void setStatus(Integer status);
096:
097: Set getItemGradingSet();
098:
099: void setItemGradingSet(Set itemGradingSet);
100:
101: Date getAttemptDate();
102:
103: void setAttemptDate(Date attemptDate);
104:
105: Integer getTimeElapsed();
106:
107: void setTimeElapsed(Integer timeElapsed);
108:
109: }
|