|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Logical
Interface for creating symbolic logical expressions,
which may be evaluated.
Example of use:
Logical x = new LogicalConstant( true ); Logical y = new LogicalVariable( "y", true ); Logical z = new And( x, y ); boolean value = z.truthValue();
LogicalConstant,
LogicalVariable,
LogicalParameter,
LogicalUnary,
LogicalBinary| Method Summary | |
|---|---|
boolean |
contains(Expression e)
Returns true if the Logical contains the Expression e, else returns false; |
Logical |
optimize()
Returns a new Logical object that represents the optimized logical expression. |
Logical |
replace(Expression a,
Expression b)
Replace all occurences of the Expression a in the current expression with the Expression b. |
java.lang.String |
toJava()
Returns String object representing Logical in Java source code. |
java.lang.String |
toString()
Return a String representation of the Logical expression. |
java.lang.String |
toXML()
Returns String object representing Logical in XML code. |
boolean |
truthValue()
Returns the truth value of the Logical object. |
| Method Detail |
|---|
boolean truthValue()
Logical optimize()
Logical replace(Expression a,
Expression b)
a - DOCUMENT ME!b - DOCUMENT ME!
boolean contains(Expression e)
e - DOCUMENT ME!
java.lang.String toString()
toString in class java.lang.Objectjava.lang.String toJava()
java.lang.String toXML()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||