|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.distributed.Port
public class Port
A Port represents a node's instrument communication port. Each Port has a name (e.g. "/dev/ttySX3"). Moreover, a Port may have an associated DeviceService; this associated DeviceService is characterized by a deviceID and a service mnemonic (e.g. "Seabird").
| Field Summary | |
|---|---|
protected long |
_deviceID
|
protected boolean |
_hasPowerSwitch
|
protected boolean |
_hasService
|
protected byte[] |
_portName
|
protected byte[] |
_serviceMnem
|
| Constructor Summary | |
|---|---|
Port(byte[] portName)
Create Port, with no service. |
|
Port(byte[] portName,
long deviceID,
byte[] serviceMnem)
Create Port, with deviceID and mnemonic. |
|
| Method Summary | |
|---|---|
long |
getDeviceID()
Get port service Device ID. |
byte[] |
getName()
Get name of port. |
byte[] |
getServiceMnemonic()
Get port service mnemonic. |
boolean |
hasPowerSwitch()
True if port has associated power switch. |
boolean |
hasService()
True if port has associated service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected byte[] _portName
protected byte[] _serviceMnem
protected long _deviceID
protected boolean _hasService
protected boolean _hasPowerSwitch
| Constructor Detail |
|---|
public Port(byte[] portName,
long deviceID,
byte[] serviceMnem)
public Port(byte[] portName)
| Method Detail |
|---|
public byte[] getName()
public long getDeviceID()
throws DeviceNotFound
DeviceNotFound
public byte[] getServiceMnemonic()
throws DeviceNotFound
DeviceNotFoundpublic boolean hasService()
public boolean hasPowerSwitch()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||