Package gda.px.epics
Class Utils
java.lang.Object
gda.px.epics.Utils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanreadBooleanOrThrowDeviceException(ReadOnlyPV<Boolean> pv, String description) static doublereadDoubleOrThrowDeviceException(ReadOnlyPV<Double> pv, String description) static intreadIntegerOrThrowDeviceException(ReadOnlyPV<Integer> pv, String description) static StringreadStringOrThrowDeviceException(ReadOnlyPV<String> pv, String description) static voidwaitForBoolean(ReadOnlyPV<Boolean> pv, int timeoutInSeconds, String checkDescription, String failDescription) static voidwaitForBoolean(ReadOnlyPV<Boolean> pv, int timeoutInSeconds, String checkDescription, String failDescription, boolean requiredValue) static voidwriteBooleanOrThrowDeviceException(PV<Boolean> pv, boolean value, String description) static voidwriteDoubleNoWaitOrThrowDeviceException(PV<Double> pv, double value, String description) static voidwriteDoubleOrThrowDeviceException(PV<Double> pv, double value, String description) static voidwriteIntegerNoWaitOrThrowDeviceException(PV<Integer> pv, int value, String description) static voidwriteIntegerOrThrowDeviceException(PV<Integer> pv, int value, String description) static voidwriteStringAsByteArrayOrThrowDeviceException(PV<Byte[]> pv, String value, String description) static voidwriteStringOrThrowDeviceException(PV<String> pv, String value, String description)
-
Method Details
-
readBooleanOrThrowDeviceException
public static boolean readBooleanOrThrowDeviceException(ReadOnlyPV<Boolean> pv, String description) throws DeviceException - Throws:
DeviceException
-
readIntegerOrThrowDeviceException
public static int readIntegerOrThrowDeviceException(ReadOnlyPV<Integer> pv, String description) throws DeviceException - Throws:
DeviceException
-
readDoubleOrThrowDeviceException
public static double readDoubleOrThrowDeviceException(ReadOnlyPV<Double> pv, String description) throws DeviceException - Throws:
DeviceException
-
readStringOrThrowDeviceException
public static String readStringOrThrowDeviceException(ReadOnlyPV<String> pv, String description) throws DeviceException - Throws:
DeviceException
-
writeBooleanOrThrowDeviceException
public static void writeBooleanOrThrowDeviceException(PV<Boolean> pv, boolean value, String description) throws DeviceException - Throws:
DeviceException
-
writeIntegerOrThrowDeviceException
public static void writeIntegerOrThrowDeviceException(PV<Integer> pv, int value, String description) throws DeviceException - Throws:
DeviceException
-
writeIntegerNoWaitOrThrowDeviceException
public static void writeIntegerNoWaitOrThrowDeviceException(PV<Integer> pv, int value, String description) throws DeviceException - Throws:
DeviceException
-
writeDoubleOrThrowDeviceException
public static void writeDoubleOrThrowDeviceException(PV<Double> pv, double value, String description) throws DeviceException - Throws:
DeviceException
-
writeDoubleNoWaitOrThrowDeviceException
public static void writeDoubleNoWaitOrThrowDeviceException(PV<Double> pv, double value, String description) throws DeviceException - Throws:
DeviceException
-
writeStringAsByteArrayOrThrowDeviceException
public static void writeStringAsByteArrayOrThrowDeviceException(PV<Byte[]> pv, String value, String description) throws DeviceException - Throws:
DeviceException
-
writeStringOrThrowDeviceException
public static void writeStringOrThrowDeviceException(PV<String> pv, String value, String description) throws DeviceException - Throws:
DeviceException
-
waitForBoolean
public static void waitForBoolean(ReadOnlyPV<Boolean> pv, int timeoutInSeconds, String checkDescription, String failDescription) throws DeviceException - Throws:
DeviceException
-
waitForBoolean
public static void waitForBoolean(ReadOnlyPV<Boolean> pv, int timeoutInSeconds, String checkDescription, String failDescription, boolean requiredValue) throws DeviceException - Throws:
DeviceException
-