|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.ai.planning.CompileTimeObject
org.jscience.computing.ai.planning.TaskAtom
public class TaskAtom
Each task atom both at compile time and at run time is represented as an object of this class.
| Constructor Summary | |
|---|---|
TaskAtom(Predicate headIn,
boolean immediateIn,
boolean primitiveIn)
To initialize this task atom. |
|
| Method Summary | |
|---|---|
TaskAtom |
bind(Term[] binding)
To calculate the result of applying a given binding to this task atom. |
Predicate |
getHead()
To get the head of this task atom. |
boolean |
isImmediate()
To check if this task atom is marked :immediate. |
boolean |
isPrimitive()
To check if this task atom is primitive. |
void |
print()
This function is used to print this task atom. |
java.lang.String |
toCode()
This function produces Java code to create this task atom. |
java.lang.String |
toString()
This function is used to produce a printable String
showing the value of this task atom. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TaskAtom(Predicate headIn,
boolean immediateIn,
boolean primitiveIn)
headIn - the task atom itself.immediateIn - whether or not this task atom is marked
:immediate.primitiveIn - whether or not this task atom is a primitive one.| Method Detail |
|---|
public TaskAtom bind(Term[] binding)
binding - the binding to be applied.
public Predicate getHead()
public boolean isImmediate()
:immediate.
true if the task atom is marked
:immediate, false otherwise.public boolean isPrimitive()
true if the task atom is primitive,
false otherwise.public void print()
public java.lang.String toCode()
toCode in class CompileTimeObjectpublic java.lang.String toString()
String
showing the value of this task atom.
toString in class java.lang.ObjectString that shows the value of this
task atom.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||