edu.rice.cs.cunit.record.syncPoints.object
Class ObjectEnterWaitSyncPoint.Translated

java.lang.Object
  extended by edu.rice.cs.cunit.record.syncPoints.object.AObjectSyncPoint.Translated
      extended by edu.rice.cs.cunit.record.syncPoints.object.ObjectEnterWaitSyncPoint.Translated
All Implemented Interfaces:
ISyncPoint.Translated
Enclosing class:
ObjectEnterWaitSyncPoint

public static class ObjectEnterWaitSyncPoint.Translated
extends AObjectSyncPoint.Translated

Class for translated versions on the monitor side.


Field Summary
private  long _timeOut
          Timeout duration.
 
Fields inherited from class edu.rice.cs.cunit.record.syncPoints.object.AObjectSyncPoint.Translated
_lockInfo, _threadInfo
 
Constructor Summary
ObjectEnterWaitSyncPoint.Translated(LockInfo object, long timeOut, ThreadInfo thread)
          Constructor for translated version on the monitor side.
 
Method Summary
<R,P> R
execute(ISyncPointVisitor<R,P> visitor, P param)
          Executes a visitor.
 long getTimeOut()
          Returns the timeout duration.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class edu.rice.cs.cunit.record.syncPoints.object.AObjectSyncPoint.Translated
getLockInfo, getThreadInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_timeOut

private long _timeOut
Timeout duration.

Constructor Detail

ObjectEnterWaitSyncPoint.Translated

public ObjectEnterWaitSyncPoint.Translated(LockInfo object,
                                           long timeOut,
                                           ThreadInfo thread)
Constructor for translated version on the monitor side.

Parameters:
object - info about the object
timeOut - timeout duration
thread - info about the thread
Method Detail

execute

public <R,P> R execute(ISyncPointVisitor<R,P> visitor,
                       P param)
Executes a visitor.

Parameters:
visitor - visitor to execute
param - visitor-specific parameter
Returns:
visitor-specific return value

getTimeOut

public long getTimeOut()
Returns the timeout duration.

Returns:
timeout duration

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class AObjectSyncPoint.Translated
Returns:
a string representation of the object.