예제 #1
0
 def __init__(self, formula, type="plain", name=None):
     """
     Constructor, takes formula, type, and optional name.
     """
     self.formula = formula
     self.type = type
     Derivable.__init__(self, name)
예제 #2
0
 def __init__(self, literals, type="plain", name=None):
     """
     Initialize the clause.
     """
     self.literals = literals
     self.type = type
     self.evaluation = None
     Derivable.__init__(self, name)
예제 #3
0
 def __init__(self, literals, type="plain", name=None):
     """
     Initialize the clause.
     """
     self.literals = [l for l in literals if not l.isPropFalse()]
     self.type = type
     self.evaluation = None
     Derivable.__init__(self, name)