OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | starting (self) |
def | starting_round (self, index) |
def | ending_round (self, index, state) |
def | ending (self, state) |
def | adding_requirement (self, requirement, parent) |
def | backtracking (self, candidate) |
def | pinning (self, candidate) |
A reporter that does an info log for every event it sees.
def adding_requirement | ( | self, | |
requirement, | |||
parent | |||
) |
Called when adding a new requirement into the resolve criteria. :param requirement: The additional requirement to be applied to filter the available candidaites. :param parent: The candidate that requires ``requirement`` as a dependency, or None if ``requirement`` is one of the root requirements passed in from ``Resolver.resolve()``.
Reimplemented from BaseReporter.
def backtracking | ( | self, | |
candidate | |||
) |
Called when rejecting a candidate during backtracking.
Reimplemented from BaseReporter.
def ending | ( | self, | |
state | |||
) |
Called before the resolution ends successfully.
Reimplemented from BaseReporter.
def ending_round | ( | self, | |
index, | |||
state | |||
) |
Called before each round of resolution ends. This is NOT called if the resolution ends at this round. Use `ending` if you want to report finalization. The index is zero-based.
Reimplemented from BaseReporter.
def pinning | ( | self, | |
candidate | |||
) |
Called when adding a candidate to the potential solution.
Reimplemented from BaseReporter.
def starting | ( | self | ) |
Called before the resolution actually starts.
Reimplemented from BaseReporter.
def starting_round | ( | self, | |
index | |||
) |
Called before each round of resolution starts. The index is zero-based.
Reimplemented from BaseReporter.