Package org.svvrl.goal.core.logic.bool
Class BoolBinary<T>
java.lang.Object
org.svvrl.goal.core.logic.bool.BoolExp<T>
org.svvrl.goal.core.logic.bool.BoolBinary<T>
- Type Parameters:
T
- the type of atomic expressions
public abstract class BoolBinary<T> extends BoolExp<T>
This class provides binary Boolean expressions.
- Author:
- Ming-Hsien Tsai
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BoolBinary(BoolBinaryOp op, BoolExp<T> left, BoolExp<T> right)
Constructs this binary expression. -
Method Summary
Modifier and Type Method Description T
getAtom()
Returns the atomic element.BoolExp<T>
getExpression()
Returns the sub expression.BoolExp<T>
getLeft()
Returns the left-hand side expression.BoolExp<T>
getRight()
Returns the right-hand side expression.boolean
isAnd()
Returnstrue
if this expression is conjunctive.boolean
isAtomic()
Returnstrue
if this expression is atomic.boolean
isBinary()
Returnstrue
if this expression is binary.boolean
isFalse()
Returnstrue
if this expression is false.boolean
isNeg()
Returnstrue
if this expression is negative.boolean
isOr()
Returnstrue
if this expression is disjunctive.boolean
isTrue()
Returnstrue
if this expression is true.
-
Field Details
-
Constructor Details
-
BoolBinary
Constructs this binary expression.- Parameters:
op
- the binary operationleft
- the left-hand side expressionright
- the right-hand side expression
-
-
Method Details
-
getAtom
Description copied from class:BoolExp
Returns the atomic element. -
getExpression
Description copied from class:BoolExp
Returns the sub expression.- Specified by:
getExpression
in classBoolExp<T>
- Returns:
- the sub expression if this expression is unary, and
null
otherwise
-
getLeft
Description copied from class:BoolExp
Returns the left-hand side expression. -
getRight
Description copied from class:BoolExp
Returns the right-hand side expression. -
isTrue
public boolean isTrue()Description copied from class:BoolExp
Returnstrue
if this expression is true. -
isFalse
public boolean isFalse()Description copied from class:BoolExp
Returnstrue
if this expression is false. -
isAtomic
public boolean isAtomic()Description copied from class:BoolExp
Returnstrue
if this expression is atomic. -
isNeg
public boolean isNeg()Description copied from class:BoolExp
Returnstrue
if this expression is negative. Note that false is negative. -
isBinary
public boolean isBinary()Description copied from class:BoolExp
Returnstrue
if this expression is binary. -
isAnd
public boolean isAnd()Description copied from class:BoolExp
Returnstrue
if this expression is conjunctive. -
isOr
public boolean isOr()Description copied from class:BoolExp
Returnstrue
if this expression is disjunctive.
-