Java Doc for GradingService.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » tool » assessment » services » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.tool.assessment.services 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.sakaiproject.tool.assessment.services.GradingService

GradingService
public class GradingService (Code)
The GradingService calls the back end to get/store grading information. It also calculates scores for autograded types.




Method Summary
public  voiddeleteAll(Collection c)
    
public  booleanfibmatch(String answer, String input, boolean casesensitive)
    
public  intgetActualNumberRetake(Long publishedAssessmentId, String agentIdString)
    
public  ListgetAllAssessmentGradingByAgentId(Long publishedAssessmentId, String agentIdString)
    
public  ListgetAllSubmissions(String publishedId)
     Get all submissions for a published assessment from the back end.
public  floatgetAnswerScore(ItemGradingIfc data, HashMap publishedAnswerHash)
     This grades multiple choice and true false questions.
public  HashMapgetAssessmentGradingByItemGradingId(String publishedAssessmentId)
    
public  ListgetAssessmentGradingIds(String publishedItemId)
    
public  booleangetFIBResult(ItemGradingIfc data, HashMap fibmap, ItemDataIfc itemdata, HashMap publishedAnswerHash)
    
public  floatgetFIBScore(ItemGradingIfc data, HashMap fibmap, ItemDataIfc itemdata, HashMap publishedAnswerHash)
     This grades Fill In Blank questions.
public  booleangetFINResult(ItemGradingIfc data, ItemDataIfc itemdata, HashMap publishedAnswerHash)
    
public  floatgetFINScore(ItemGradingIfc data, ItemDataIfc itemdata, HashMap publishedAnswerHash)
    
public  AssessmentGradingIfcgetHighestAssessmentGrading(String publishedAssessmentId, String agentId)
    
public  ArrayListgetHighestAssessmentGradingList(Long publishedId)
    
public  AssessmentGradingIfcgetHighestSubmittedAssessmentGrading(String publishedAssessmentId, String agentId)
    
public  ListgetHighestSubmittedAssessmentGradingList(Long publishedId)
    
public  ItemGradingDatagetItemGrading(String itemGradingId)
    
public  ItemGradingDatagetItemGradingData(String assessmentGradingId, String publishedItemId)
    
public  ListgetItemGradingIds(Long assessmentGradingId)
    
public  SetgetItemGradingSet(String assessmentGradingId)
    
public  HashMapgetItemScores(Long publishedId, Long itemId, String which)
     Get the score information for each item from the assessment score.
public  HashSetgetItemSet(Long publishedAssessmentId, Long sectionId)
    
public  AssessmentGradingIfcgetLastAssessmentGradingByAgentId(String publishedAssessmentId, String agentIdString)
    
public  ArrayListgetLastAssessmentGradingList(Long publishedId)
    
public  HashMapgetLastItemGradingData(String publishedId, String agentId)
    
public  ItemGradingDatagetLastItemGradingDataByAgent(String publishedItemId, String agentId)
    
public  ArrayListgetLastItemGradingDataPosition(Long assessmentGradingId, String agentId)
    
public  AssessmentGradingDatagetLastSavedAssessmentGradingByAgentId(String publishedAssessmentId, String agentIdString)
    
public  AssessmentGradingDatagetLastSubmittedAssessmentGradingByAgentId(String publishedAssessmentId, String agentIdString)
    
public  ListgetLastSubmittedAssessmentGradingList(Long publishedId)
    
public  intgetLateSubmissionsNumberByAgentId(Long publishedAssessmentId, String agentIdString, Date dueDate)
    
public  MediaDatagetMedia(String mediaId)
    
public  ArrayListgetMediaArray(String itemGradingId)
    
public  ArrayListgetMediaArray(ItemGradingData i)
    
public  ListgetMediaArray(String publishedId, String publishItemId, String which)
    
public  intgetNumberRetake(Long publishedAssessmentId, String agentIdString)
    
public  PublishedAssessmentIfcgetPublishedAssessmentByAssessmentGradingId(String id)
    
public  PublishedAssessmentIfcgetPublishedAssessmentByPublishedItemId(String publishedItemId)
    
public  IntegergetScoringType(PublishedAssessmentIfc pub)
    
public  HashMapgetStudentGradingData(String assessmentGradingId)
    
public  ListgetStudentGradingSummaryData(Long publishedAssessmentId, String agentIdString)
    
public  HashMapgetSubmissionSizeOfAllPublishedAssessments()
    
public  intgetSubmissionSizeOfPublishedAssessment(String publishedAssessmentId)
    
public  HashMapgetSubmitData(String publishedId, String agentId, Integer scoringoption)
    
public  StringgetTextForId(Long typeId)
    
public  floatgetTotalCorrectScore(ItemGradingIfc data, HashMap publishedAnswerHash)
    
public  ArrayListgetTotalScores(String publishedId, String which)
     Get all scores for a published assessment from the back end.
public  LonggetTypeId(Long itemGradingId)
    
public  AssessmentGradingDataload(String assessmentGradingId)
    
public  voidnotifyGradebook(AssessmentGradingIfc data, PublishedAssessmentIfc pub)
    
public  voidsaveItemGrading(ItemGradingIfc item)
    
public  LongsaveMedia(byte[] media, String mimeType)
    
public  LongsaveMedia(MediaData mediaData)
    
public  voidsaveOrUpdateAll(Collection c)
    
public  voidsaveOrUpdateAssessmentGrading(AssessmentGradingIfc assessment)
    
public  voidsaveOrUpdateAssessmentGradingOnly(AssessmentGradingIfc assessment)
    
public  voidsaveStudentGradingSummaryData(StudentGradingSummaryIfc studentGradingSummaryData)
    
public  voidsaveTotalScores(ArrayList gdataList, PublishedAssessmentIfc pub)
    
public  voidstoreGrades(AssessmentGradingIfc data, PublishedAssessmentIfc pub, HashMap publishedItemHash, HashMap publishedItemTextHash, HashMap publishedAnswerHash)
     Assume this is a new item.
public  voidstoreGrades(AssessmentGradingIfc data, PublishedAssessmentIfc pub, HashMap publishedItemHash, HashMap publishedItemTextHash, HashMap publishedAnswerHash, boolean persistToDB)
     Assume this is a new item.
public  voidstoreGrades(AssessmentGradingIfc data, boolean regrade, PublishedAssessmentIfc pub, HashMap publishedItemHash, HashMap publishedItemTextHash, HashMap publishedAnswerHash, boolean persistToDB)
     This is the big, complicated mess where we take all the items in an assessment, store the grading data, auto-grade it, and update everything. If regrade is true, we just recalculate the graded score.
public  voidupdateAssessmentGradingScore(AssessmentGradingIfc adata, PublishedAssessmentIfc pub)
    
public  voidupdateItemScore(ItemGradingData gdata, float scoreDifference, PublishedAssessmentIfc pub)
    



Method Detail
deleteAll
public void deleteAll(Collection c)(Code)



fibmatch
public boolean fibmatch(String answer, String input, boolean casesensitive)(Code)



getActualNumberRetake
public int getActualNumberRetake(Long publishedAssessmentId, String agentIdString)(Code)



getAllAssessmentGradingByAgentId
public List getAllAssessmentGradingByAgentId(Long publishedAssessmentId, String agentIdString)(Code)



getAllSubmissions
public List getAllSubmissions(String publishedId)(Code)
Get all submissions for a published assessment from the back end.



getAnswerScore
public float getAnswerScore(ItemGradingIfc data, HashMap publishedAnswerHash)(Code)
This grades multiple choice and true false questions. Since multiple choice/multiple select has a separate ItemGradingIfc for each choice, they're graded the same way the single choice are. Choices should be given negative score values if one wants them to lose points for the wrong choice.



getAssessmentGradingByItemGradingId
public HashMap getAssessmentGradingByItemGradingId(String publishedAssessmentId)(Code)



getAssessmentGradingIds
public List getAssessmentGradingIds(String publishedItemId)(Code)



getFIBResult
public boolean getFIBResult(ItemGradingIfc data, HashMap fibmap, ItemDataIfc itemdata, HashMap publishedAnswerHash)(Code)



getFIBScore
public float getFIBScore(ItemGradingIfc data, HashMap fibmap, ItemDataIfc itemdata, HashMap publishedAnswerHash)(Code)
This grades Fill In Blank questions. (see SAK-1685) There will be two valid cases for scoring when there are multiple fill in blanks in a question: Case 1- There are different sets of answers (a set can contain one or more item) for each blank (e.g. The {dog|coyote|wolf} howls and the {lion|cougar} roars.) In this case each blank is tested for correctness independently. Case 2-There is the same set of answers for each blank: e.g. The flag of the US is {red|white|blue},{red|white|blue}, and {red|white|blue}. These are the only two valid types of questions. When authoring, it is an ERROR to include: (1) a mixture of independent answer and common answer blanks (e.g. The {dog|coyote|wolf} howls at the {red|white|blue}, {red|white|blue}, and {red|white|blue} flag.) (2) more than one set of blanks with a common answer ((e.g. The US flag is {red|white|blue}, {red|white|blue}, and {red|white|blue} and the Italian flag is {red|white|greem}, {red|white|greem}, and {red|white|greem}.) These two invalid questions specifications should be authored as two separate questions. Here are the definition and 12 cases I came up with (lydia, 01/2006): single answers : roses are {red} and vilets are {blue} multiple answers : {dogs|cats} have 4 legs multiple answers , mutually exclusive, all answers must be identical, can be in diff. orders : US flag has {red|blue|white} and {red |white|blue} and {blue|red|white} colors multiple answers , mutually non-exclusive : {dogs|cats} have 4 legs and {dogs|cats} can be pets. wildcard uses * to mean one of more characters -. wildcard single answer, case sensitive -. wildcard single answer, case insensitive -. single answer, no wildcard , case sensitive -. single answer, no wildcard , case insensitive -. multiple answer, mutually non-exclusive, no wildcard , case sensitive -. multiple answer, mutually non-exclusive, no wildcard , case in sensitive -. multiple answer, mutually non-exclusive, wildcard , case sensitive -. multiple answer, mutually non-exclusive, wildcard , case insensitive -. multiple answer, mutually exclusive, no wildcard , case sensitive -. multiple answer, mutually exclusive, no wildcard , case in sensitive -. multiple answer, mutually exclusive, wildcard , case sensitive -. multiple answer, mutually exclusive, wildcard , case insensitive



getFINResult
public boolean getFINResult(ItemGradingIfc data, ItemDataIfc itemdata, HashMap publishedAnswerHash)(Code)



getFINScore
public float getFINScore(ItemGradingIfc data, ItemDataIfc itemdata, HashMap publishedAnswerHash)(Code)



getHighestAssessmentGrading
public AssessmentGradingIfc getHighestAssessmentGrading(String publishedAssessmentId, String agentId)(Code)



getHighestAssessmentGradingList
public ArrayList getHighestAssessmentGradingList(Long publishedId)(Code)



getHighestSubmittedAssessmentGrading
public AssessmentGradingIfc getHighestSubmittedAssessmentGrading(String publishedAssessmentId, String agentId)(Code)



getHighestSubmittedAssessmentGradingList
public List getHighestSubmittedAssessmentGradingList(Long publishedId)(Code)



getItemGrading
public ItemGradingData getItemGrading(String itemGradingId)(Code)



getItemGradingData
public ItemGradingData getItemGradingData(String assessmentGradingId, String publishedItemId)(Code)



getItemGradingIds
public List getItemGradingIds(Long assessmentGradingId)(Code)



getItemGradingSet
public Set getItemGradingSet(String assessmentGradingId)(Code)



getItemScores
public HashMap getItemScores(Long publishedId, Long itemId, String which)(Code)
Get the score information for each item from the assessment score.



getItemSet
public HashSet getItemSet(Long publishedAssessmentId, Long sectionId)(Code)



getLastAssessmentGradingByAgentId
public AssessmentGradingIfc getLastAssessmentGradingByAgentId(String publishedAssessmentId, String agentIdString)(Code)



getLastAssessmentGradingList
public ArrayList getLastAssessmentGradingList(Long publishedId)(Code)



getLastItemGradingData
public HashMap getLastItemGradingData(String publishedId, String agentId)(Code)
Get the last set of itemgradingdata for a student per assessment



getLastItemGradingDataByAgent
public ItemGradingData getLastItemGradingDataByAgent(String publishedItemId, String agentId)(Code)



getLastItemGradingDataPosition
public ArrayList getLastItemGradingDataPosition(Long assessmentGradingId, String agentId)(Code)



getLastSavedAssessmentGradingByAgentId
public AssessmentGradingData getLastSavedAssessmentGradingByAgentId(String publishedAssessmentId, String agentIdString)(Code)



getLastSubmittedAssessmentGradingByAgentId
public AssessmentGradingData getLastSubmittedAssessmentGradingByAgentId(String publishedAssessmentId, String agentIdString)(Code)



getLastSubmittedAssessmentGradingList
public List getLastSubmittedAssessmentGradingList(Long publishedId)(Code)



getLateSubmissionsNumberByAgentId
public int getLateSubmissionsNumberByAgentId(Long publishedAssessmentId, String agentIdString, Date dueDate)(Code)



getMedia
public MediaData getMedia(String mediaId)(Code)



getMediaArray
public ArrayList getMediaArray(String itemGradingId)(Code)



getMediaArray
public ArrayList getMediaArray(ItemGradingData i)(Code)



getMediaArray
public List getMediaArray(String publishedId, String publishItemId, String which)(Code)



getNumberRetake
public int getNumberRetake(Long publishedAssessmentId, String agentIdString)(Code)



getPublishedAssessmentByAssessmentGradingId
public PublishedAssessmentIfc getPublishedAssessmentByAssessmentGradingId(String id)(Code)



getPublishedAssessmentByPublishedItemId
public PublishedAssessmentIfc getPublishedAssessmentByPublishedItemId(String publishedItemId)(Code)



getScoringType
public Integer getScoringType(PublishedAssessmentIfc pub)(Code)



getStudentGradingData
public HashMap getStudentGradingData(String assessmentGradingId)(Code)
Get the grading data for a given submission



getStudentGradingSummaryData
public List getStudentGradingSummaryData(Long publishedAssessmentId, String agentIdString)(Code)



getSubmissionSizeOfAllPublishedAssessments
public HashMap getSubmissionSizeOfAllPublishedAssessments()(Code)



getSubmissionSizeOfPublishedAssessment
public int getSubmissionSizeOfPublishedAssessment(String publishedAssessmentId)(Code)



getSubmitData
public HashMap getSubmitData(String publishedId, String agentId, Integer scoringoption)(Code)
Get the last submission for a student per assessment



getTextForId
public String getTextForId(Long typeId)(Code)



getTotalCorrectScore
public float getTotalCorrectScore(ItemGradingIfc data, HashMap publishedAnswerHash)(Code)



getTotalScores
public ArrayList getTotalScores(String publishedId, String which)(Code)
Get all scores for a published assessment from the back end.



getTypeId
public Long getTypeId(Long itemGradingId)(Code)



load
public AssessmentGradingData load(String assessmentGradingId)(Code)



notifyGradebook
public void notifyGradebook(AssessmentGradingIfc data, PublishedAssessmentIfc pub) throws GradebookServiceException(Code)



saveItemGrading
public void saveItemGrading(ItemGradingIfc item)(Code)



saveMedia
public Long saveMedia(byte[] media, String mimeType)(Code)



saveMedia
public Long saveMedia(MediaData mediaData)(Code)



saveOrUpdateAll
public void saveOrUpdateAll(Collection c)(Code)



saveOrUpdateAssessmentGrading
public void saveOrUpdateAssessmentGrading(AssessmentGradingIfc assessment)(Code)



saveOrUpdateAssessmentGradingOnly
public void saveOrUpdateAssessmentGradingOnly(AssessmentGradingIfc assessment)(Code)



saveStudentGradingSummaryData
public void saveStudentGradingSummaryData(StudentGradingSummaryIfc studentGradingSummaryData)(Code)



saveTotalScores
public void saveTotalScores(ArrayList gdataList, PublishedAssessmentIfc pub)(Code)



storeGrades
public void storeGrades(AssessmentGradingIfc data, PublishedAssessmentIfc pub, HashMap publishedItemHash, HashMap publishedItemTextHash, HashMap publishedAnswerHash)(Code)
Assume this is a new item.



storeGrades
public void storeGrades(AssessmentGradingIfc data, PublishedAssessmentIfc pub, HashMap publishedItemHash, HashMap publishedItemTextHash, HashMap publishedAnswerHash, boolean persistToDB)(Code)
Assume this is a new item.



storeGrades
public void storeGrades(AssessmentGradingIfc data, boolean regrade, PublishedAssessmentIfc pub, HashMap publishedItemHash, HashMap publishedItemTextHash, HashMap publishedAnswerHash, boolean persistToDB) throws GradebookServiceException(Code)
This is the big, complicated mess where we take all the items in an assessment, store the grading data, auto-grade it, and update everything. If regrade is true, we just recalculate the graded score. If it's false, we do everything from scratch.



updateAssessmentGradingScore
public void updateAssessmentGradingScore(AssessmentGradingIfc adata, PublishedAssessmentIfc pub)(Code)



updateItemScore
public void updateItemScore(ItemGradingData gdata, float scoreDifference, PublishedAssessmentIfc pub)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.