org.mbari.siam.foce.devices.controlLoop
Class OSDTInputConnector

java.lang.Object
  extended by org.mbari.siam.foce.devices.controlLoop.InputConnector
      extended by org.mbari.siam.foce.devices.controlLoop.OSDTInputConnector
All Implemented Interfaces:
java.rmi.Remote, ControlInputIF

public class OSDTInputConnector
extends InputConnector
implements ControlInputIF

Connects a FilterInput to a SIAM registry data stream


Field Summary
protected static org.apache.log4j.Logger _log4j
          Log4j logger
static long DEFAULT_UPDATE_PERIOD
           
 
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
OSDTInputConnector(java.lang.String server, java.lang.String source, java.lang.String channel, int dataType, FilterInput input)
           
OSDTInputConnector(java.lang.String server, java.lang.String source, java.lang.String channel, int dataType, FilterInput input, int id, long updateTimeoutMsec, long workerPeriodMsec)
          Constructor
OSDTInputConnector(java.lang.String server, java.lang.String source, java.lang.String channel, int dataType, FilterInput input, long updateTimeoutMsec, long workerPeriodMsec)
           
 
Method Summary
 java.lang.String channel()
           
 void connect()
          get control input value (ControlInputIF)
 void disconnect()
          disconnect from data source
 void initialize()
          initialize control input (ControlInputIF)
 void setWorkerPeriod(long periodMsec)
           
 
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

DEFAULT_UPDATE_PERIOD

public static final long DEFAULT_UPDATE_PERIOD
See Also:
Constant Field Values

_log4j

protected static org.apache.log4j.Logger _log4j
Log4j logger

Constructor Detail

OSDTInputConnector

public OSDTInputConnector(java.lang.String server,
                          java.lang.String source,
                          java.lang.String channel,
                          int dataType,
                          FilterInput input)
                   throws InvalidPropertyException
Throws:
InvalidPropertyException

OSDTInputConnector

public OSDTInputConnector(java.lang.String server,
                          java.lang.String source,
                          java.lang.String channel,
                          int dataType,
                          FilterInput input,
                          long updateTimeoutMsec,
                          long workerPeriodMsec)
                   throws InvalidPropertyException
Throws:
InvalidPropertyException

OSDTInputConnector

public OSDTInputConnector(java.lang.String server,
                          java.lang.String source,
                          java.lang.String channel,
                          int dataType,
                          FilterInput input,
                          int id,
                          long updateTimeoutMsec,
                          long workerPeriodMsec)
                   throws InvalidPropertyException
Constructor

Throws:
InvalidPropertyException
Method Detail

setWorkerPeriod

public void setWorkerPeriod(long periodMsec)

channel

public java.lang.String channel()

initialize

public void initialize()
                throws java.rmi.RemoteException
initialize control input (ControlInputIF)

Specified by:
initialize in interface ControlInputIF
Specified by:
initialize in class InputConnector
Throws:
java.rmi.RemoteException

connect

public void connect()
             throws java.lang.Exception
get control input value (ControlInputIF)

Specified by:
connect in interface ControlInputIF
Specified by:
connect in class InputConnector
Throws:
java.lang.Exception

disconnect

public void disconnect()
                throws java.lang.Exception
Description copied from class: InputConnector
disconnect from data source

Specified by:
disconnect in interface ControlInputIF
Specified by:
disconnect in class InputConnector
Throws:
java.lang.Exception


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.