|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sofya.apps.atomicity.ResultCollector
public class ResultCollector
Records the results of atomicity checking on methods invoked in the monitored program.
Constructor Summary | |
---|---|
ResultCollector()
Creates a new result collector. |
Method Summary | |
---|---|
void |
add(MethodSignature mSig,
boolean atomic)
Add the result of an atomicity check for an invocation of a given method. |
boolean |
get(MethodSignature mSig)
Checks whether a method was found to be atomic. |
MethodSignature[] |
getMethods()
Gets the list of methods for which atomicity results are available. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultCollector()
Method Detail |
---|
public void add(MethodSignature mSig, boolean atomic)
mSig
- Signature of the invoked method.atomic
- Boolean specifying whether the invocation was found
to be atomic or non-atomic.public boolean get(MethodSignature mSig)
true
if the method was found to be atomic
on all invocations, false
otherwise. This method will
also return false
if the method was not invoked.public MethodSignature[] getMethods()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |