|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--mit.ai.techniques.PlanningProblem
This class represents the planning problem.
| Field Summary | |
private Conjunction |
goalConditions
|
private Conjunction |
initialConditions
Stop searching after this size. |
static int |
maxPlanDepth
|
private java.util.Vector |
operators
|
private java.util.Hashtable |
symbolTable
|
| Constructor Summary | |
PlanningProblem(java.lang.String path)
Make a planning problem from a file. |
|
| Method Summary | |
void |
addMaintenanceOperators(java.util.Vector operators)
For each literal in the symbol table, make a new maintenance operator and add it to the vector of operators. |
private void |
assertString(java.io.StreamTokenizer st)
Throw an exception if the current token isn't a string. |
private void |
eatLineFeeds(java.io.StreamTokenizer st)
Be sure the next token is a line feed and eat it and any following line feeds. |
java.util.Vector |
getOperators()
Return the operators. |
java.util.Hashtable |
getSymbolTable()
Return the symbol table. |
private void |
makeSymbolTable(java.io.StreamTokenizer st)
The first line of the input file is a list of all the propositions. |
private Conjunction |
readConjunction(java.io.StreamTokenizer st)
Read a conjunction from the current line of the input file. |
private Operator |
readOperator(java.io.StreamTokenizer st)
An operator has a name on one line, then the next line represents a conjunction of preconditions and the next line represents a conjunction of effects. |
private java.util.Vector |
readOperators(java.io.StreamTokenizer st)
Read in operators until we hit the end of the file. |
java.lang.String |
toString()
Create a string representing the problem. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static int maxPlanDepth
private Conjunction initialConditions
private Conjunction goalConditions
private java.util.Vector operators
private java.util.Hashtable symbolTable
| Constructor Detail |
public PlanningProblem(java.lang.String path)
| Method Detail |
private void makeSymbolTable(java.io.StreamTokenizer st)
throws java.io.IOException
private Conjunction readConjunction(java.io.StreamTokenizer st)
throws java.io.IOException
private java.util.Vector readOperators(java.io.StreamTokenizer st)
throws java.io.IOException
private Operator readOperator(java.io.StreamTokenizer st)
throws java.io.IOException
private void eatLineFeeds(java.io.StreamTokenizer st)
throws java.io.IOException
private void assertString(java.io.StreamTokenizer st)
public void addMaintenanceOperators(java.util.Vector operators)
public java.util.Vector getOperators()
public java.util.Hashtable getSymbolTable()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||