|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectExamplesJaCoP.Example
ExamplesJaCoP.Gates
public class Gates
It specifies an adder using gates specified by extensional constraints.
| Field Summary |
|---|
| Fields inherited from class ExamplesJaCoP.Example |
|---|
cost, search, store, vars |
| Constructor Summary | |
|---|---|
Gates()
|
|
| Method Summary | |
|---|---|
void |
and(BooleanVar in1,
BooleanVar in2,
BooleanVar out)
It imposes an extensional constraint enforcing an and relationship between two input parameters and an output parameter. |
static void |
main(java.lang.String[] args)
It executes a program to solve gates problems. |
void |
model()
It specifies a standard way of modeling the problem. |
void |
not(BooleanVar in,
BooleanVar out)
It imposes an extensional constraint enforcing an not relationship between input parameter and an output parameter. |
void |
or(BooleanVar in1,
BooleanVar in2,
BooleanVar out)
It imposes an extensional constraint enforcing an or relationship between two input parameters and an output parameter. |
boolean |
searchSpecific()
It provides a specific search with extensive printout of the result. |
void |
xor(BooleanVar in1,
BooleanVar in2,
BooleanVar out)
It imposes an extensional constraint enforcing an xor relationship between two input parameters and an output parameter. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Gates()
| Method Detail |
|---|
public void model()
Example
model in class Example
public void and(BooleanVar in1,
BooleanVar in2,
BooleanVar out)
in1 - the first input parameter.in2 - the second input parameter.out - the output parameter.
public void or(BooleanVar in1,
BooleanVar in2,
BooleanVar out)
in1 - the first input parameter.in2 - the second input parameter.out - the output parameter.
public void xor(BooleanVar in1,
BooleanVar in2,
BooleanVar out)
in1 - the first input parameter.in2 - the second input parameter.out - the output parameter.
public void not(BooleanVar in,
BooleanVar out)
in - the first input parameter.out - the output parameter.public static void main(java.lang.String[] args)
args - public boolean searchSpecific()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||