|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Queue
A Queue
represents a queue of tasks which is filled
during the execution of an XL program. For the base implementation
of the XL interfaces, when a derivation shall be performed by invocation
of Graph.derive()
,
the execution of the queued tasks is induced by the invocation
of process(int[])
.
Instances of Queue
are obtained at run-time by the method
QueueCollection.getQueue(QueueDescriptor)
.
The returned queue is registered automatically with the
QueueCollection
, this ensures that its
process
method is invoked when all queues shall be processes.
The order in which the process
method is invoked
for the registered queues of a QueueCollection
is defined
by the QueueDescriptor
s which were used
to obtain the queues, see
QueueCollection.process(int[])
.
Method Summary | |
---|---|
void |
clear()
Clears the queue. |
void |
clearSegmentsToExclude(int[] segments)
|
QueueDescriptor<?> |
getDescriptor()
Returns the descriptor which was used to create this queue. |
void |
markSegment(int n)
|
boolean |
process(int[] segments)
Processes all queued tasks. |
void |
resetToSegment(int n)
|
Method Detail |
---|
void clear()
QueueCollection
in order to reuse the queue for a new transformation step.
void clearSegmentsToExclude(int[] segments)
QueueDescriptor<?> getDescriptor()
QueueCollection.getQueue(QueueDescriptor)
,
QueueDescriptor.createQueue(QueueCollection)
void markSegment(int n)
boolean process(int[] segments) throws RuntimeModelException
QueueCollection.process(int[])
.
true
iff the execution of tasks resulted
in modifications to the Graph
RuntimeModelException
- if some error occurs during executionvoid resetToSegment(int n)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |