Class AbstractRunnableDeviceDelegate

java.lang.Object
org.eclipse.scanning.sequencer.AbstractRunnableDeviceDelegate

public abstract class AbstractRunnableDeviceDelegate extends Object
This class is the abstract base class of all classes which define the delegated functionality of an RunnableDeviceProxy object.

Since this defines all functions through inheritance rather than through annotations, and it doesn't depend on interface default methods, it can be used as a base class for delegates defined in Jython.

Note that an object of this class must be initialised with a reference to the object it is going to provide delegated functionality to and setDelegate() on that object should then be immediately called with this one.

Example of use:


runnableDeviceProxyFinder = finder.find("runnableDeviceProxyFinder")
runnableDeviceProxy = runnableDeviceProxyFinder.getRunnableDevice()

from jythonRunnableDeviceDelegate import JythonRunnableDeviceDelegate
jythonRunnableDeviceDelegate = JythonRunnableDeviceDelegate(runnableDeviceProxy)
runnableDeviceProxy.setDelegate(jythonRunnableDeviceDelegate)
runnableDeviceProxy.register()