Class: Assessment

Assessor. Assessment

new Assessment

Assessment class, holds all verifiers for a given task.
Source:
  • assessor.js, line 292

Extends

Members

class :String

Classname of the object the current instance is created from.
Source:
  • assessor.js, line 37

constraints :{Array} Array of Assessor.Verifier instances.

Holds the constraints for this assessment.
Source:
  • assessor.js, line 300

expanded :Boolean

A flag to indicate this is an actual instance.
Default Value:
  • true
Source:
  • assessor.js, line 28

fixtures :Assessor.FixtureList

Keeps track of the fixed elements
Source:
  • assessor.js, line 306

namespace :String

The namespace the class is in or null if the class is defined directly in the main namespace.
Source:
  • assessor.js, line 35

parameters :String

JSON string representing the constructor parameters as elements of an array.
Source:
  • assessor.js, line 49

Methods

choose

Compiles a list of all fixtures that can be applied to this verifier while this verifier is still valid under the given fixtures.
Parameters:
Name Type Description
elements Assessor.ElementList
fixtures Assessor.FixtureList
Source:
  • assessor.js, line 272
Returns:
An array of Assessor.FixtureList objects.
Type
Array

next

Backtracking algorithm to verify an assessment. This method goes through all verifiers in Assessor.Assessment#constraints and tries to map all elements to the correct elements given by the author in the constraints such that all of the constraints are fulfilled.
Parameters:
Name Type Description
elements Assessor.ElementList
i Number
Source:
  • assessor.js, line 332
Returns:
Type
Boolean

toJSON

Generates a JSON representation of this object that can be used to restore it.
Source:
  • assessor.js, line 57
Returns:
Type
String

verify

Entry point for the verification algorithm.
Parameters:
Name Type Description
board JXG.Board
Source:
  • assessor.js, line 316
Returns:
Type
Boolean

verify

Verifies this verifier object under the given fixtures.
Parameters:
Name Type Description
elements Assessor.ElementList
fixtures Assessor.FixtureList
Source:
  • assessor.js, line 282
Returns:
Type
Boolean