JMACS

org.jmacs
Interface IDiDriver


public interface IDiDriver

device-interface (DI) driver. Implementations are not required to be thread-safe.

Version:
$Id: IDiDriver.java 656 2006-07-05 17:12:57Z rob $
Author:
Rob Dickens

Nested Class Summary
static interface IDiDriver.IClient
          wishes to be able to behave as client in some way.
static interface IDiDriver.IContext
          passed to IDiDriver.IClients.
 
Method Summary
 Serializable executeCmd(Serializable cmd, boolean control, String diName)
          executes cmd.
 Serializable getStatus()
          samples the device's status at regular intervals.
 

Method Detail

executeCmd

Serializable executeCmd(Serializable cmd,
                        boolean control,
                        String diName)
                        throws DiDriverException
executes cmd.

Parameters:
control - true if client has control (as opposed to monitor-only) access
diName - fully-qualified name of the client DI, or null if called from a UI client
Throws:
DiDriverException

getStatus

Serializable getStatus()
                       throws DiDriverException
samples the device's status at regular intervals. Samples (when serialised) may not exceed the payload of a single DatagramPacket.

Throws:
DiDriverException

JMACS

jmacs.org