|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.foce.devices.controlLoop.InputConnector
org.mbari.siam.foce.devices.controlLoop.RegistryInputConnector
public class RegistryInputConnector
Connects a FilterInput to a SIAM registry data stream
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
_log4j
Log4j logger |
| Fields inherited from class org.mbari.siam.foce.devices.controlLoop.InputConnector |
|---|
DEFAULT_ID, DEFAULT_UPDATE_TIMEOUT |
| Fields inherited from interface org.mbari.siam.distributed.devices.ControlInputIF |
|---|
FIELD_TYPE_BOOLEAN, FIELD_TYPE_BYTE, FIELD_TYPE_DOUBLE, FIELD_TYPE_FLOAT, FIELD_TYPE_INT, FIELD_TYPE_LONG, FIELD_TYPE_SHORT, STATE_CONNECTING, STATE_DISCONNECTING, STATE_INITIALIZED, STATE_INSTANTIATED, STATE_UPDATING, STATE_WAITING, STATUS_CONNECT_ERROR, STATUS_DISCONNECT_ERROR, STATUS_ERROR, STATUS_MASK_ALL, STATUS_NOT_CONNECTED, STATUS_OK, STATUS_TIMEOUT_EXPIRED, STATUS_UPDATE_ERROR |
| Constructor Summary | |
|---|---|
RegistryInputConnector(java.lang.String registryKey,
java.lang.String fieldKey,
int dataType,
FilterInput input,
int id,
long updateTimeoutMsec)
Constructor |
|
RegistryInputConnector(java.lang.String registryKey,
java.lang.String fieldKey,
int dataType,
FilterInput input,
long updateTimeoutMsec)
|
|
| Method Summary | |
|---|---|
void |
connect()
get control input value (ControlInputIF) |
void |
dataCallback(DevicePacket sensorData,
PacketParser.Field[] fields)
dataCallback for all services with which we are registered as data listeners. |
void |
disconnect()
disconnect from data source |
Instrument |
findService()
|
void |
initialize()
initialize control input (ControlInputIF) |
protected void |
registerCallbacks()
Attempts to register services. |
void |
serviceRegisteredCallback(RegistryEntry entry)
Callback for InstrumentDataListener interface, called when the services register with the InstrumentRegistry |
| Methods inherited from class org.mbari.siam.foce.devices.controlLoop.InputConnector |
|---|
clearStatus, dataType, getFilterInput, getInputID, getInputState, getInputValue, getService, getState, getStatus, getUpdateTimeout, getValidator, id, setFilterInput, setInputID, setLastUpdateTime, setService, setState, setStatus, setUpdateTimeout, setValidator, stateString, stateString, statusString, statusString, timeSinceLastUpdate, typeName, updateTimeoutExpired |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mbari.siam.distributed.devices.ControlInputIF |
|---|
getFilterInput, getInputID, getInputState, getInputValue, getService, getState, getStatus, getUpdateTimeout, getValidator, setFilterInput, setInputID, setLastUpdateTime, setService, setUpdateTimeout, setValidator, stateString, statusString, timeSinceLastUpdate, updateTimeoutExpired |
| Field Detail |
|---|
protected static org.apache.log4j.Logger _log4j
| Constructor Detail |
|---|
public RegistryInputConnector(java.lang.String registryKey,
java.lang.String fieldKey,
int dataType,
FilterInput input,
long updateTimeoutMsec)
throws InvalidPropertyException
InvalidPropertyException
public RegistryInputConnector(java.lang.String registryKey,
java.lang.String fieldKey,
int dataType,
FilterInput input,
int id,
long updateTimeoutMsec)
throws InvalidPropertyException
InvalidPropertyException| Method Detail |
|---|
public void initialize()
throws java.rmi.RemoteException
initialize in interface ControlInputIFinitialize in class InputConnectorjava.rmi.RemoteException
public void connect()
throws java.lang.Exception,
java.rmi.RemoteException
connect in interface ControlInputIFconnect in class InputConnectorjava.lang.Exception
java.rmi.RemoteException
public void disconnect()
throws java.lang.Exception,
java.rmi.RemoteException
InputConnector
disconnect in interface ControlInputIFdisconnect in class InputConnectorjava.lang.Exception
java.rmi.RemoteExceptionpublic void serviceRegisteredCallback(RegistryEntry entry)
serviceRegisteredCallback in interface InstrumentDataListener
public void dataCallback(DevicePacket sensorData,
PacketParser.Field[] fields)
dataCallback in interface InstrumentDataListenersensorData - - SensorDataPacket that instrument loggedfields - - Result of passing sensorData to PacketParser.parseFields()
if registered DeviceService is an instanceof BaseInstrumentService. Else null.public Instrument findService()
protected void registerCallbacks()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||