edu.mit.ai.psg.traveler
Interface CallRecord

All Known Implementing Classes:
CallRecordDefault

public interface CallRecord
extends SynchronizationRecord

Activity record interface for method or constructor calls, including both invocation and result (return or throw).

See Also:
Trace, TraceRecorder

Inner classes inherited from class edu.mit.ai.psg.traveler.SynchronizationRecord
SynchronizationRecord.Entry, SynchronizationRecord.Exit
 
Method Summary
 Member getMember()
          method or constructor invoked
 Object[] getParameters()
          actual parameter values (not cloned)
 Object getResult()
          value returned, exception thrown, or null
 String invocationString()
          string describing invocation target.method(arguments...)
 boolean isComplete()
          true if call record has been completed
 boolean isCompleteByReturn()
          true if call completed by returning
 boolean isCompleteByReturnVoid()
          true if call completed by returning void
 boolean isCompleteByThrow()
          true if call completed by throwing an exception
 void recordReturned(Object value)
          Record that call completed by returning value
 void recordReturnedVoid()
          Record that call completed by returning void
 void recordThrew(Throwable thrown)
          Record that call completed by throwing thrown
 String resultString()
          string describing result: no recorded result, returned void, returned value, or threw exception
 
Methods inherited from interface edu.mit.ai.psg.traveler.SynchronizationRecord
addSynchronizationChild, addSynchronizationEntry, addSynchronizationExit, getSynchronizationChildren, getSynchronizationEntry, getSynchronizationExit, getSynchronizationParent, getTargetNow, getTargetThen, isSynchronized, isSynchronizedWait, setSynchronizationParent
 
Methods inherited from interface edu.mit.ai.psg.traveler.ActivityRecord
addChild, addThreadedChild, finished, getChildren, getChildrenInThread, getParent, getThreadedChildren, isFinished, setParent
 

Method Detail

getMember

public Member getMember()
method or constructor invoked

getParameters

public Object[] getParameters()
actual parameter values (not cloned)

recordReturnedVoid

public void recordReturnedVoid()
Record that call completed by returning void

recordReturned

public void recordReturned(Object value)
Record that call completed by returning value

recordThrew

public void recordThrew(Throwable thrown)
Record that call completed by throwing thrown

isComplete

public boolean isComplete()
true if call record has been completed

isCompleteByThrow

public boolean isCompleteByThrow()
true if call completed by throwing an exception

isCompleteByReturn

public boolean isCompleteByReturn()
true if call completed by returning

isCompleteByReturnVoid

public boolean isCompleteByReturnVoid()
true if call completed by returning void

getResult

public Object getResult()
value returned, exception thrown, or null

invocationString

public String invocationString()
string describing invocation target.method(arguments...)

resultString

public String resultString()
string describing result: no recorded result, returned void, returned value, or threw exception

Copyright (c) 1996-1999
Massachusetts Institute of Technology

Feedback: jeva-feedback@ai.mit.edu