Package edu.wpi.first.hal.simulation
Class SimDeviceDataJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.simulation.SimDeviceDataJNI
public class SimDeviceDataJNI extends JNIWrapper
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimDeviceDataJNI.SimDeviceInfostatic classSimDeviceDataJNI.SimValueInfo -
Constructor Summary
Constructors Constructor Description SimDeviceDataJNI() -
Method Summary
Modifier and Type Method Description static voidcancelSimDeviceCreatedCallback(int uid)static voidcancelSimDeviceFreedCallback(int uid)static voidcancelSimValueChangedCallback(int uid)static voidcancelSimValueCreatedCallback(int uid)static voidcancelSimValueResetCallback(int uid)static SimDeviceDataJNI.SimDeviceInfo[]enumerateSimDevices(String prefix)static SimDeviceDataJNI.SimValueInfo[]enumerateSimValues(int device)static intgetSimDeviceHandle(String name)static StringgetSimDeviceName(int handle)static intgetSimValueDeviceHandle(int handle)static double[]getSimValueEnumDoubleValues(int handle)static String[]getSimValueEnumOptions(int handle)static intgetSimValueHandle(int device, String name)static booleanisSimDeviceEnabled(String name)static intregisterSimDeviceCreatedCallback(String prefix, SimDeviceCallback callback, boolean initialNotify)static intregisterSimDeviceFreedCallback(String prefix, SimDeviceCallback callback, boolean initialNotify)static intregisterSimValueChangedCallback(int handle, SimValueCallback callback, boolean initialNotify)static intregisterSimValueCreatedCallback(int device, SimValueCallback callback, boolean initialNotify)static intregisterSimValueResetCallback(int handle, SimValueCallback callback, boolean initialNotify)Register a callback for SimDeviceJNI.resetSimValue().static voidresetSimDeviceData()static voidsetSimDeviceEnabled(String prefix, boolean enabled)
-
Constructor Details
-
SimDeviceDataJNI
public SimDeviceDataJNI()
-
-
Method Details
-
setSimDeviceEnabled
-
isSimDeviceEnabled
-
registerSimDeviceCreatedCallback
public static int registerSimDeviceCreatedCallback(String prefix, SimDeviceCallback callback, boolean initialNotify) -
cancelSimDeviceCreatedCallback
-
registerSimDeviceFreedCallback
public static int registerSimDeviceFreedCallback(String prefix, SimDeviceCallback callback, boolean initialNotify) -
cancelSimDeviceFreedCallback
-
getSimDeviceHandle
-
getSimDeviceName
-
getSimValueDeviceHandle
-
enumerateSimDevices
-
registerSimValueCreatedCallback
public static int registerSimValueCreatedCallback(int device, SimValueCallback callback, boolean initialNotify) -
cancelSimValueCreatedCallback
-
registerSimValueChangedCallback
public static int registerSimValueChangedCallback(int handle, SimValueCallback callback, boolean initialNotify) -
cancelSimValueChangedCallback
-
registerSimValueResetCallback
public static int registerSimValueResetCallback(int handle, SimValueCallback callback, boolean initialNotify)Register a callback for SimDeviceJNI.resetSimValue(). The callback is called with the old value.- Parameters:
handle- simulated value handlecallback- callbackinitialNotify- ignored (present for consistency)- Returns:
- TODO
-
cancelSimValueResetCallback
-
getSimValueHandle
-
enumerateSimValues
-
getSimValueEnumOptions
-
getSimValueEnumDoubleValues
-
resetSimDeviceData
-