|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.vutbr.fit.atomicity.AtomicityTriple
public class AtomicityTriple
The atomicity with three ends.
Field Summary | |
---|---|
Access |
atomBegin
|
Constructor Summary | |
---|---|
AtomicityTriple(Access aBegin,
Access aEnd1,
Access aEnd2,
Access aEnd3)
Constructor takes the two ends. |
Method Summary | |
---|---|
void |
genXML(javax.xml.transform.sax.TransformerHandler hd,
boolean learning)
Generates 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)
Determines if the given program location represents one of the ends of this atomicity. |
java.lang.String |
toString()
Give a text representation of the 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 AtomicityTriple(Access aBegin, Access aEnd1, Access aEnd2, Access aEnd3)
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 |