Objects¶
Grade¶
-
class
dlkit.grading.objects.
Grade
¶ Bases:
dlkit.osid.objects.OsidObject
,dlkit.osid.markers.Subjugateable
A
Grade
.Grades represent qualified performance levels defined within some grading system.
-
grade_system_id
¶ Gets the
GradeSystem Id
in which this grade belongs.Returns: the grade system Id
Return type: osid.id.Id
compliance: mandatory – This method must be implemented.
-
grade_system
¶ Gets the
GradeSystem
in which this grade belongs.Returns: the grade system Return type: osid.grading.GradeSystem
compliance: mandatory – This method must be implemented.
-
input_score_start_range
¶ Gets the low end of the input score range equivalent to this grade.
Returns: the start range Return type: decimal
compliance: mandatory – This method must be implemented.
-
input_score_end_range
¶ Gets the high end of the input score range equivalent to this grade.
Returns: the end range Return type: decimal
compliance: mandatory – This method must be implemented.
-
output_score
¶ Gets the output score for this grade used for calculating cumultives or performing articulation.
Returns: the output score Return type: decimal
compliance: mandatory – This method must be implemented.
-
get_grade_record
(grade_record_type)¶ Gets the grade record corresponding to the given
Grade
recordType
.This method is used to retrieve an object implementing the requested record. The
grade_record_type
may be theType
returned inget_record_types()
or any of its parents in aType
hierarchy wherehas_record_type(grade_record_type)
istrue
.Parameters: grade_record_type ( osid.type.Type
) – the type of the record to retrieveReturns: the grade record Return type: osid.grading.records.GradeRecord
Raise: NullArgument
–grade_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(grade_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Grade Form¶
-
class
dlkit.grading.objects.
GradeForm
¶ Bases:
dlkit.osid.objects.OsidObjectForm
,dlkit.osid.objects.OsidSubjugateableForm
This is the form for creating and updating
Grades
.Like all
OsidForm
objects, various data elements may be set here for use in the create and update methods in theGradeAdminSession
. For each data element that may be set, metadata may be examined to provide display hints or data constraints.-
input_score_start_range_metadata
¶ Gets the metadata for the input score start range.
Returns: metadata for the input score start range Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
-
input_score_start_range
¶
-
input_score_end_range_metadata
¶ Gets the metadata for the input score start range.
Returns: metadata for the input score start range Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
-
input_score_end_range
¶
-
output_score_metadata
¶ Gets the metadata for the output score start range.
Returns: metadata for the output score start range Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
-
output_score
¶
-
get_grade_form_record
(grade_record_type)¶ Gets the
GradeFormRecord
corresponding to the given grade recordType
.Parameters: grade_record_type ( osid.type.Type
) – the grade record typeReturns: the grade form record Return type: osid.grading.records.GradeFormRecord
Raise: NullArgument
–grade_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(grade_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Grade List¶
-
class
dlkit.grading.objects.
GradeList
¶ Bases:
dlkit.osid.objects.OsidList
Like all
OsidLists,
GradeList
provides a means for accessingGrade
elements sequentially either one at a time or many at a time.Examples: while (gl.hasNext()) { Grade grade = gl.getNextGrade(); }
- or
- while (gl.hasNext()) {
- Grade[] grades = gl.getNextGrades(gl.available());
}
-
next_grade
¶ Gets the next
Grade
in this list.Returns: the next Grade
in this list. Thehas_next()
method should be used to test that a nextGrade
is available before calling this method.Return type: osid.grading.Grade
Raise: IllegalState
– no more elements available in this listRaise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_grades
(n)¶ Gets the next set of
Grade
elements in this list which must be less than or equal to the return fromavailable()
.Parameters: n ( cardinal
) – the number ofGrade
elements requested which must be less than or equal toavailable()
Returns: an array of Grade
elements.The length of the array is less than or equal to the number specified.Return type: osid.grading.Grade
Raise: IllegalState
– no more elements available in this listRaise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
Grade System¶
-
class
dlkit.grading.objects.
GradeSystem
¶ Bases:
dlkit.osid.objects.OsidObject
,dlkit.osid.markers.Aggregateable
A
GradeSystem
represents a grading system.The system can be based on assigned Grades or based on a numeric scale.
-
is_based_on_grades
()¶ Tests if the grading system is based on grades.
Returns: true if the grading system is based on grades, false
if the system is a numeric scoreReturn type: boolean
compliance: mandatory – This method must be implemented.
-
grade_ids
¶ Gets the grade
Ids
in this system ranked from highest to lowest.Returns: the list of grades Ids
Return type: osid.id.IdList
Raise: IllegalState
–is_based_on_grades()
isfalse
compliance: mandatory – This method must be implemented.
-
grades
¶ Gets the grades in this system ranked from highest to lowest.
Returns: the list of grades Return type: osid.grading.GradeList
Raise: IllegalState
–is_based_on_grades()
isfalse
Raise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
-
lowest_numeric_score
¶ Gets the lowest number in a numeric grading system.
Returns: the lowest number Return type: decimal
Raise: IllegalState
–is_based_on_grades()
istrue
compliance: mandatory – This method must be implemented.
-
numeric_score_increment
¶ Gets the incremental step.
Returns: the increment Return type: decimal
Raise: IllegalState
–is_based_on_grades()
istrue
compliance: mandatory – This method must be implemented.
-
highest_numeric_score
¶ Gets the highest number in a numeric grading system.
Returns: the highest number Return type: decimal
Raise: IllegalState
–is_based_on_grades()
istrue
compliance: mandatory – This method must be implemented.
-
get_grade_system_record
(grade_system_record_type)¶ Gets the grade system record corresponding to the given
GradeSystem
recordType
.This method is used to retrieve an object implementing the requested record. The
grade_system_record_type
may be theType
returned inget_record_types()
or any of its parents in aType
hierarchy wherehas_record_type(grade_system_record_type)
istrue
.Parameters: grade_system_record_type ( osid.type.Type
) – the type of the record to retrieveReturns: the grade system record Return type: osid.grading.records.GradeSystemRecord
Raise: NullArgument
–grade_system_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(grade_system_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Grade System Form¶
-
class
dlkit.grading.objects.
GradeSystemForm
¶ Bases:
dlkit.osid.objects.OsidObjectForm
,dlkit.osid.objects.OsidAggregateableForm
This is the form for creating and updating
GradeSystems
.Like all
OsidForm
objects, various data elements may be set here for use in the create and update methods in theGradeSystemAdminSession
. For each data element that may be set, metadata may be examined to provide display hints or data constraints.-
based_on_grades_metadata
¶ Gets the metadata for a grade-based designation.
Returns: metadata for the grade-based designation Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
-
based_on_grades
¶
-
lowest_numeric_score_metadata
¶ Gets the metadata for the lowest numeric score.
Returns: metadata for the lowest numeric score Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
-
lowest_numeric_score
¶
-
numeric_score_increment_metadata
¶ Gets the metadata for the lowest numeric score.
Returns: metadata for the lowest numeric score Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
-
numeric_score_increment
¶
-
highest_numeric_score_metadata
¶ Gets the metadata for the highest numeric score.
Returns: metadata for the highest numeric score Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
-
highest_numeric_score
¶
-
get_grade_system_form_record
(grade_system_record_type)¶ Gets the
GradeSystemFormRecord
corresponding to the given grade system recordType
.Parameters: grade_system_record_type ( osid.type.Type
) – the grade system record typeReturns: the grade system form record Return type: osid.grading.records.GradeSystemFormRecord
Raise: NullArgument
–grade_system_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(grade_system_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Grade System List¶
-
class
dlkit.grading.objects.
GradeSystemList
¶ Bases:
dlkit.osid.objects.OsidList
Like all
OsidLists,
GradeSystemList
provides a means for accessingGradeSystem
elements sequentially either one at a time or many at a time.Examples: while (gsl.hasNext()) { GradeSystem system = gsl.getNextGradeSystem(); }
- or
- while (gsl.hasNext()) {
- GradeSystem[] systems = gsl.getNextGradeSystems(gsl.available());
}
-
next_grade_system
¶ Gets the next
GradeSystem
in this list.Returns: the next GradeSystem
in this list. Thehas_next()
method should be used to test that a nextGradeSystem
is available before calling this method.Return type: osid.grading.GradeSystem
Raise: IllegalState
– no more elements available in this listRaise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_grade_systems
(n)¶ Gets the next set of
GradeSystem
elements in this list which must be less than or equal to the return fromavailable()
.Parameters: n ( cardinal
) – the number ofGradeSystem
elements requested which must be less than or equal toavailable()
Returns: an array of GradeSystem
elements.The length of the array is less than or equal to the number specified.Return type: osid.grading.GradeSystem
Raise: IllegalState
– no more elements available in this listRaise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
Grade Entry¶
-
class
dlkit.grading.objects.
GradeEntry
¶ Bases:
dlkit.osid.objects.OsidRelationship
A
GradeEntry
represents an entry in aGradebook
.-
gradebook_column_id
¶ Gets the
Id
of theGradebookColumn
.Returns: the Id
of theGradebookColumn
Return type: osid.id.Id
compliance: mandatory – This method must be implemented.
-
gradebook_column
¶ Gets the
GradebookColumn
.Returns: the GradebookColumn
Return type: osid.grading.GradebookColumn
Raise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
-
key_resource_id
¶ Gets the
Id
of the key resource of this entry.The key resource may be a student or other applicable key to identify a row of grading entries.
Returns: Id
of the key resourceReturn type: osid.id.Id
compliance: mandatory – This method must be implemented.
-
key_resource
¶ Gets the key resource of this entry.
The key resource may be a student or other applicable key to identify a row of grading entries.
Returns: the key resource Return type: osid.resource.Resource
Raise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
-
is_derived
()¶ Tests if this is a calculated entry.
Returns: true
if this entry is a calculated entry,false
otherwise. Iftrue,
thenoverrides_calculated_entry()
must befalse
.Return type: boolean
compliance: mandatory – This method must be implemented.
-
overrides_calculated_entry
()¶ Tests if this is a manual entry that overrides a calculated entry.
Returns: true
if this entry overrides a calculated entry,false
otherwise. Iftrue,
thenis_derived()
must befalse
.Return type: boolean
compliance: mandatory – This method must be implemented.
-
overridden_calculated_entry_id
¶ Gets the calculated entry
Id
this entry overrides.Returns: the calculated entry Id
Return type: osid.id.Id
Raise: IllegalState
–overrides_derived_entry()
isfalse
compliance: mandatory – This method must be implemented.
-
overridden_calculated_entry
¶ Gets the calculated entry this entry overrides.
Returns: the calculated entry Return type: osid.grading.GradeEntry
Raise: IllegalState
–overrides_calculated_entry()
isfalse
Raise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
-
is_ignored_for_calculations
()¶ Tests if this is entry should be ignored in any averaging, scaling or curve calculation.
Returns: true
if this entry is ignored,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
is_graded
()¶ Tests if a grade or score has been assigned to this entry.
Generally, an entry is created with a grade or score.
Returns: true
if a grade has been assigned,false
otherwiseReturn type: boolean
compliance: mandatory – This method must be implemented.
-
grade_id
¶ Gets the grade
Id
in this entry if the grading system is based on grades.Returns: the grade Id
Return type: osid.id.Id
Raise: IllegalState
–is_graded()
isfalse
orGradeSystem.isBasedOnGrades()
isfalse
compliance: mandatory – This method must be implemented.
-
grade
¶ Gets the grade in this entry if the grading system is based on grades.
Returns: the grade Return type: osid.grading.Grade
Raise: IllegalState
–is_graded()
isfalse
orGradeSystem.isBasedOnGrades()
isfalse
Raise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
-
score
¶ Gets the score in this entry if the grading system is not based on grades.
Returns: the score Return type: decimal
Raise: IllegalState
–is_graded()
isfalse
orGradeSystem.isBasedOnGrades()
istrue
compliance: mandatory – This method must be implemented.
-
time_graded
¶ Gets the time the gradeable object was graded.
Returns: the timestamp of the grading entry Return type: osid.calendaring.DateTime
Raise: IllegalState
–is_graded()
isfalse
oris_derived()
istrue
compliance: mandatory – This method must be implemented.
-
grader_id
¶ Gets the
Id
of theResource
that created this entry.Returns: the Id
of theResource
Return type: osid.id.Id
Raise: IllegalState
–is_graded()
isfalse
oris_derived()
istrue
compliance: mandatory – This method must be implemented.
-
grader
¶ Gets the
Resource
that created this entry.Returns: the Resource
Return type: osid.resource.Resource
Raise: IllegalState
–is_graded() is false or is_derived() is true
Raise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
-
grading_agent_id
¶ Gets the
Id
of theAgent
that created this entry.Returns: the Id
of theAgent
Return type: osid.id.Id
Raise: IllegalState
–is_graded()
isfalse
oris_derived()
istrue
compliance: mandatory – This method must be implemented.
-
grading_agent
¶ Gets the
Agent
that created this entry.Returns: the Agent
Return type: osid.authentication.Agent
Raise: IllegalState
–is_graded() is false or is_derived() is true
Raise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_grade_entry_record
(grade_entry_record_type)¶ Gets the grade entry record corresponding to the given
GradeEntry
recordType
.This method is used to retrieve an object implementing the requested record. The
grade_entry_record_type
may be theType
returned inget_record_types()
or any of its parents in aType
hierarchy wherehas_record_type(grade_entry_record_type)
istrue
.Parameters: grade_entry_record_type ( osid.type.Type
) – the type of the record to retrieveReturns: the grade entry record Return type: osid.grading.records.GradeEntryRecord
Raise: NullArgument
–grade_entry_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(grade_entry_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Grade Entry Form¶
-
class
dlkit.grading.objects.
GradeEntryForm
¶ Bases:
dlkit.osid.objects.OsidRelationshipForm
This is the form for creating and updating
GradeEntries
.Like all
OsidForm
objects, various data elements may be set here for use in the create and update methods in theGradeEntryAdminSession
. For each data element that may be set, metadata may be examined to provide display hints or data constraints.-
ignored_for_calculations_metadata
¶ Gets the metadata for the ignore flag.
Returns: metadata for the ignore flag Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
-
ignored_for_calculations
¶
-
grade_metadata
¶ Gets the metadata for a grade.
Returns: metadata for the grade Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
-
grade
¶
-
score_metadata
¶ Gets the metadata for a score.
Returns: metadata for the score Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
-
score
¶
-
get_grade_entry_form_record
(grade_entry_record_type)¶ Gets the
GradeEntryFormRecord
corresponding to the given grade entry recordType
.Parameters: grade_entry_record_type ( osid.type.Type
) – the grade entry record typeReturns: the grade entry form record Return type: osid.grading.records.GradeEntryFormRecord
Raise: NullArgument
–grade_entry_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(grade_entry_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Grade Entry List¶
-
class
dlkit.grading.objects.
GradeEntryList
¶ Bases:
dlkit.osid.objects.OsidList
Like all
OsidLists,
GradeEntryList
provides a means for accessingGradeEntry
elements sequentially either one at a time or many at a time.Examples: while (gel.hasNext()) { GradeEntry entry = gel.getNextGradeEntry(); }
- or
- while (gel.hasNext()) {
- GradeEntry[] entries = gel.getNextGradeEntries(gel.available());
}
-
next_grade_entry
¶ Gets the next
GradeEntry
in this list.Returns: the next GradeEntry
in this list. Thehas_next()
method should be used to test that a nextGradeEntry
is available before calling this method.Return type: osid.grading.GradeEntry
Raise: IllegalState
– no more elements available in this listRaise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_grade_entries
(n)¶ Gets the next set of
GradeEntry
elements in this list which must be less than or equal to the number returned fromavailable()
.Parameters: n ( cardinal
) – the number ofGradeEntry
elements requested which should be less than or equal toavailable()
Returns: an array of GradeEntry
elements.The length of the array is less than or equal to the number specified.Return type: osid.grading.GradeEntry
Raise: IllegalState
– no more elements available in this listRaise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
Gradebook Column¶
-
class
dlkit.grading.objects.
GradebookColumn
¶ Bases:
dlkit.osid.objects.OsidObject
A
GradebookColumn
represents a series of grade entries in a gradebook.Each GradeEntry in a column share the same
GradeSystem
.-
grade_system_id
¶ Gets the
GradeSystem Id
in which this grade belongs.Returns: the grade system Id
Return type: osid.id.Id
compliance: mandatory – This method must be implemented.
-
grade_system
¶ Gets the
GradeSystem
in which this grade belongs.Returns: the package grade system Return type: osid.grading.GradeSystem
Raise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_gradebook_column_record
(gradebook_column_record_type)¶ Gets the gradebook column record corresponding to the given
GradeBookColumn
recordType
.This method ie used to retrieve an object implementing the requested record. The
gradebook_column_record_type
may be theType
returned inget_record_types()
or any of its parents in aType
hierarchy wherehas_record_type(gradebook_column_record_type)
istrue
.Parameters: gradebook_column_record_type ( osid.type.Type
) – the type of the record to retrieveReturns: the gradebook column record Return type: osid.grading.records.GradebookColumnRecord
Raise: NullArgument
–gradebook_column_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(gradebook_column_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Gradebook Column Form¶
-
class
dlkit.grading.objects.
GradebookColumnForm
¶ Bases:
dlkit.osid.objects.OsidObjectForm
This is the form for creating and updating
GradebookColumns
.Like all
OsidForm
objects, various data elements may be set here for use in the create and update methods in theGradebookAdminSession
. For each data element that may be set, metadata may be examined to provide display hints or data constraints.-
grade_system_metadata
¶ Gets the metadata for a grade system.
Returns: metadata for the grade system Return type: osid.Metadata
compliance: mandatory – This method must be implemented.
-
grade_system
¶
-
get_gradebook_column_form_record
(gradebook_column_record_type)¶ Gets the
GradebookColumnFormRecord
corresponding to the given gradebook column recordType
.Parameters: gradebook_column_record_type ( osid.type.Type
) – a gradebook column record typeReturns: the gradebook column form record Return type: osid.grading.records.GradebookColumnFormRecord
Raise: NullArgument
–gradebook_column_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(gradebook_column_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Gradebook Column List¶
-
class
dlkit.grading.objects.
GradebookColumnList
¶ Bases:
dlkit.osid.objects.OsidList
Like all
OsidLists,
GradebookColumnList
provides a means for accessingGradebookColumn
elements sequentially either one at a time or many at a time.Examples: while (gcl.hasNext()) { GradebookColumn column = gcl.getNextGradebookColumn(); }
- or
- while (gcl.hasNext()) {
- GradebookColumn[] columns = gcl.getNextGradebookColumns(gcl.available());
}
-
next_gradebook_column
¶ Gets the next
GradebookColumn
in this list.Returns: the next GradebookColumn
in this list. Thehas_next()
method should be used to test that a nextGradebookColumn
is available before calling this method.Return type: osid.grading.GradebookColumn
Raise: IllegalState
– no more elements available in this listRaise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_gradebook_columns
(n)¶ Gets the next set of
GradebookColumn
elements in this list which must be less than or equal to the return fromavailable()
.Parameters: n ( cardinal
) – the number ofGradebookColumn
elements requested which must be less than or equal toavailable()
Returns: an array of GradebookColumn
elements.The length of the array is less than or equal to the number specified.Return type: osid.grading.GradebookColumn
Raise: IllegalState
– no more elements available in this listRaise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
Gradebook Column Summary¶
-
class
dlkit.grading.objects.
GradebookColumnSummary
¶ Bases:
dlkit.osid.objects.OsidObject
A
GradebookColumnSummary
is a summary of all entries within a gradebook column.-
gradebook_column_id
¶ Gets the
Id
of theGradebookColumn
.Returns: the Id
of theGradebookColumn
Return type: osid.id.Id
compliance: mandatory – This method must be implemented.
-
gradebook_column
¶ Gets the
GradebookColumn
.Returns: the GradebookColumn
Return type: osid.grading.GradebookColumn
Raise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
-
mean
¶ Gets the mean score.
If this system is based on grades, the mean output score is returned.
Returns: the mean score Return type: decimal
compliance: mandatory – This method must be implemented.
-
median
¶ Gets the median score.
If this system is based on grades, the mean output score is returned.
Returns: the median score Return type: decimal
compliance: mandatory – This method must be implemented.
-
mode
¶ Gets the mode of the score.
If this system is based on grades, the mode of the output score is returned.
Returns: the median score Return type: decimal
compliance: mandatory – This method must be implemented.
-
rms
¶ Gets the root mean square of the score.
If this system is based on grades, the RMS of the output score is returned.
Returns: the median score Return type: decimal
compliance: mandatory – This method must be implemented.
-
standard_deviation
¶ Gets the standard deviation.
If this system is based on grades, the spread of the output scores is returned.
Returns: the standard deviation Return type: decimal
compliance: mandatory – This method must be implemented.
-
sum
¶ Gets the sum of the scores.
If this system is based on grades, the sum of the output scores is returned.
Returns: the median score Return type: decimal
compliance: mandatory – This method must be implemented.
-
get_gradebook_column_summary_record
(gradebook_column_summary_record_type)¶ Gets the gradebook column summary record corresponding to the given
GradebookColumnSummary
recordType
.This method is used to retrieve an object implementing the requested record. The
gradebook_column_summary_record_type
may be theType
returned inget_record_types()
or any of its parents in aType
hierarchy wherehas_record_type(gradebook_column_summary_record_type)
istrue
.Parameters: gradebook_column_summary_record_type ( osid.type.Type
) – the type of the record to retrieveReturns: the gradebook column summary record Return type: osid.grading.records.GradebookColumnSummaryRecord
Raise: NullArgument
–gradebook_column_summary_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(gradebook_column_summary_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Gradebook¶
-
class
dlkit.grading.objects.
Gradebook
(abc_grading_objects.Gradebook, osid_objects.OsidCatalog)¶ -
:noindex:
-
get_gradebook_record
(gradebook_record_type)¶ Gets the gradebook record corresponding to the given
Gradebook
recordType
.This method is used to retrieve an object implementing the requested record. The
gradebook_record_type
may be theType
returned inget_record_types()
or any of its parents in aType
hierarchy wherehas_record_type(gradebook_record_type)
istrue
.Parameters: gradebook_record_type ( osid.type.Type
) – a gradebook record typeReturns: the gradebook record Return type: osid.grading.records.GradebookRecord
Raise: NullArgument
–gradebook_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(gradebook_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Gradebook Form¶
-
class
dlkit.grading.objects.
GradebookForm
¶ Bases:
dlkit.osid.objects.OsidCatalogForm
This is the form for creating and updating
Gradebooks
.Like all
OsidForm
objects, various data elements may be set here for use in the create and update methods in theGradebookAdminSession
. For each data element that may be set, metadata may be examined to provide display hints or data constraints.-
get_gradebook_form_record
(gradebook_record_type)¶ Gets the
GradebookFormRecord
corresponding to the given gradebook recordType
.Parameters: gradebook_record_type ( osid.type.Type
) – a gradebook record typeReturns: the gradebook form record Return type: osid.grading.records.GradebookFormRecord
Raise: NullArgument
–gradebook_record_type
isnull
Raise: OperationFailed
– unable to complete requestRaise: Unsupported
–has_record_type(gradebook_record_type)
isfalse
compliance: mandatory – This method must be implemented.
-
Gradebook List¶
-
class
dlkit.grading.objects.
GradebookList
¶ Bases:
dlkit.osid.objects.OsidList
Like all
OsidLists,
GradebookList
provides a means for accessingGradebook
elements sequentially either one at a time or many at a time.Examples: while (gl.hasNext()) { Gradebook gradebook = gl.getNextGradebook(); }
- or
- while (gl.hasNext()) {
- Gradebook[] gradebooks = gl.getNextGradebooks(gl.available());
}
-
next_gradebook
¶ Gets the next
Gradebook
in this list.Returns: the next Gradebook
in this list. Thehas_next()
method should be used to test that a nextGradebook
is available before calling this method.Return type: osid.grading.Gradebook
Raise: IllegalState
– no more elements available in this listRaise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_gradebooks
(n)¶ Gets the next set of
Gradebook
elements in this list which must be less than or equal to the return fromavailable()
.Parameters: n ( cardinal
) – the number ofGradebook
elements requested which must be less than or equal toavailable()
Returns: an array of Gradebook
elements.The length of the array is less than or equal to the number specified.Return type: osid.grading.Gradebook
Raise: IllegalState
– no more elements available in this listRaise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
Gradebook Node¶
-
class
dlkit.grading.objects.
GradebookNode
¶ Bases:
dlkit.osid.objects.OsidNode
This interface is a container for a partial hierarchy retrieval.
The number of hierarchy levels traversable through this interface depend on the number of levels requested in the
GradebookHierarchySession
.-
gradebook
¶ Gets the
Gradebook
at this node.Returns: the gradebook represented by this node Return type: osid.grading.Gradebook
compliance: mandatory – This method must be implemented.
-
parent_gradebook_nodes
¶ Gets the parents of this gradebook.
Returns: the parents of the id
Return type: osid.grading.GradebookNodeList
compliance: mandatory – This method must be implemented.
-
child_gradebook_nodes
¶ Gets the children of this gradebook.
Returns: the children of this gradebook Return type: osid.grading.GradebookNodeList
compliance: mandatory – This method must be implemented.
-
Gradebook Node List¶
-
class
dlkit.grading.objects.
GradebookNodeList
¶ Bases:
dlkit.osid.objects.OsidList
Like all
OsidLists,
GradebookNodeList
provides a means for accessingGradebookNode
elements sequentially either one at a time or many at a time.Examples: while (gnl.hasNext()) { GradebookNode node = gnl.getNextGradebookNode(); }
- or
- while (gnl.hasNext()) {
- GradebookNode[] nodes = gnl.getNextGradebookNodes(gnl.available());
}
-
next_gradebook_node
¶ Gets the next
GradebookNode
in this list.Returns: the next GradebookNode
in this list. Thehas_next()
method should be used to test that a nextGradebookNode
is available before calling this method.Return type: osid.grading.GradebookNode
Raise: IllegalState
– no more elements available in this listRaise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.
-
get_next_gradebook_nodes
(n)¶ Gets the next set of
GradebookNode
elements in this list which must be less than or equal to the return fromavailable()
.Parameters: n ( cardinal
) – the number ofGradebookNode
elements requested which must be less than or equal toavailable()
Returns: an array of GradebookNode
elements.The length of the array is less than or equal to the number specified.Return type: osid.grading.GradebookNode
Raise: IllegalState
– no more elements available in this listRaise: OperationFailed
– unable to complete requestcompliance: mandatory – This method must be implemented.