ist.palcom.palbox
Class PalBoxDevice
java.lang.Object
ist.palcom.device.AbstractDevice
ist.palcom.device.AbstractUDPDevice
ist.palcom.palbox.PalBoxDevice
- All Implemented Interfaces:
- java.lang.Runnable
public class PalBoxDevice
- extends AbstractUDPDevice
A simple Palcom device class used as a platform for launching assemblies and services.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dsl
protected DeviceAndServiceListener dsl
PalBoxDevice
public PalBoxDevice(java.lang.String name,
DeviceAndServiceListener dsl)
throws java.io.IOException
- Parameters:
name -
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
createDeviceContext
protected DeviceContext createDeviceContext(DeviceID deviceID,
PalcomScheduler scheduler)
- Description copied from class:
AbstractDevice
- Creates the
DeviceContext of the device. This method has to be
implemented in a concrete subclass.
- Overrides:
createDeviceContext in class AbstractUDPDevice
- Parameters:
deviceID - The device ID.scheduler - The scheduler.
- Returns:
- The DeviceContext
getDeviceIO
public IDeviceIO getDeviceIO()
initDevice
public void initDevice()
throws java.io.IOException
- Description copied from class:
AbstractDevice
- Initialize the device. Called from a PalcomThread. Here the actual setup
is done. Subclasses override this method, and call super.initDevice from
there.
- Overrides:
initDevice in class AbstractDevice
- Throws:
java.io.IOException
stopDevice
public void stopDevice()
throws java.io.IOException
- Description copied from class:
AbstractDevice
- Stop the device. Called from a PalcomThread. Here the actual cleanup is
done. Subclasses override this method, and call super.stopDevice from
there.
- Overrides:
stopDevice in class AbstractDevice
- Throws:
java.io.IOException
loadAssembly
protected boolean loadAssembly(java.io.File assemblyFile,
AssemblyID assemblyID,
java.lang.String instanceNbr)
- Short-cut method to allow loading of assemblies
from the "native" user interface of the device
registerAndLoadUnboundService
protected void registerAndLoadUnboundService(java.lang.String className,
java.lang.String versionString)