Package MAKBPInterpreter.logic
Class And
- java.lang.Object
-
- MAKBPInterpreter.logic.And
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(Formula otherFormula)
Returnstrue
if this formula contains the specified formula.boolean
equals(java.lang.Object other)
Checks if the operands are the same as the other set of operands.boolean
evaluate(LogicAssignment assignment)
Evaluates a state that we passed into arguments.Formula
getNegation()
Returns the negation of the current formula.java.util.Set<Formula>
getOperands()
Gets a copy of the operands set object.int
hashCode()
Formula
simplify()
Simplifies the logic formula.java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
Checks if the operands are the same as the other set of operands.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
simplify
public Formula simplify()
Description copied from interface:Formula
Simplifies the logic formula.
-
getNegation
public Formula getNegation()
Description copied from interface:Formula
Returns the negation of the current formula.- Specified by:
getNegation
in interfaceFormula
- Returns:
- negation of formula
-
contains
public boolean contains(Formula otherFormula)
Description copied from interface:Formula
Returnstrue
if this formula contains the specified formula.
-
getOperands
public java.util.Set<Formula> getOperands()
Gets a copy of the operands set object.- Returns:
- operands set object
- See Also:
operands
-
evaluate
public boolean evaluate(LogicAssignment assignment) throws java.lang.Exception
Description copied from interface:Formula
Evaluates a state that we passed into arguments.
-
-