001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/sam/tags/sakai_2-4-1/samigo-hibernate/src/java/org/sakaiproject/tool/assessment/data/dao/grading/ItemGradingData.java $
003: * $Id: ItemGradingData.java 13999 2006-08-25 00:12:10Z 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.dao.grading;
021:
022: import org.sakaiproject.tool.assessment.data.ifc.grading.AssessmentGradingIfc;
023: import org.sakaiproject.tool.assessment.data.ifc.grading.ItemGradingIfc;
024: import org.sakaiproject.tool.assessment.data.ifc.assessment.AnswerIfc;
025: import org.sakaiproject.tool.assessment.data.ifc.assessment.ItemDataIfc;
026: import org.sakaiproject.tool.assessment.data.ifc.assessment.ItemTextIfc;
027: import java.util.Date;
028: import java.util.ArrayList;
029: import java.lang.Float;
030:
031: /**
032: * <p>Title: </p>
033: * <p>Description: </p>
034: * <p>Copyright: Copyright (c) 2004</p>
035: * <p>Company: </p>
036: * @author not attributable
037: * @version 1.0
038: */
039:
040: public class ItemGradingData implements java.io.Serializable,
041: ItemGradingIfc {
042:
043: private static final long serialVersionUID = 7526471155622776147L;
044: private Long itemGradingId;
045: private Long assessmentGradingId;
046: private AssessmentGradingIfc assessmentGrading;
047: private Long publishedItemId;
048: private Long publishedItemTextId;
049: // private ItemDataIfc publishedItem;
050: //private ItemTextIfc publishedItemText;
051: private String agentId;
052: private Long publishedAnswerId;
053: private AnswerIfc publishedAnswer;
054: private String rationale;
055: private String answerText;
056: private Date submittedDate;
057: private Float autoScore;
058: private Float overrideScore;
059: private String comments;
060: private String gradedBy;
061: private Date gradedDate;
062: private Boolean review;
063: // these two properties are used by audio question in Samigo 2.2
064: private Integer attemptsRemaining;
065: private String lastDuration;
066: private ArrayList mediaArray;
067:
068: public ItemGradingData() {
069: }
070:
071: public ItemGradingData(Long itemGradingId, Long assessmentGradingId) {
072: this .itemGradingId = itemGradingId;
073: this .assessmentGradingId = assessmentGradingId;
074: }
075:
076: public Long getItemGradingId() {
077: return itemGradingId;
078: }
079:
080: public void setItemGradingId(Long itemGradingId) {
081: this .itemGradingId = itemGradingId;
082: }
083:
084: public Long getPublishedItemId() {
085: return publishedItemId;
086: }
087:
088: public void setPublishedItemId(Long publishedItemId) {
089: this .publishedItemId = publishedItemId;
090: }
091:
092: public Long getPublishedItemTextId() {
093: return publishedItemTextId;
094: }
095:
096: public void setPublishedItemTextId(Long publishedItemTextId) {
097: this .publishedItemTextId = publishedItemTextId;
098: }
099:
100: public Long getAssessmentGradingId() {
101: return assessmentGradingId;
102: }
103:
104: public void setAssessmentGradingId(Long assessmentGradingId) {
105: this .assessmentGradingId = assessmentGradingId;
106: }
107:
108: /*
109: public AssessmentGradingIfc getAssessmentGrading() {
110: return assessmentGrading;
111: }
112: public void setAssessmentGrading(AssessmentGradingIfc assessmentGrading) {
113: this.assessmentGrading = assessmentGrading;
114: setAssessmentGradingId(assessmentGrading.getAssessmentGradingId());
115: }
116: */
117: /*
118: public ItemDataIfc getPublishedItem() {
119: return publishedItem;
120: }
121: public void setPublishedItem(ItemDataIfc publishedItem) {
122: this.publishedItem = publishedItem;
123: }
124: public ItemTextIfc getPublishedItemText() {
125: return publishedItemText;
126: }
127: public void setPublishedItemText(ItemTextIfc publishedItemText) {
128: this.publishedItemText = publishedItemText;
129: }
130: */
131:
132: public String getAgentId() {
133: return agentId;
134: }
135:
136: public void setAgentId(String agentId) {
137: this .agentId = agentId;
138: }
139:
140: public Long getPublishedAnswerId() {
141: return publishedAnswerId;
142: }
143:
144: public void setPublishedAnswerId(Long publishedAnswerId) {
145: this .publishedAnswerId = publishedAnswerId;
146: }
147:
148: public AnswerIfc getPublishedAnswer() {
149: return publishedAnswer;
150: }
151:
152: public void setPublishedAnswer(AnswerIfc publishedAnswer) {
153: this .publishedAnswer = publishedAnswer;
154: }
155:
156: public String getRationale() {
157: return rationale;
158: }
159:
160: public void setRationale(String rationale) {
161: this .rationale = rationale;
162: }
163:
164: public String getAnswerText() {
165: return answerText;
166: }
167:
168: public void setAnswerText(String answerText) {
169: this .answerText = answerText;
170: }
171:
172: public Date getSubmittedDate() {
173: return submittedDate;
174: }
175:
176: public void setSubmittedDate(Date submittedDate) {
177: this .submittedDate = submittedDate;
178: }
179:
180: public Float getAutoScore() {
181: return autoScore;
182: }
183:
184: public void setAutoScore(Float autoScore) {
185: this .autoScore = autoScore;
186: }
187:
188: public Float getOverrideScore() {
189: return overrideScore;
190: }
191:
192: public void setOverrideScore(Float overrideScore) {
193: this .overrideScore = overrideScore;
194: }
195:
196: public String getComments() {
197: return comments;
198: }
199:
200: public void setComments(String comments) {
201: this .comments = comments;
202: }
203:
204: public String getGradedBy() {
205: return gradedBy;
206: }
207:
208: public void setGradedBy(String gradedBy) {
209: this .gradedBy = gradedBy;
210: }
211:
212: public Date getGradedDate() {
213: return gradedDate;
214: }
215:
216: public void setGradedDate(Date gradedDate) {
217: this .gradedDate = gradedDate;
218: }
219:
220: public Boolean getReview() {
221: return review;
222: }
223:
224: public void setReview(Boolean newReview) {
225: review = newReview;
226: }
227:
228: public Integer getAttemptsRemaining() {
229: return attemptsRemaining;
230: }
231:
232: public void setAttemptsRemaining(Integer attemptsRemaining) {
233: this .attemptsRemaining = attemptsRemaining;
234: }
235:
236: public String getLastDuration() {
237: return lastDuration;
238: }
239:
240: public void setLastDuration(String lastDuration) {
241: this .lastDuration = lastDuration;
242: }
243:
244: public ArrayList getMediaArray() {
245: return mediaArray;
246: }
247:
248: public void setMediaArray(ArrayList mediaArray) {
249: this .mediaArray = mediaArray;
250: }
251:
252: public int getMediaSize() {
253: return mediaArray.size();
254: }
255:
256: }
|