|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.newisys.ova.OVA
public final class OVA
The native OVA interface. This class implements
OVAInterface by providing native implementations for
each interface method.
| Constructor Summary | |
|---|---|
OVA()
Sole constructor. |
|
| 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 eventID,
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 eventID,
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 id)
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. |
static boolean |
isSupported()
Returns whether native OVA support is available. |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OVA()
IllegalStateException - if the simulator does not support OVA| Method Detail |
|---|
public static boolean isSupported()
public String getApiVersion()
getApiVersion in interface OVAInterfacepublic long registerClient()
registerClient in interface OVAInterface
public boolean setConfigSwitch(long clientID,
int confSwitch,
boolean enable)
setConfigSwitch in interface OVAInterfaceclientID - 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
public boolean doAction(long clientID,
int eventID,
int userData)
doAction in interface OVAInterfaceclientID - the client identifiereventID - the type of action to be performed on the OVA engineuserData - user defined data
OVAEngineActionpublic long firstAssert(long clientID)
null if no
asserts are present in the design.
firstAssert in interface OVAInterfaceclientID - the client identifier
null
if no asserts are present in the designOVAAssertpublic long nextAssert(long clientID)
null if no
more asserts are available. It is expected that OVAInterface.firstAssert(long) has
been called before calling this method.
nextAssert in interface OVAInterfaceclientID - the client identifier
null
if no more asserts are availableOVAAssert
public boolean assertDoAction(long clientID,
int eventID,
long assertID,
long attemptID,
int userData)
OVAAssert. Some
actions require an attempt identifier. For those that do not,
attemptID should be zero.
assertDoAction in interface OVAInterfaceclientID - the client identifiereventID - the type of action to be performed on the assertassertID - the assert identifierattemptID - the attempt identifieruserData - user defined data
OVAAssert,
OVAAssertActionpublic boolean hasAssertInfo(long clientID)
hasAssertInfo in interface OVAInterfaceclientID - the client identifier
public OVAAssertInfo getAssertInfo(long clientID,
long id)
OVAInterface.hasAssertInfo(long) will be called and return true before
calling this method.
getAssertInfo in interface OVAInterfaceclientID - the client identifierid - the assert identifier
assertIDOVAAssert
public boolean addEngineListener(long clientID,
int eventID)
addEngineListener in interface OVAInterfaceclientID - the client identifiereventID - the event type
OVAEngineEventType
public boolean addAssertListener(long clientID,
int eventID,
long assertID)
addAssertListener in interface OVAInterfaceclientID - the client identifiereventID - the event typeassertID - the assert identifier
OVAAssert,
OVAAssertEventType
public boolean removeAssertListener(int eventID,
long assertID)
removeAssertListener in interface OVAInterfaceeventID - the event typeassertID - the assert identifier
OVAAssert,
OVAEngineEventTypepublic boolean removeEngineListener(int eventID)
removeEngineListener in interface OVAInterfaceeventID - the event type
OVAEngineEventType
public boolean setAssertSeverity(long clientID,
long assertID,
int severity)
setAssertSeverity in interface OVAInterfaceclientID - the client identifierassertID - the assert identifierseverity - the severity level
OVAAssert
public int getAssertSeverity(long clientID,
long assertID)
getAssertSeverity in interface OVAInterfaceclientID - the client identifierassertID - the assert identifier
assertIDOVAAssert
public boolean setAssertCategory(long clientID,
long assertID,
int category)
setAssertCategory in interface OVAInterfaceclientID - the client identifierassertID - the assert identifiercategory - the category
OVAAssert
public int getAssertCategory(long clientID,
long assertID)
getAssertCategory in interface OVAInterfaceclientID - the client identifierassertID - the assert identifier
assertIDOVAAssert
public boolean setAssertUserMessage(long clientID,
long assertID,
String msg)
setAssertUserMessage in interface OVAInterfaceclientID - the client identifierassertID - the assert identifiermsg - the user message
OVAAssert
public String getAssertUserMessage(long clientID,
long assertID)
getAssertUserMessage in interface OVAInterfaceclientID - the client identifierassertID - the assert identifier
assertIDOVAAssert
public boolean enableAssertCount(long clientID,
long assertID,
int eventID)
OVAInterface.addAssertListener(long, int, long) method in
order to improve performance. This method resets the count to zero before
enabling counting.
enableAssertCount in interface OVAInterfaceclientID - the client identifierassertID - the assert identifiereventID - the event type being counted
OVAAssert,
OVAAssertEventType
public boolean disableAssertCount(long clientID,
long assertID,
int eventID)
OVAInterface.enableAssertCount(long, long, int). The event count
obtained via OVAInterface.getAssertCount(long, long, int) will continue to be valid after this
method is called (unless there is a subsequent call to enableAssertCount).
disableAssertCount in interface OVAInterfaceclientID - the client identifierassertID - the assert identifiereventID - the event type being counted
OVAAssert,
OVAAssertEventType
public long getAssertCount(long clientID,
long assertID,
int eventID)
getAssertCount in interface OVAInterfaceclientID - the client identifierassertID - the assert identifiereventID - the event type being counted
eventID
occurred for the assert referenced by assertIDOVAAssert,
OVAAssertEventType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||