public class SimEnum
extends SimValue
A wrapper around a simulator enum value handle.
-
-
Constructor Summary
Constructors
Constructor |
Description |
SimEnum(int handle) |
Wraps a simulated value handle as returned by SimDeviceJNI.createSimValueEnum().
|
-
Method Summary
Modifier and Type |
Method |
Description |
int |
get() |
Gets the simulated value.
|
void |
set(int value) |
Sets the simulated value.
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Wraps a simulated value handle as returned by SimDeviceJNI.createSimValueEnum().
- Parameters:
handle
- simulated value handle
-
Method Details
-
Gets the simulated value.
- Returns:
- The current value
-
public void set(
int value)
Sets the simulated value.
- Parameters:
value
- the value to set