def setParameter(self, parameterName, index, parameterValue):
if parameterName == '<STR_LIT>':<EOL><INDENT>self.topDownMode = parameterValue<EOL><DEDENT>elif parameterName == '<STR_LIT>':<EOL><INDENT>self.predictedField = parameterValue<EOL><DEDENT>else:<EOL><INDENT>raise Exception('<STR_LIT>' + parameterName)<EOL><DEDENT>
Set the value of a Spec parameter. Most parameters are handled
automatically by PyRegion's parameter set mechanism. The ones that need
special treatment are explicitly handled here.