[system] Repository:
ViewVC logotype

Revision 3497

Jump to revision: Previous Next
Author: dpvc
Date: Sat Aug 13 00:25:27 2005 UTC (14 years, 3 months ago)
Log Message:
Added ability for Unions and Sets to simplify themselves
(automatically or on demand), and added flags to the Context and
answer checkers to control these features.  The new Context flags

    reduceUnions                tells whether unions are automatically
                                reduced when they are created.

    reduceUnionsForComparison   tells whether unions are reduced
                                before comparing them for equality
                                or inequality (etc) if they aren't
                                reduced already.

    reduceSets                  tells whether redundent elements are
                                removed from sets as they are created.

    reduceSetsForComparison     tells whether sets are reduced before
                                comparing them.

All of these default to true.

The Interval, Set, Union, and List answer checkers not have two new
flags for controlling these values:

    studentsMustReduceUnions    tells whether unions and sets will be
                                counted as incorrect when they are not
                                reduced to non-overlapping intervals
                                and at most one set with no repeated

    showUnionReduceWarnings     tells whether an error message will
                                be produced for non-reduced unions and
                                sets, or if they will be marked wrong
                                silently.  (Not available in Lists.)

Both of these are true by default, since most professors probably want
their students to write intervals in reduced form.  (Is this true?)
This corresponds the the current behavior of the interval checkers,
which require the student's answer to be the same set of intervals as
in the professor's, but with the addition of an error message when the
student answer is not reduced.

Changed paths:

Path Details
Directorytrunk/pg/lib/Parser/Value.pm modified , text changed
Directorytrunk/pg/lib/Value/AnswerChecker.pm modified , text changed
Directorytrunk/pg/lib/Value/Interval.pm modified , text changed
Directorytrunk/pg/lib/Value/Set.pm modified , text changed
Directorytrunk/pg/lib/Value/Union.pm modified , text changed
Directorytrunk/pg/lib/Value.pm modified , text changed

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9