/********************************************************************************** * * $Id: LetterGradePlusMinusMapping.java 9202 2006-05-09 20:57:37Z ray@media.berkeley.edu $ * *********************************************************************************** * * Copyright (c) 2005 The Regents of the University of California, The MIT Corporation * * Licensed under the Educational Community License Version 1.0 (the "License"); * By obtaining, using and/or copying this Original Work, you agree that you have read, * understand, and will comply with the terms and conditions of the Educational Community License. * You may obtain a copy of the License at: * * http:cvs.sakaiproject.org/licenses/license_1_0.html * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * **********************************************************************************/ package org.sakaiproject.tool.gradebook; import java.util.*; import org.sakaiproject.util.ResourceLoader; /** * A LetterGradePlusMinusMapping defines the set of grades available to a * gradebook as "A+", "A", "A-", "B+", "B", "B-", "C+", "C", "C-", "D+", "D", * "D-", and "F", each of which can be mapped to a minimum percentage value. * * @deprecated */ public class LetterGradePlusMinusMapping extends GradeMapping { private ResourceLoader rl = new ResourceLoader("org.sakaiproject.tool.gradebook.bundle.Messages"); private List grades; private List defaultValues; public Collection getGrades() { return grades; } public List getDefaultValues() { return defaultValues; } public LetterGradePlusMinusMapping() { setGradeMap(new LinkedHashMap()); grades = new ArrayList(); grades.add("A+"); grades.add("A"); grades.add("A-"); grades.add("B+"); grades.add("B"); grades.add("B-"); grades.add("C+"); grades.add("C"); grades.add("C-"); grades.add("D+"); grades.add("D"); grades.add("D-"); grades.add("F"); defaultValues = new ArrayList(); defaultValues.add(new Double(100)); defaultValues.add(new Double(95)); defaultValues.add(new Double(90)); defaultValues.add(new Double(87)); defaultValues.add(new Double(83)); defaultValues.add(new Double(80)); defaultValues.add(new Double(77)); defaultValues.add(new Double(73)); defaultValues.add(new Double(70)); defaultValues.add(new Double(67)); defaultValues.add(new Double(63)); defaultValues.add(new Double(60)); defaultValues.add(new Double(00)); } /** * @see org.sakaiproject.tool.gradebook.GradeMapping#getName() */ public String getName() { return rl.getString("grademapping_plusminus"); } }