|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorc.runtime.values.GroupCell
public class GroupCell
A value container that is also a group. Groups are essential to the evaluation of where clauses: all the tokens that arise from execution of a where definition are associated with the same group. Once a value is produced for the group, all these tokens are terminated.
Field Summary | |
---|---|
static GroupCell |
ROOT
|
Method Summary | |
---|---|
void |
close()
|
GroupCell |
createCell(TokenTracer.PullTrace pull)
Groups are organized into a tree. |
java.lang.Object |
forceArg(Token t)
|
Callable |
forceCall(Token t)
|
boolean |
isAlive()
Check if a group has been killed |
void |
setRegion(GroupRegion region)
|
void |
setValue(Token token)
This call defines the fundamental behavior of groups: When the value is bound, all subgroups are killed and all waiting tokens are activated. |
void |
waitForValue(Token t)
Add a token to the waiting queue of this group |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final GroupCell ROOT
Method Detail |
---|
public GroupCell createCell(TokenTracer.PullTrace pull)
pullTrace
- used to identify the group cell in traces (see TokenTracer.pull()
).
public void setValue(Token token)
token
- the token with the result value for the grouppublic boolean isAlive()
public void waitForValue(Token t)
t
- public java.lang.Object forceArg(Token t)
forceArg
in interface Future
public Callable forceCall(Token t) throws UncallableValueException
forceCall
in interface Future
UncallableValueException
public void close()
public void setRegion(GroupRegion region)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |