|
|||||||||
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
public abstract class LogicalExpression
Each logical expression at compile time is represented as a class derived from this abstract class.
Constructor Summary | |
---|---|
LogicalExpression()
|
Method Summary | |
---|---|
int |
getClassCnt()
This function returns a unique integer every time called. |
abstract java.lang.String |
getInitCode()
This function produces Java code that initializes some data structures that will be needed to create the precondition object that implements this logical expression at run time. |
int |
getVarCount()
This function returns the number of variables in this logical expression. |
protected abstract void |
propagateVarCount(int varCountIn)
This abstract function is called whenever the number of variables for an object of this class is set. |
void |
setVarCount(int varCountIn)
This function is used to set the number of variables for this logical expression. |
Methods inherited from class org.jscience.computing.ai.planning.CompileTimeObject |
---|
toCode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogicalExpression()
Method Detail |
---|
public int getClassCnt()
public abstract java.lang.String getInitCode()
String
.public int getVarCount()
protected abstract void propagateVarCount(int varCountIn)
varCountIn
- the number of variables for this logical expression.public void setVarCount(int varCountIn)
varCountIn
- the number of variables for this logical expression.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |