Trees | Indices | Help |
|
---|
|
A base class for a structure matching criterion. Each instance will test a structure for some property and indicate whether it passes or not. Attributes type - The classification of the Criterion. Can be PREDEFINED, PROPERTY, or SMARTS.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
Parameters name - the name of the Criterion. See subclasses for meaning, as it depends on the implementation. compstr - a comparison string for evaluating the value of the named property. Examples are 'VALUE < 300' or 'VALUE >= 1'. If name or compstr are not specified, parseLine() method should be used If a PROPERTY Criterion has no operator or value, the Criterion is just the existence of the property in the tested structure. The reason why comstr is one string instead of two values (operator and number) is in order to support implementation of Ev:50600 - Add the ability to create criteria with multiple (boolean) conditions |
Parse a line of the form: <name> (Property criterion only) or: <name> <oper> <value> or: <name> <oper> <value> AND/OR <oper> <value> Set the name and compstr attributes from the parsed line; Raises RuntimeError if the string is invalid |
Return True if the structure 'st' matches the criterion, False if not. OVERWRITE this method in the subclass st (Structure) - Structure object addprops (bool) - whether to add properties for each description |
Return the value of this criterion in the structure 'st'. OVERWRITE this method in the subclass |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Oct 26 01:00:02 2016 | http://epydoc.sourceforge.net |