Package es.urjc.etsii.grafo.util
Class AssertionUtil
java.lang.Object
es.urjc.etsii.grafo.util.AssertionUtil
Assertion utils
Reference
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
biimplication
(boolean p, boolean q) Does the supposition "if and only if" hold?static boolean
implication
(boolean p, boolean q) Does the supposition "if then" hold?
-
Method Details
-
biimplication
public static boolean biimplication(boolean p, boolean q) Does the supposition "if and only if" hold?P <--> Q = (P & Q) | (!P & !Q)
- Parameters:
p
- Pq
- Q- Returns:
- true if valid supposition, false otherwise
-
implication
public static boolean implication(boolean p, boolean q) Does the supposition "if then" hold?P --> Q = !P || Q
- Parameters:
p
- Pq
- Q- Returns:
- true if valid supposition, false otherwise
-