org.jscience.computing.ai.planning
Class InternalOperator
java.lang.Object
org.jscience.computing.ai.planning.CompileTimeObject
org.jscience.computing.ai.planning.InternalElement
org.jscience.computing.ai.planning.InternalOperator
public class InternalOperator
- extends InternalElement
Each operator at compile time is represented as an instance of this
class.
|
Method Summary |
java.lang.String |
toCode()
This function produces the Java code needed to implement this
operator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InternalOperator
public InternalOperator(Predicate head,
LogicalPrecondition preIn,
java.util.Vector delIn,
java.util.Vector addIn,
Term costIn)
- To initialize an
InternalOperator object.
- Parameters:
head - head of the operator (i.e., the primitive task that can be
achieved by applying this operator).preIn - the logical precondition for this operator.delIn - the delete list of the operator. The first element of the
Vector is of type Integer. If it is
not null, it means that the delete list of this
operator is a variable, and the value of the
Integer shows that variable's index. Otherwise, the
rest of the Vector is of type
DelAddElement, representing the atoms and
protections that will be deleted from the state of the world
when this operator is applied.addIn - the add list of the operator. The first element of the
Vector is of type Integer. If it is
not null, it means that the add list of this
operator is a variable, and the value of the
Integer shows that variable's index. Otherwise, the
rest of the Vector is of type
DelAddElement, representing the atoms and
protections that will be added to the state of the world when
this operator is applied.costIn - the cost of the operator.
toCode
public java.lang.String toCode()
- This function produces the Java code needed to implement this
operator.
- Specified by:
toCode in class CompileTimeObject
- Returns:
- DOCUMENT ME!