|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.vutbr.fit.atomicity.AtomicityMulti
public class AtomicityMulti
The representation of an atomicity which as more than three ends.
Field Summary | |
---|---|
Access |
atomBegin
|
Constructor Summary | |
---|---|
AtomicityMulti(Access aBegin,
java.util.HashSet<Access> aEnd)
Constructor gets a set of ends of the atomicity. |
Method Summary | |
---|---|
void |
genXML(javax.xml.transform.sax.TransformerHandler hd,
boolean learning)
Generates an XML record of this atomicity. |
Access[] |
getAtomEnds()
Returns the array of ending Accesses. |
RaceDetector.Operation |
getBeginOp()
Returns the access type (read/write of the atomicity begin operation. |
java.lang.String |
getKeyProgLocation()
Returns ConTest program location of the begin access of this atomicity. |
void |
incViolation()
This method will safely increment tne counter of this atomicity violation - this value is used during the learning stage. |
RaceDetector.Operation |
isEnd(java.lang.String progLocation)
Returns true if the given program location represents the end of the atomicity. |
java.lang.String |
toString()
Returns the string representation of this atomicity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final Access atomBegin
Constructor Detail |
---|
public AtomicityMulti(Access aBegin, java.util.HashSet<Access> aEnd)
aEnd
- Method Detail |
---|
public RaceDetector.Operation getBeginOp()
getBeginOp
in interface Atomicity
public java.lang.String getKeyProgLocation()
getKeyProgLocation
in interface Atomicity
public Access[] getAtomEnds()
getAtomEnds
in interface Atomicity
public void incViolation()
incViolation
in interface Atomicity
public RaceDetector.Operation isEnd(java.lang.String progLocation)
isEnd
in interface Atomicity
progLocation
- ConTest program location.public void genXML(javax.xml.transform.sax.TransformerHandler hd, boolean learning) throws org.xml.sax.SAXException
genXML
in interface Atomicity
learning
- True if the violation count should be also written
org.xml.sax.SAXException
public java.lang.String toString()
toString
in interface Atomicity
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |