|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJSHOP2.CompileTimeObject
JSHOP2.TaskAtom
public class TaskAtom
Each task atom both at compile time and at run time is represented as an object of this class.
Field Summary | |
---|---|
private Predicate |
head
The task atom itself. |
private boolean |
immediate
Whether or not this task atom is marked :immediate . |
private boolean |
primitive
Whether this task atom is a primitive one. |
Fields inherited from class JSHOP2.CompileTimeObject |
---|
endl |
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 |
Field Detail |
---|
private Predicate head
private boolean immediate
:immediate
.
private boolean primitive
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 CompileTimeObject
String
.public java.lang.String toString()
String
showing
the value of this task atom.
toString
in class java.lang.Object
String
that shows the value of this
task atom.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |