Package schrodinger :: Package application :: Package bioluminate :: Module propfilter :: Class BooleanDatabaseCriterion
[hide private]
[frames] | no frames]

Class BooleanDatabaseCriterion

             object --+    
                      |    
StringDatabaseCriterion --+
                          |
                         BooleanDatabaseCriterion

Instance Methods [hide private]
bool
checkForMatch(self, obj_val, operator, goal=None, isCaseSensitive=None)
Check to see if a value matches this criterion.

Inherited from StringDatabaseCriterion: __init__, __str__, matches

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

checkForMatch(self, obj_val, operator, goal=None, isCaseSensitive=None)

 

Check to see if a value matches this criterion. Returns True if:

   "obj_val operator"  ("Schrodinger is True" returns True)
Parameters:
  • obj_val (int or float) - The value being checked
  • operator (int or float) - An operator as defined in the __init__ method of the StringDatabaseCriterion class criteria paramater.
  • goal - Not used, none of the Boolean operators requires a value to compare against.
  • isCaseSensitive - ignored (added for compatibility with base class)
Returns: bool
True if "obj_val operator" is True, False if not
Raises:
  • ValueError - if operator is not recognized
Overrides: StringDatabaseCriterion.checkForMatch