|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.ai.planning.Plan
public class Plan
This class represent a plan as a LinkedList of ground
instances of operators.
| Constructor Summary | |
|---|---|
Plan()
To initialize the plan to an empty list. |
|
| Method Summary | |
|---|---|
double |
addOperator(Operator op,
Term[] binding)
To add an operator instance to the end of the plan. |
java.lang.Object |
clone()
To clone an object of this class. |
void |
removeOperator(double opCost)
To remove the operator instance at the end of the plan. |
java.lang.String |
toString()
This function returns a printable String
representation of this plan. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Plan()
| Method Detail |
|---|
public double addOperator(Operator op,
Term[] binding)
op - the operator the instance of which is being added.binding - the binding to instantiate the operator.
public java.lang.Object clone()
clone in class java.lang.Objectpublic void removeOperator(double opCost)
opCost - the cost of the operator instance to be removed.public java.lang.String toString()
String
representation of this plan.
toString in class java.lang.ObjectString representation of this plan.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||