|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Device
Interface to a device that can be remotely controlled.
| Field Summary | |
|---|---|
static int |
ERROR
Device status; error occurred |
static int |
INITIAL
Device status; initializing |
static int |
INSTRUMENT_STATE
Metadata update modes |
static int |
MDATA_ALL
|
static int |
OK
Device status; all is well |
static int |
SAFE
Device status; safe mode |
static int |
SAMPLING
Device status; acquiring sample |
static int |
SERVICE_ATTRIBUTES
|
static int |
SERVICE_CACHE
|
static int |
SERVICE_PROPERTIES
|
static int |
SERVICE_XML
|
static int |
SHUTDOWN
Device status; shutting down |
static int |
SLEEPING
Device status; sleeping |
static int |
SUSPEND
Device status; sampling disabled |
static int |
UNKNOWN
Device status; unknown |
| Method Summary | |
|---|---|
Device[] |
getChildren()
Return child Devices. |
byte[] |
getCommPortName()
Get name of host port for this device. |
byte[] |
getFrameworkVersion()
Get framework version. |
long |
getId()
Unique identifier for device instance |
Location |
getLocation()
Return Location of device. |
MetadataPacket |
getMetadata(byte[] cause,
int components,
boolean logPacket)
Get device metadata packet. |
byte[] |
getName()
Name of device service class. |
Device |
getParent()
Return parent Device. |
int |
getSamplingCount()
|
int |
getSamplingErrorCount()
Return sampling error count |
int |
getSamplingRetryCount()
|
int |
getStatus()
Get device status. |
java.net.InetAddress |
host()
Return InetAddress of device service host. |
int |
powerOff()
Turn device power off. |
int |
powerOn()
Turn device power on. |
void |
prepareToRun()
Run the device. |
void |
resume()
Put service in OK state. |
byte[] |
shutdown()
Shut down the service; release all associated resources; returns optional human-readable message |
void |
suspend()
Put service in SUSPEND state. |
int |
test()
Run device's self-test routine. |
| Field Detail |
|---|
static final int INSTRUMENT_STATE
static final int SERVICE_XML
static final int SERVICE_ATTRIBUTES
static final int SERVICE_PROPERTIES
static final int SERVICE_CACHE
static final int MDATA_ALL
static final int OK
static final int ERROR
static final int INITIAL
static final int SHUTDOWN
static final int SUSPEND
static final int SAMPLING
static final int SLEEPING
static final int SAFE
static final int UNKNOWN
| Method Detail |
|---|
byte[] getName()
throws java.rmi.RemoteException
java.rmi.RemoteException
long getId()
throws java.rmi.RemoteException
java.rmi.RemoteException
void prepareToRun()
throws java.rmi.RemoteException,
InitializeException,
java.lang.InterruptedException
java.rmi.RemoteException
InitializeException
java.lang.InterruptedException
int powerOff()
throws java.rmi.RemoteException
java.rmi.RemoteException
int powerOn()
throws java.rmi.RemoteException
java.rmi.RemoteException
int getStatus()
throws java.rmi.RemoteException
java.rmi.RemoteException
int getSamplingErrorCount()
throws java.rmi.RemoteException
java.rmi.RemoteException
int getSamplingCount()
throws java.rmi.RemoteException
java.rmi.RemoteException
int getSamplingRetryCount()
throws java.rmi.RemoteException
java.rmi.RemoteException
int test()
throws java.rmi.RemoteException
java.rmi.RemoteException
Device getParent()
throws NoParentException,
java.rmi.RemoteException
NoParentException
java.rmi.RemoteException
Device[] getChildren()
throws NoChildrenException,
java.rmi.RemoteException
NoChildrenException
java.rmi.RemoteException
java.net.InetAddress host()
throws java.rmi.RemoteException,
java.net.UnknownHostException
java.rmi.RemoteException
java.net.UnknownHostException
Location getLocation()
throws java.rmi.RemoteException,
UnknownLocationException
java.rmi.RemoteException
UnknownLocationException
MetadataPacket getMetadata(byte[] cause,
int components,
boolean logPacket)
throws java.rmi.RemoteException
java.rmi.RemoteException
byte[] getCommPortName()
throws java.rmi.RemoteException
java.rmi.RemoteException
byte[] getFrameworkVersion()
throws java.rmi.RemoteException
java.rmi.RemoteException
void suspend()
throws java.rmi.RemoteException
java.rmi.RemoteException
void resume()
throws java.rmi.RemoteException
java.rmi.RemoteException
byte[] shutdown()
throws java.rmi.RemoteException
java.rmi.RemoteException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||