Package schrodinger :: Package utils :: Module ligfilter :: Class AslCriterion
[hide private]
[frames] | no frames]

Class AslCriterion

Criterion --+
            |
           AslCriterion

This criterion considers a Structure as matching if the stored ASL expresson match returns at least one atom.

Instance Methods [hide private]
 
__init__(self, asl)
Parameters asl - the ASL expression string.
 
matches(self, st, addprops=False)
Return True if structure 'st' matches this ASL criterion, False if not.
 
getvalue(self, st)
Return True if the structure 'st' matches this ASL.

Inherited from Criterion: __str__, match_compstr, parseLine, setCompStr

Method Details [hide private]

__init__(self, asl)
(Constructor)

 

Parameters
    asl - the ASL expression string.

Overrides: Criterion.__init__

matches(self, st, addprops=False)

 

Return True if structure 'st' matches this ASL criterion, False if not.

st (Structure) - Structure object addprops (bool) - whether to add properties for each description

Overrides: Criterion.matches

getvalue(self, st)

 

Return True if the structure 'st' matches this ASL. Flase otherwise.

Overrides: Criterion.getvalue