|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.sf.molae.logic.tools.BooleanOperators
All boolean operators.
(A boolean operator maps two Booleans to a
Boolean.)
| Field Summary | |
static BinaryFunction |
AND
The binary function that computes a & b. |
static BinaryFunction |
AND_NOT
The binary function that computes a & !b. |
static BinaryFunction |
CONSTANT_FALSE
The binary function that returns always FALSE. |
static BinaryFunction |
CONSTANT_TRUE
The binary function that returns always TRUE. |
static BinaryFunction |
EQUALS
The binary function that computes a == b. |
static BinaryFunction |
FIRST_OPERAND
The binary function that returns the first operand. |
static BinaryFunction |
IMPLIES
The binary function that computes b ¦ !a. |
static TwoWayTransformer |
NOT
A transformer that negates Booleans. |
static BinaryFunction |
NOT_AND
The binary function that computes !(a & b). |
static BinaryFunction |
NOT_FIRST_OPERAND
The binary function that returns the negation of the first operand. |
static BinaryFunction |
NOT_IMPLIED_BY
The binary function that computes !a & b. |
static BinaryFunction |
NOT_OR
The binary function that computes !(a ¦ b). |
static BinaryFunction |
NOT_SECOND_OPERAND
The binary function that returns the negation of the second operand. |
static List |
OPERATOR_LIST
A list containing all boolean operators. |
static BinaryFunction |
OR
The binary function that computes a ¦ b. |
static BinaryFunction |
OR_NOT
The binary function that computes a ¦ !b. |
static BinaryFunction |
SECOND_OPERAND
The binary function that returns the second operand. |
static BinaryFunction |
XOR
The binary function that computes a ^ b. |
| Method Summary | |
static BinaryFunction |
getDeMorganOperator(BinaryFunction operator)
Returns the deMorgan operator of the specified operator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final BinaryFunction AND
a & b.public static final BinaryFunction AND_NOT
a & !b.public static final BinaryFunction CONSTANT_FALSE
FALSE.public static final BinaryFunction CONSTANT_TRUE
TRUE.public static final BinaryFunction EQUALS
a == b.public static final BinaryFunction FIRST_OPERAND
public static final BinaryFunction NOT_AND
!(a & b).public static final BinaryFunction NOT_OR
!(a ¦ b).public static final BinaryFunction NOT_SECOND_OPERAND
public static final BinaryFunction OR
a ¦ b.public static final BinaryFunction OR_NOT
a ¦ !b.public static final BinaryFunction SECOND_OPERAND
public static final BinaryFunction XOR
a ^ b.public static final BinaryFunction IMPLIES
b ¦ !a.public static final BinaryFunction NOT_FIRST_OPERAND
public static final BinaryFunction NOT_IMPLIED_BY
!a & b.public static final List OPERATOR_LIST
public static final TwoWayTransformer NOT
Booleans.| Method Detail |
public static BinaryFunction getDeMorganOperator(BinaryFunction operator)
dmo is a binary function that
fulfills
!operator.compute(arg1, arg2).equals(dmo.compute(!arg1, !arg2))
operator - a boolean operator.IllegalArgumentException - operator is not an operator
defined in this class
(i.e. contained in OPERATOR_LIST).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||