org.jscience.computing.ai.planning
Class LogicalExpressionAssignment

java.lang.Object
  extended by org.jscience.computing.ai.planning.CompileTimeObject
      extended by org.jscience.computing.ai.planning.LogicalExpression
          extended by org.jscience.computing.ai.planning.LogicalExpressionAssignment

public class LogicalExpressionAssignment
extends LogicalExpression

Each assign term in a logical expression at compile time is represented as an instance of this class.


Constructor Summary
LogicalExpressionAssignment(int whichVarIn, Term tIn)
          To initialize this assignment logical expression.
 
Method Summary
 java.lang.String getInitCode()
          This class does not need any initialization code, therefore, this function simply returns an empty String.
protected  void propagateVarCount(int varCount)
          This class does not need to propagate the variable count, therefore, this function does nothing.
 java.lang.String toCode()
          This function produces the Java code to create a PreconditionAssign object that represents this assignment logical expression 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

LogicalExpressionAssignment

public LogicalExpressionAssignment(int whichVarIn,
                                   Term tIn)
To initialize this assignment logical expression.

Parameters:
whichVarIn - the index of the variable to be assigned.
tIn - the term to which the variable will be assigned.
Method Detail

getInitCode

public java.lang.String getInitCode()
This class does not need any initialization code, therefore, this function simply returns an empty String.

Specified by:
getInitCode in class LogicalExpression
Returns:
DOCUMENT ME!

propagateVarCount

protected void propagateVarCount(int varCount)
This class does not need to propagate the variable count, therefore, this function does nothing.

Specified by:
propagateVarCount in class LogicalExpression
Parameters:
varCount - DOCUMENT ME!

toCode

public java.lang.String toCode()
This function produces the Java code to create a PreconditionAssign object that represents this assignment logical expression at run time.

Specified by:
toCode in class CompileTimeObject
Returns:
DOCUMENT ME!