org.gecode.BExpr Class Reference
[Direct modelling]
List of all members.Detailed Description
This class is used to construct boolean expressions from booleans, BoolVars, BExprs, and relations (Expr IntRelType Expr) using the different connectives available in Gecode.The methods in this class modify the object that they are operating on (i.e., the this object). The methods all return
A BExpr b can be posted using either the Gecode.post(Space, BExpr) method (which forces the BExpr to be true) or the Gecode.post(Space, BExpr, boolean) method (where the boolean argumnet determines if the BExpr should be true).
Definition at line 42 of file BExpr.java.
Public Member Functions | |
| BExpr (BExpr be) | |
| Construct a copy of expression be. | |
| BExpr (BoolVar b) | |
| Construct an expression from the BoolVar b. | |
| BExpr (boolean v) | |
| Construct an expression from the boolean v. | |
| BExpr (Expr e1, IntRelType irt, Expr e2) | |
| Construct an expression representing a relation. | |
| BExpr (Expr e1, IntRelType irt, int d) | |
| Construct an expression representing a relation. | |
| BExpr (IntVar v1, IntRelType irt, IntVar v2) | |
| Construct an expression representing a relation. | |
| BExpr (IntVar v, IntRelType irt, int d) | |
| Construct an expression representing a relation. | |
| BExpr | and (BExpr be) |
Form conjunction of this expression and be ( ), and return this. | |
| BExpr | or (BExpr be) |
Form disjunction of this expression and be ( ), and return this. | |
| BExpr | xor (BExpr be) |
Form exclusive disjunction of this expression and be ( ), and return this. | |
| BExpr | imp (BExpr be) |
Form expression that represents that this implies be ( ), and return this. | |
| BExpr | consequence_of (BExpr be) |
Form expression that represents that this is a consequence of be ( ), and return this. | |
| BExpr | eqv (BExpr be) |
Form expression that represens that this and be are equivalent ( ), and return this. | |
| BExpr | and (BoolVar b) |
Form conjunction of this expression and b ( ), and return this. | |
| BExpr | or (BoolVar b) |
Form disjunction of this expression and b ( ), and return this. | |
| BExpr | xor (BoolVar b) |
Form exclusive disjunction of this expression and b ( ), and return this. | |
| BExpr | imp (BoolVar b) |
Form expression that represents that this implies b ( ), and return this. | |
| BExpr | consequence_of (BoolVar b) |
Form expression that represents that this is a consequence of b ( ), and return this. | |
| BExpr | eqv (BoolVar b) |
Form expression that represens that this and b are equivalent ( ), and return this. | |
| BExpr | and (boolean v) |
Form conjunction of this expression and v ( ), and return this. | |
| BExpr | or (boolean v) |
Form disjunction of this expression and v ( ), and return this. | |
| BExpr | xor (boolean v) |
Form exclusive disjunction of this expression and v ( ), and return this. | |
| BExpr | imp (boolean v) |
Form expression that represents that this implies v ( ), and return this. | |
| BExpr | consequence_of (boolean v) |
Form expression that represents that this is a consequence of v ( ), and return this. | |
| BExpr | eqv (boolean v) |
Form expression that represens that this and v are equivalent ( ), and return this. | |
| BExpr | and (Expr e1, IntRelType irt, Expr e2) |
Form conjunction of this expression and (e1 irt e2) ( ), and return this. | |
| BExpr | or (Expr e1, IntRelType irt, Expr e2) |
Form disjunction of this expression and (e1 irt e2) ( ), and return this. | |
| BExpr | xor (Expr e1, IntRelType irt, Expr e2) |
Form exclusive disjunction of this expression and (e1 irt e2) ( ), and return this. | |
| BExpr | imp (Expr e1, IntRelType irt, Expr e2) |
Form expression that represents that this implies (e1 irt e2) ( ), and return this. | |
| BExpr | consequence_of (Expr e1, IntRelType irt, Expr e2) |
Form expression that represents that this is a consequence of (e1 irt e2) ( ), and return this. | |
| BExpr | eqv (Expr e1, IntRelType irt, Expr e2) |
Form expression that represens that this and (e1 irt e2) are equivalent ( ), and return this. | |
| BExpr | and (BExpr...bes) |
Form conjunction of this expression and all the bes ( ), and return this. | |
| BExpr | or (BExpr...bes) |
Form disjunction of this expression and all the bes ( ), and return this. | |
| BExpr | eqv (BExpr...bes) |
Form expression that represens that this and all the bes are equivalent ( ), and return this. | |
| BExpr | and (BoolVar...bvs) |
Form conjunction of this expression and all the bvs ( ), and return this. | |
| BExpr | or (BoolVar...bvs) |
Form disjunction of this expression and all the bvs ( ), and return this. | |
| BExpr | eqv (BoolVar...bvs) |
Form expression that represens that this and all the bvs are equivalent ( ), and return this. | |
| BExpr | and (Expr e1, IntRelType irt, int d) |
Form conjunction of this expression and (e1 irt Expr(d)) ( ), and return this. | |
| BExpr | or (Expr e1, IntRelType irt, int d) |
Form disjunction of this expression and (e1 irt Expr(d)) ( ), and return this. | |
| BExpr | xor (Expr e1, IntRelType irt, int d) |
Form exclusive disjunction of this expression and (e1 irt Expr(d)) ( ), and return this. | |
| BExpr | imp (Expr e1, IntRelType irt, int d) |
Form expression that represents that this implies (e1 irt Expr(d)) ( ), and return this. | |
| BExpr | consequence_of (Expr e1, IntRelType irt, int d) |
Form expression that represents that this is a consequence of (e1 irt Expr(d)) ( ), and return this. | |
| BExpr | eqv (Expr e1, IntRelType irt, int d) |
Form expression that represens that this and (e1 irt Expr(d)) are equivalent ( ), and return this. | |
| BExpr | and (IntVar v1, IntRelType irt, IntVar v2) |
Form conjunction of this expression and (v1 irt v2) ( ), and return this. | |
| BExpr | or (IntVar v1, IntRelType irt, IntVar v2) |
Form disjunction of this expression and (v1 irt v2) ( ), and return this. | |
| BExpr | xor (IntVar v1, IntRelType irt, IntVar v2) |
Form exclusive disjunction of this expression and (v1 irt v2) ( ), and return this. | |
| BExpr | imp (IntVar v1, IntRelType irt, IntVar v2) |
Form expression that represents that this implies (v1 irt v2) ( ), and return this. | |
| BExpr | consequence_of (IntVar v1, IntRelType irt, IntVar v2) |
Form expression that represents that this is a consequence of (v1 irt v2) ( ), and return this. | |
| BExpr | eqv (IntVar v1, IntRelType irt, IntVar v2) |
Form expression that represens that this and (v1 irt v2) are equivalent ( ), and return this. | |
| BExpr | and (IntVar v1, IntRelType irt, int d) |
Form conjunction of this expression and (v1 irt d) ( ), and return this. | |
| BExpr | or (IntVar v1, IntRelType irt, int d) |
Form disjunction of this expression and (v1 irt d) ( ), and return this. | |
| BExpr | xor (IntVar v1, IntRelType irt, int d) |
Form exclusive disjunction of this expression and (v1 irt d) ( ), and return this. | |
| BExpr | imp (IntVar v1, IntRelType irt, int d) |
Form expression that represents that this implies (v1 irt d) ( ), and return this. | |
| BExpr | consequence_of (IntVar v1, IntRelType irt, int d) |
Form expression that represents that this is a consequence of (v1 irt d) ( ), and return this. | |
| BExpr | eqv (IntVar v1, IntRelType irt, int d) |
Form expression that represens that this and (v1 irt d) are equivalent ( ), and return this. | |
Package Types | |
| enum | Op { AND, OR, XOR, IMP, EQV } |
Package Attributes | |
| E | e |
Classes | |
| class | BiE |
| class | BoolE |
| class | BooleanE |
| class | E |
| class | NE |
| class | RelE |
Member Enumeration Documentation
enum org::gecode::BExpr::Op [package] |
Constructor & Destructor Documentation
| org.gecode.BExpr.BExpr | ( | BExpr | be | ) |
| org.gecode.BExpr.BExpr | ( | BoolVar | b | ) |
| org.gecode.BExpr.BExpr | ( | boolean | v | ) |
| org.gecode.BExpr.BExpr | ( | Expr | e1, | |
| IntRelType | irt, | |||
| Expr | e2 | |||
| ) |
| org.gecode.BExpr.BExpr | ( | Expr | e1, | |
| IntRelType | irt, | |||
| int | d | |||
| ) |
| org.gecode.BExpr.BExpr | ( | IntVar | v1, | |
| IntRelType | irt, | |||
| IntVar | v2 | |||
| ) |
| org.gecode.BExpr.BExpr | ( | IntVar | v, | |
| IntRelType | irt, | |||
| int | d | |||
| ) |
Member Function Documentation
Form conjunction of this expression and be (
), and return this.
Definition at line 94 of file BExpr.java.
Form disjunction of this expression and be (
), and return this.
Definition at line 106 of file BExpr.java.
Form exclusive disjunction of this expression and be (
), and return this.
Definition at line 118 of file BExpr.java.
Form expression that represents that this implies be (
), and return this.
Definition at line 126 of file BExpr.java.
Form expression that represents that this is a consequence of be (
), and return this.
Definition at line 134 of file BExpr.java.
Form expression that represens that this and be are equivalent (
), and return this.
Definition at line 143 of file BExpr.java.
Form conjunction of this expression and b (
), and return this.
Definition at line 155 of file BExpr.java.
Form disjunction of this expression and b (
), and return this.
Definition at line 167 of file BExpr.java.
Form exclusive disjunction of this expression and b (
), and return this.
Definition at line 179 of file BExpr.java.
Form expression that represents that this implies b (
), and return this.
Definition at line 187 of file BExpr.java.
Form expression that represents that this is a consequence of b (
), and return this.
Definition at line 196 of file BExpr.java.
Form expression that represens that this and b are equivalent (
), and return this.
Definition at line 204 of file BExpr.java.
| BExpr org.gecode.BExpr.and | ( | boolean | v | ) |
Form conjunction of this expression and v (
), and return this.
Definition at line 216 of file BExpr.java.
| BExpr org.gecode.BExpr.or | ( | boolean | v | ) |
Form disjunction of this expression and v (
), and return this.
Definition at line 228 of file BExpr.java.
| BExpr org.gecode.BExpr.xor | ( | boolean | v | ) |
Form exclusive disjunction of this expression and v (
), and return this.
Definition at line 240 of file BExpr.java.
| BExpr org.gecode.BExpr.imp | ( | boolean | v | ) |
Form expression that represents that this implies v (
), and return this.
Definition at line 248 of file BExpr.java.
| BExpr org.gecode.BExpr.consequence_of | ( | boolean | v | ) |
Form expression that represents that this is a consequence of v (
), and return this.
Definition at line 257 of file BExpr.java.
| BExpr org.gecode.BExpr.eqv | ( | boolean | v | ) |
Form expression that represens that this and v are equivalent (
), and return this.
Definition at line 265 of file BExpr.java.
| BExpr org.gecode.BExpr.and | ( | Expr | e1, | |
| IntRelType | irt, | |||
| Expr | e2 | |||
| ) |
Form conjunction of this expression and (e1 irt e2) (
), and return this.
Definition at line 277 of file BExpr.java.
| BExpr org.gecode.BExpr.or | ( | Expr | e1, | |
| IntRelType | irt, | |||
| Expr | e2 | |||
| ) |
Form disjunction of this expression and (e1 irt e2) (
), and return this.
Definition at line 289 of file BExpr.java.
| BExpr org.gecode.BExpr.xor | ( | Expr | e1, | |
| IntRelType | irt, | |||
| Expr | e2 | |||
| ) |
Form exclusive disjunction of this expression and (e1 irt e2) (
), and return this.
Definition at line 301 of file BExpr.java.
| BExpr org.gecode.BExpr.imp | ( | Expr | e1, | |
| IntRelType | irt, | |||
| Expr | e2 | |||
| ) |
Form expression that represents that this implies (e1 irt e2) (
), and return this.
Definition at line 309 of file BExpr.java.
| BExpr org.gecode.BExpr.consequence_of | ( | Expr | e1, | |
| IntRelType | irt, | |||
| Expr | e2 | |||
| ) |
Form expression that represents that this is a consequence of (e1 irt e2) (
), and return this.
Definition at line 319 of file BExpr.java.
| BExpr org.gecode.BExpr.eqv | ( | Expr | e1, | |
| IntRelType | irt, | |||
| Expr | e2 | |||
| ) |
Form expression that represens that this and (e1 irt e2) are equivalent (
), and return this.
Definition at line 327 of file BExpr.java.
| BExpr org.gecode.BExpr.and | ( | BExpr... | bes | ) |
Form conjunction of this expression and all the bes (
), and return this.
Definition at line 341 of file BExpr.java.
| BExpr org.gecode.BExpr.or | ( | BExpr... | bes | ) |
Form disjunction of this expression and all the bes (
), and return this.
Definition at line 350 of file BExpr.java.
| BExpr org.gecode.BExpr.eqv | ( | BExpr... | bes | ) |
Form expression that represens that this and all the bes are equivalent (
), and return this.
Definition at line 359 of file BExpr.java.
| BExpr org.gecode.BExpr.and | ( | BoolVar... | bvs | ) |
Form conjunction of this expression and all the bvs (
), and return this.
Definition at line 368 of file BExpr.java.
| BExpr org.gecode.BExpr.or | ( | BoolVar... | bvs | ) |
Form disjunction of this expression and all the bvs (
), and return this.
Definition at line 377 of file BExpr.java.
| BExpr org.gecode.BExpr.eqv | ( | BoolVar... | bvs | ) |
Form expression that represens that this and all the bvs are equivalent (
), and return this.
Definition at line 387 of file BExpr.java.
| BExpr org.gecode.BExpr.and | ( | Expr | e1, | |
| IntRelType | irt, | |||
| int | d | |||
| ) |
Form conjunction of this expression and (e1 irt Expr(d)) (
), and return this.
Definition at line 398 of file BExpr.java.
| BExpr org.gecode.BExpr.or | ( | Expr | e1, | |
| IntRelType | irt, | |||
| int | d | |||
| ) |
Form disjunction of this expression and (e1 irt Expr(d)) (
), and return this.
Definition at line 405 of file BExpr.java.
| BExpr org.gecode.BExpr.xor | ( | Expr | e1, | |
| IntRelType | irt, | |||
| int | d | |||
| ) |
Form exclusive disjunction of this expression and (e1 irt Expr(d)) (
), and return this.
Definition at line 412 of file BExpr.java.
| BExpr org.gecode.BExpr.imp | ( | Expr | e1, | |
| IntRelType | irt, | |||
| int | d | |||
| ) |
Form expression that represents that this implies (e1 irt Expr(d)) (
), and return this.
Definition at line 419 of file BExpr.java.
| BExpr org.gecode.BExpr.consequence_of | ( | Expr | e1, | |
| IntRelType | irt, | |||
| int | d | |||
| ) |
Form expression that represents that this is a consequence of (e1 irt Expr(d)) (
), and return this.
Definition at line 428 of file BExpr.java.
| BExpr org.gecode.BExpr.eqv | ( | Expr | e1, | |
| IntRelType | irt, | |||
| int | d | |||
| ) |
Form expression that represens that this and (e1 irt Expr(d)) are equivalent (
), and return this.
Definition at line 435 of file BExpr.java.
| BExpr org.gecode.BExpr.and | ( | IntVar | v1, | |
| IntRelType | irt, | |||
| IntVar | v2 | |||
| ) |
Form conjunction of this expression and (v1 irt v2) (
), and return this.
Definition at line 444 of file BExpr.java.
| BExpr org.gecode.BExpr.or | ( | IntVar | v1, | |
| IntRelType | irt, | |||
| IntVar | v2 | |||
| ) |
Form disjunction of this expression and (v1 irt v2) (
), and return this.
Definition at line 451 of file BExpr.java.
| BExpr org.gecode.BExpr.xor | ( | IntVar | v1, | |
| IntRelType | irt, | |||
| IntVar | v2 | |||
| ) |
Form exclusive disjunction of this expression and (v1 irt v2) (
), and return this.
Definition at line 458 of file BExpr.java.
| BExpr org.gecode.BExpr.imp | ( | IntVar | v1, | |
| IntRelType | irt, | |||
| IntVar | v2 | |||
| ) |
Form expression that represents that this implies (v1 irt v2) (
), and return this.
Definition at line 465 of file BExpr.java.
| BExpr org.gecode.BExpr.consequence_of | ( | IntVar | v1, | |
| IntRelType | irt, | |||
| IntVar | v2 | |||
| ) |
Form expression that represents that this is a consequence of (v1 irt v2) (
), and return this.
Definition at line 474 of file BExpr.java.
| BExpr org.gecode.BExpr.eqv | ( | IntVar | v1, | |
| IntRelType | irt, | |||
| IntVar | v2 | |||
| ) |
Form expression that represens that this and (v1 irt v2) are equivalent (
), and return this.
Definition at line 481 of file BExpr.java.
| BExpr org.gecode.BExpr.and | ( | IntVar | v1, | |
| IntRelType | irt, | |||
| int | d | |||
| ) |
Form conjunction of this expression and (v1 irt d) (
), and return this.
Definition at line 491 of file BExpr.java.
| BExpr org.gecode.BExpr.or | ( | IntVar | v1, | |
| IntRelType | irt, | |||
| int | d | |||
| ) |
Form disjunction of this expression and (v1 irt d) (
), and return this.
Definition at line 498 of file BExpr.java.
| BExpr org.gecode.BExpr.xor | ( | IntVar | v1, | |
| IntRelType | irt, | |||
| int | d | |||
| ) |
Form exclusive disjunction of this expression and (v1 irt d) (
), and return this.
Definition at line 505 of file BExpr.java.
| BExpr org.gecode.BExpr.imp | ( | IntVar | v1, | |
| IntRelType | irt, | |||
| int | d | |||
| ) |
Form expression that represents that this implies (v1 irt d) (
), and return this.
Definition at line 512 of file BExpr.java.
| BExpr org.gecode.BExpr.consequence_of | ( | IntVar | v1, | |
| IntRelType | irt, | |||
| int | d | |||
| ) |
Form expression that represents that this is a consequence of (v1 irt d) (
), and return this.
Definition at line 521 of file BExpr.java.
| BExpr org.gecode.BExpr.eqv | ( | IntVar | v1, | |
| IntRelType | irt, | |||
| int | d | |||
| ) |
Form expression that represens that this and (v1 irt d) are equivalent (
), and return this.
Definition at line 528 of file BExpr.java.
Member Data Documentation
E org.gecode.BExpr.e [package] |
Definition at line 43 of file BExpr.java.
The documentation for this class was generated from the following file:
- org/gecode/BExpr.java (Revision: 3796)
