|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.ai.planning.CompileTimeObject
org.jscience.computing.ai.planning.LogicalExpression
org.jscience.computing.ai.planning.LogicalExpressionDisjunction
public class LogicalExpressionDisjunction
Each disjunction at compile time is represented as an instance of this class.
| Constructor Summary | |
|---|---|
LogicalExpressionDisjunction(java.util.Vector leIn)
To initialize this disjunction. |
|
| Method Summary | |
|---|---|
java.lang.String |
getInitCode()
This function produces Java code that implements the classes any object of which can be used at run time to represent the disjuncts of this disjunction, and the disjunction itself. |
protected void |
propagateVarCount(int varCount)
To propagate the variable count to all the logical expressions the disjunction of which this object represents. |
java.lang.String |
toCode()
This function produces the Java code to create an object of the class that was implemented to represent this disjunction at run time. |
| Methods inherited from class org.jscience.computing.ai.planning.LogicalExpression |
|---|
getClassCnt, getVarCount, setVarCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogicalExpressionDisjunction(java.util.Vector leIn)
leIn - a Vector of logical expressions the disjunction
of which is represented by this object. Note that we use a
Vector rather than an array since at compile time
we do not know how many disjuncts there are in this particular
disjunction.| Method Detail |
|---|
public java.lang.String getInitCode()
getInitCode in class LogicalExpressionprotected void propagateVarCount(int varCount)
propagateVarCount in class LogicalExpressionvarCount - DOCUMENT ME!public java.lang.String toCode()
toCode in class CompileTimeObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||