OpenQuizz
Une application de gestion des contenus pédagogiques
BestCandidateResult Class Reference

Public Member Functions

def __init__ (self, candidates, applicable_candidates, best_candidate)
 
def iter_all (self)
 
def iter_applicable (self)
 

Data Fields

 best_candidate
 

Detailed Description

A collection of candidates, returned by `PackageFinder.find_best_candidate`.

This class is only intended to be instantiated by CandidateEvaluator's
`compute_best_candidate()` method.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  candidates,
  applicable_candidates,
  best_candidate 
)
:param candidates: A sequence of all available candidates found.
:param applicable_candidates: The applicable candidates.
:param best_candidate: The most preferred candidate found, or None
    if no applicable candidates were found.

Member Function Documentation

◆ iter_all()

def iter_all (   self)
Iterate through all candidates.

◆ iter_applicable()

def iter_applicable (   self)
Iterate through the applicable candidates.

Field Documentation

◆ best_candidate

best_candidate

The documentation for this class was generated from the following file: