org.sakaiproject.tool.gradebook
Class GradingScale

java.lang.Object
  extended by org.sakaiproject.tool.gradebook.GradingScale
All Implemented Interfaces:
Serializable, Comparable

public class GradingScale
extends Object
implements Serializable, Comparable

See Also:
Serialized Form

Constructor Summary
GradingScale()
           
 
Method Summary
 int compareTo(Object o)
           
 Map<String,Double> getDefaultBottomPercents()
           
 List<String> getGrades()
          Because the Gradebook now supports non-calculated manual-only grades with no percentage equivalent, it is possible for the list of grades to include codes that are not included in the defaultBottomPercents map.
 Long getId()
           
 String getName()
           
 String getUid()
           
 int getVersion()
           
 boolean isUnavailable()
           
 void setDefaultBottomPercents(Map<String,Double> defaultBottomPercents)
           
 void setGrades(List<String> grades)
           
 void setId(Long id)
           
 void setName(String name)
           
 void setUid(String uid)
           
 void setUnavailable(boolean unavailable)
           
 void setVersion(int version)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GradingScale

public GradingScale()
Method Detail

getDefaultBottomPercents

public Map<String,Double> getDefaultBottomPercents()

setDefaultBottomPercents

public void setDefaultBottomPercents(Map<String,Double> defaultBottomPercents)

getUid

public String getUid()

setUid

public void setUid(String uid)

getName

public String getName()

setName

public void setName(String name)

getGrades

public List<String> getGrades()
Because the Gradebook now supports non-calculated manual-only grades with no percentage equivalent, it is possible for the list of grades to include codes that are not included in the defaultBottomPercents map. In other words, callers shouldn't expect getDefaultBottomPercents.keySet() to be equivalent to this list.

Returns:
list of supported grade codes, ordered from highest to lowest

setGrades

public void setGrades(List<String> grades)

isUnavailable

public boolean isUnavailable()

setUnavailable

public void setUnavailable(boolean unavailable)

getId

public Long getId()

setId

public void setId(Long id)

getVersion

public int getVersion()

setVersion

public void setVersion(int version)

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Sakai Project. All Rights Reserved.