|
JIVE Platform Release 0.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MultiThreadedSequenceModel
A SequenceModel
used to represent a program execution history of
a multi-threaded program. A multi-threaded sequence model differs from a
sequence model in that it may contain more than one root. Each root
corresponds to the root of the call tree for a thread of execution.
Iteration over the entire model by event results in event occurrences being returned in the order in which they arose amongst all threads. Therefore, event occurrences of different threads will be interleaved.
SequenceModel
,
ExecutionOccurrence
,
EventOccurrence
,
MessageSend
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface edu.buffalo.cse.jive.sequence.SequenceModel |
---|
SequenceModel.EventVisitor, SequenceModel.ExecutionVisitor, SequenceModel.Listener |
Method Summary | |
---|---|
void |
accept(SequenceModel.ExecutionVisitor visitor,
ThreadID thread)
Processes an (@code EventVisitor} the thread of execution of the supplied ThreadID in a depth-first order. |
boolean |
containsThread(ThreadID thread)
Returns whether or not the thread with the supplied ThreadID
is part of the model. |
ExecutionOccurrence |
getRoot(ThreadID thread)
Returns the root of the thread execution with the supplied ThreadID . |
List<ExecutionOccurrence> |
getRoots()
Returns a list of all the roots contained within the model. |
List<ThreadID> |
getThreads()
Returns a list of all the ThreadID s that have threads
contained in the model. |
Iterator<EventOccurrence> |
iterator(ThreadID thread)
Returns an iterator which traverses the thread of execution of the supplied ThreadID in a depth-first order. |
long |
lastEventNumber(ThreadID thread)
Returns the event number of the last event occurring on the supplied thread. |
Methods inherited from interface edu.buffalo.cse.jive.sequence.SequenceModel |
---|
accept, accept, addListener, getEventOccurrence, getModelLock, getRoot, getThread, iterator, iterator, lastEventNumber, objectContext, removeListener |
Method Detail |
---|
void accept(SequenceModel.ExecutionVisitor visitor, ThreadID thread)
ThreadID
in a depth-first order.
visitor
- the event visitorthread
- the desired thread to visitIterator<EventOccurrence> iterator(ThreadID thread)
ThreadID
in a depth-first order.
thread
- the thread of execution to be traversed
boolean containsThread(ThreadID thread)
ThreadID
is part of the model.
thread
- the thread to be tested
true
if the model contains the thread,
false
otherwiseList<ThreadID> getThreads()
ThreadID
s that have threads
contained in the model.
ThreadID
ExecutionOccurrence getRoot(ThreadID thread)
ThreadID
.
thread
- the thread whose root should be returned
List<ExecutionOccurrence> getRoots()
long lastEventNumber(ThreadID thread)
thread
- the thread whose last event number should be returned
|
JIVE Platform Release 0.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |