01: /**********************************************************************************
02: *
03: * $Id: LetterGradePlusMinusMapping.java 9202 2006-05-09 20:57:37Z ray@media.berkeley.edu $
04: *
05: ***********************************************************************************
06: *
07: * Copyright (c) 2005 The Regents of the University of California, The MIT Corporation
08: *
09: * Licensed under the Educational Community License Version 1.0 (the "License");
10: * By obtaining, using and/or copying this Original Work, you agree that you have read,
11: * understand, and will comply with the terms and conditions of the Educational Community License.
12: * You may obtain a copy of the License at:
13: *
14: * http:cvs.sakaiproject.org/licenses/license_1_0.html
15: *
16: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
17: * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
18: * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
19: * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20: * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21: *
22: **********************************************************************************/package org.sakaiproject.tool.gradebook;
23:
24: import java.util.*;
25:
26: /**
27: * A LetterGradePlusMinusMapping defines the set of grades available to a
28: * gradebook as "A+", "A", "A-", "B+", "B", "B-", "C+", "C", "C-", "D+", "D",
29: * "D-", and "F", each of which can be mapped to a minimum percentage value.
30: *
31: * @deprecated
32: */
33: public class LetterGradePlusMinusMapping extends GradeMapping {
34: private List grades;
35: private List defaultValues;
36:
37: public Collection getGrades() {
38: return grades;
39: }
40:
41: public List getDefaultValues() {
42: return defaultValues;
43: }
44:
45: public LetterGradePlusMinusMapping() {
46: setGradeMap(new LinkedHashMap());
47:
48: grades = new ArrayList();
49: grades.add("A+");
50: grades.add("A");
51: grades.add("A-");
52: grades.add("B+");
53: grades.add("B");
54: grades.add("B-");
55: grades.add("C+");
56: grades.add("C");
57: grades.add("C-");
58: grades.add("D+");
59: grades.add("D");
60: grades.add("D-");
61: grades.add("F");
62:
63: defaultValues = new ArrayList();
64: defaultValues.add(new Double(100));
65: defaultValues.add(new Double(95));
66: defaultValues.add(new Double(90));
67: defaultValues.add(new Double(87));
68: defaultValues.add(new Double(83));
69: defaultValues.add(new Double(80));
70: defaultValues.add(new Double(77));
71: defaultValues.add(new Double(73));
72: defaultValues.add(new Double(70));
73: defaultValues.add(new Double(67));
74: defaultValues.add(new Double(63));
75: defaultValues.add(new Double(60));
76: defaultValues.add(new Double(00));
77: }
78:
79: /**
80: * @see org.sakaiproject.tool.gradebook.GradeMapping#getName()
81: */
82: public String getName() {
83: return "Letter Grades with +/-";
84: }
85:
86: }
|