org.jscience.computing.ai.planning
Class InternalMethod

java.lang.Object
  extended by org.jscience.computing.ai.planning.CompileTimeObject
      extended by org.jscience.computing.ai.planning.InternalElement
          extended by org.jscience.computing.ai.planning.InternalMethod

public class InternalMethod
extends InternalElement

Each method at compile time is represented as an instance of this class.


Constructor Summary
InternalMethod(Predicate head, java.util.Vector labelsIn, java.util.Vector presIn, java.util.Vector subsIn)
          To initialize an InternalMethod object.
 
Method Summary
 java.lang.String toCode()
          This function produces the Java code needed to implement this method.
 
Methods inherited from class org.jscience.computing.ai.planning.InternalElement
getCnt, getHead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalMethod

public InternalMethod(Predicate head,
                      java.util.Vector labelsIn,
                      java.util.Vector presIn,
                      java.util.Vector subsIn)
To initialize an InternalMethod object.

Parameters:
head - head of the method (i.e., the compound task which can be decomposed by using this method).
labelsIn - a Vector of String labels.
presIn - a Vector of logical preconditions.
subsIn - a Vector of task lists.
Method Detail

toCode

public java.lang.String toCode()
This function produces the Java code needed to implement this method.

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