CommandRankingByWeaknessclassparser.t[5902]

A "weakness" criterion. This is similar to the rank-by-problem criterion, but rather than ranking on an actual structural problem, it ranks on a structural weakness. This is suitable for things like adjective endings and truncations, where the weakness isn't on the same order as a "problem" but where we'd still rather avoid the weakness if we can.

The point of the separate "weakness" criterion is that we only allow weaknesses to come into play on pass 2, after we've already discriminated based on problems. If we can discriminate based on problems, we'll do so in pass 1 and won't even get to pass 2; we'll only discriminate based on weakness if we can't tell the difference based on real problems.

class CommandRankingByWeakness :   CommandRankingCriterion

Superclass Tree   (in declaration order)

CommandRankingByWeakness
        CommandRankingCriterion
                object

Subclass Tree  

(none)

Global Objects  

rankByEndAdj  rankByPluralTrunc  rankByPronoun  rankByTrunc  rankByWeakness 

Summary of Properties  

prop_ 

Summary of Methods  

comparePass1  comparePass2 

Properties  

prop_parser.t[5910]

our command-ranking property

Methods  

comparePass1 (a, b)OVERRIDDENparser.t[5904]

on pass 1, ignore weaknesses

comparePass2 (a, b)OVERRIDDENparser.t[5907]
on pass 2, compare based on weaknesses

TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3