|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.ai.planning.Domain
public abstract class Domain
Each domain at run time is represented as a class derived from this abstract class.
| Field Summary | |
|---|---|
protected Axiom[][] |
axioms
The axioms in this domain. |
protected java.lang.String[] |
compoundTasks
The String names of compound tasks that appear in
the domain description. |
protected java.lang.String[] |
constants
The String names of constant symbols that appear in
the domain description. |
protected Method[][] |
methods
The methods in this domain. |
protected Operator[][] |
ops
The operators in this domain. |
protected java.lang.String[] |
primitiveTasks
The String names of primitive tasks that appear in
the domain description. |
protected java.lang.String[] |
problemConstants
The String names of constant symbols that appear in
the problem description. |
| Constructor Summary | |
|---|---|
Domain()
|
|
| Method Summary | |
|---|---|
Axiom[][] |
getAxioms()
This function returns the axioms in this domain. |
java.lang.String |
getConstant(int idx)
This function returns the String representation of
a given constant symbol that appears in the domain description, the
problem description, or both. |
java.lang.String[] |
getPrimitiveTasks()
This function returns an array of the String
representations of all the primitive tasks in the domain description. |
void |
setProblemConstants(java.lang.String[] inp)
This function sets the array of String
representations of constant symbols that do not appear in the domain
description but in the planning problem that is being solved. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Axiom[][] axioms
protected java.lang.String[] compoundTasks
String names of compound tasks that appear in
the domain description. These Strings are only used to
print the task lists, since the compound tasks are mapped to integers
at compile time. The same integers are used to index this array.
protected java.lang.String[] constants
String names of constant symbols that appear in
the domain description. These Strings are only used to
print the constant symbols, since the constant symbols are mapped to
integers at compile time. The same integers are used to index this
array.
protected Method[][] methods
protected Operator[][] ops
protected java.lang.String[] primitiveTasks
String names of primitive tasks that appear in
the domain description. These Strings are only used to
print the task lists, since the primitive tasks are mapped to integers
at compile time. The same integers are used to index this array.
protected java.lang.String[] problemConstants
String names of constant symbols that appear in
the problem description. These Strings are only used to
print the constant symbols, since the constant symbols are mapped to
integers at compile time. The same integers are used to index this
array.
| Constructor Detail |
|---|
public Domain()
| Method Detail |
|---|
public Axiom[][] getAxioms()
public java.lang.String getConstant(int idx)
String representation of
a given constant symbol that appears in the domain description, the
problem description, or both.
idx - the integer equivalent of the constant symbol.
String representation of the constant symbol.public java.lang.String[] getPrimitiveTasks()
String
representations of all the primitive tasks in the domain description.
This list is used to print the plans after they are found.
String representations of the
primitive tasks in the domain.public void setProblemConstants(java.lang.String[] inp)
String
representations of constant symbols that do not appear in the domain
description but in the planning problem that is being solved.
inp - the array of String representations of constant
symbols.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||