|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OVAInterface
Interface to the OVA API.
| Method Summary | |
|---|---|
boolean |
addAssertListener(long clientID,
int eventID,
long assertID)
Adds a callback for a specified assert and event type. |
boolean |
addEngineListener(long clientID,
int eventID)
Adds a callback for the specified engine event type. |
boolean |
assertDoAction(long clientID,
int actionID,
long assertID,
long attemptID,
int userData)
Performs the specified action on the specified OVAAssert. |
boolean |
disableAssertCount(long clientID,
long assertID,
int eventID)
Disables counting the specified event type for the specified assert. |
boolean |
doAction(long clientID,
int actionID,
int userData)
Performs the specified action on the OVA Engine. |
boolean |
enableAssertCount(long clientID,
long assertID,
int eventID)
Enables counting the specified event type for the specified assert. |
long |
firstAssert(long clientID)
Returns the first assert from the engine, or null if no
asserts are present in the design. |
String |
getApiVersion()
Returns a string representing the OVA API version. |
int |
getAssertCategory(long clientID,
long assertID)
Returns the current category for the specified assert. |
long |
getAssertCount(long clientID,
long assertID,
int eventID)
Returns the number of times the specified event type has occurred for the specified assert since counting was enabled. |
OVAAssertInfo |
getAssertInfo(long clientID,
long assertID)
Returns the information for the specified assert. |
int |
getAssertSeverity(long clientID,
long assertID)
Returns the current severity level for the specified assert. |
String |
getAssertUserMessage(long clientID,
long assertID)
Returns the current user message for the specified assert. |
boolean |
hasAssertInfo(long clientID)
Returns whether information about OVA asserts is available from OVA. |
long |
nextAssert(long clientID)
Returns the next assert from the engine, or null if no
more asserts are available. |
long |
registerClient()
Registers a client with OVA. |
boolean |
removeAssertListener(int eventID,
long assertID)
Removes a callback for a specified assert and event type. |
boolean |
removeEngineListener(int eventID)
Removes a callback for the specified engine event type. |
boolean |
setAssertCategory(long clientID,
long assertID,
int category)
Sets the category of the specified assert. |
boolean |
setAssertSeverity(long clientID,
long assertID,
int severity)
Sets the severity level of the specified assert. |
boolean |
setAssertUserMessage(long clientID,
long assertID,
String msg)
Sets the user message of the specified assert. |
boolean |
setConfigSwitch(long clientID,
int confSwitch,
boolean enable)
Sets the specified OVA option. |
| Method Detail |
|---|
String getApiVersion()
long registerClient()
boolean setConfigSwitch(long clientID,
int confSwitch,
boolean enable)
clientID - the client identifierconfSwitch - the configuration switch to be setenable - true if confSwitch should be enabled, false
otherwise
- Returns:
- true if the operation is successful, false otherwise
- See Also:
OVAConfigSwitch
boolean doAction(long clientID,
int actionID,
int userData)
clientID - the client identifieractionID - the type of action to be performed on the OVA engineuserData - user defined data
OVAEngineActionlong firstAssert(long clientID)
null if no
asserts are present in the design.
clientID - the client identifier
null
if no asserts are present in the designOVAAssertlong nextAssert(long clientID)
null if no
more asserts are available. It is expected that firstAssert(long) has
been called before calling this method.
clientID - the client identifier
null
if no more asserts are availableOVAAssert
boolean assertDoAction(long clientID,
int actionID,
long assertID,
long attemptID,
int userData)
OVAAssert. Some
actions require an attempt identifier. For those that do not,
attemptID should be zero.
clientID - the client identifieractionID - the type of action to be performed on the assertassertID - the assert identifierattemptID - the attempt identifieruserData - user defined data
OVAAssert,
OVAAssertActionboolean hasAssertInfo(long clientID)
clientID - the client identifier
OVAAssertInfo getAssertInfo(long clientID,
long assertID)
hasAssertInfo(long) will be called and return true before
calling this method.
clientID - the client identifierassertID - the assert identifier
assertIDOVAAssert
boolean addEngineListener(long clientID,
int eventID)
clientID - the client identifiereventID - the event type
OVAEngineEventType
boolean addAssertListener(long clientID,
int eventID,
long assertID)
clientID - the client identifiereventID - the event typeassertID - the assert identifier
OVAAssert,
OVAAssertEventType
boolean removeAssertListener(int eventID,
long assertID)
eventID - the event typeassertID - the assert identifier
OVAAssert,
OVAEngineEventTypeboolean removeEngineListener(int eventID)
eventID - the event type
OVAEngineEventType
boolean setAssertSeverity(long clientID,
long assertID,
int severity)
clientID - the client identifierassertID - the assert identifierseverity - the severity level
OVAAssert
int getAssertSeverity(long clientID,
long assertID)
clientID - the client identifierassertID - the assert identifier
assertIDOVAAssert
boolean setAssertCategory(long clientID,
long assertID,
int category)
clientID - the client identifierassertID - the assert identifiercategory - the category
OVAAssert
int getAssertCategory(long clientID,
long assertID)
clientID - the client identifierassertID - the assert identifier
assertIDOVAAssert
boolean setAssertUserMessage(long clientID,
long assertID,
String msg)
clientID - the client identifierassertID - the assert identifiermsg - the user message
OVAAssert
String getAssertUserMessage(long clientID,
long assertID)
clientID - the client identifierassertID - the assert identifier
assertIDOVAAssert
boolean enableAssertCount(long clientID,
long assertID,
int eventID)
addAssertListener(long, int, long) method in
order to improve performance. This method resets the count to zero before
enabling counting.
clientID - the client identifierassertID - the assert identifiereventID - the event type being counted
OVAAssert,
OVAAssertEventType
boolean disableAssertCount(long clientID,
long assertID,
int eventID)
enableAssertCount(long, long, int). The event count
obtained via getAssertCount(long, long, int) will continue to be valid after this
method is called (unless there is a subsequent call to enableAssertCount).
clientID - the client identifierassertID - the assert identifiereventID - the event type being counted
OVAAssert,
OVAAssertEventType
long getAssertCount(long clientID,
long assertID,
int eventID)
clientID - the client identifierassertID - the assert identifiereventID - the event type being counted
eventID
occurred for the assert referenced by assertID
OVAException - if counting has not been enabledOVAAssert,
OVAAssertEventType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||