Table of Contents

Class Criterion

Namespace
InSite.Domain.Banks
Assembly
Shift.Sdk.dll

A criterion represents a set of rules for selecting and filtering the question items from one or more question sets. Each section on an exam form uses a criterion to determine the questions it contains and displays.

public class Criterion
Inheritance
Criterion
Inherited Members
Extension Methods

Constructors

Criterion()

Constructs an empty criterion.

public Criterion()

Properties

FilterType

A criterion is either a Tag Selector (basic filter) or a Pivot Table (advanced filter).

public CriterionFilterType FilterType { get; set; }

Property Value

CriterionFilterType

Identifier

Uniquely identifies the criterion.

public Guid Identifier { get; set; }

Property Value

Guid

Letter

Returns an alphabetic equivalent for the integer sequence (e.g. A = 1, B = 2, C = 3).

public string Letter { get; }

Property Value

string

Name

The internal name used to uniquely identify the criterion for filing purposes.

public string Name { get; set; }

Property Value

string

PivotFilter

The new pivot-table filter.

public PivotTable PivotFilter { get; set; }

Property Value

PivotTable

QuestionCount

The number of available questions in all the sets from which this criterion selects and filters.

public int QuestionCount { get; }

Property Value

int

QuestionLimit

The maximum number of questions allowed on an exam form from the question set to which this criterion applies.

public int QuestionLimit { get; set; }

Property Value

int

Sections

The list of sections controlled by this criterion.

public List<Section> Sections { get; set; }

Property Value

List<Section>

Sequence

The ordinal position of this criterion in the specification that contains it.

public int Sequence { get; }

Property Value

int

SetIdentifiers

Uniquely identifies the sets being referenced.

public List<Guid> SetIdentifiers { get; set; }

Property Value

List<Guid>

SetWeight

The desired weighting for the question set to which this criterion applies, within the overall specification. The sum of all SetWeight values for the criteria in a specification must equal 1 (i.e. 100 percent).

public decimal SetWeight { get; set; }

Property Value

decimal

Sets

The 'hydrated' set objects. This is NOT serialized because it already exists as an object in the bank.

public List<Set> Sets { get; set; }

Property Value

List<Set>

Specification

The specification that contains this criterion.

public Specification Specification { get; set; }

Property Value

Specification

TagFilter

The old original ExamForm.DisplayFilter.

public string TagFilter { get; set; }

Property Value

string

Title

public string Title { get; }

Property Value

string

Methods

Clone()

public Criterion Clone()

Returns

Criterion

ShouldSerializePivotFilter()

public bool ShouldSerializePivotFilter()

Returns

bool

ToString()

public override string ToString()

Returns

string

UpdateFilterType()

public void UpdateFilterType()