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

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

public class RawInputConnector
extends InputConnector

Connects a FilterInput to a SIAM registry data stream


Field Summary
protected static org.apache.log4j.Logger _log4j
          Log4j logger
static int FIELD_TYPE_DOUBLE
           
static int FIELD_TYPE_INT
           
static int FIELD_TYPE_LONG
           
 
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_FLOAT, 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
RawInputConnector(java.lang.String registryKey, java.lang.String fieldKey, int fieldType, FilterInput input)
           
RawInputConnector(java.lang.String registryKey, java.lang.String fieldKey, int fieldType, FilterInput input, int id)
          Constructor
 
Method Summary
 void connect()
          get control input value (ControlInputIF)
 void disconnect()
          get control input value (ControlInputIF)
 FilterInput getFilterInput()
           
 int getInputID()
           
 java.lang.Number getInputValue()
           
 Instrument getService()
           
 void initialize()
          initialize control input (ControlInputIF)
 void setInputID(int id)
           
 void setService(Instrument service)
           
 
Methods inherited from class org.mbari.siam.foce.devices.controlLoop.InputConnector
clearStatus, dataType, getInputState, getState, getStatus, getUpdateTimeout, getValidator, id, setFilterInput, setLastUpdateTime, 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
 

Field Detail

_log4j

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


FIELD_TYPE_DOUBLE

public static final int FIELD_TYPE_DOUBLE
See Also:
Constant Field Values

FIELD_TYPE_LONG

public static final int FIELD_TYPE_LONG
See Also:
Constant Field Values

FIELD_TYPE_INT

public static final int FIELD_TYPE_INT
See Also:
Constant Field Values
Constructor Detail

RawInputConnector

public RawInputConnector(java.lang.String registryKey,
                         java.lang.String fieldKey,
                         int fieldType,
                         FilterInput input)
                  throws InvalidPropertyException
Throws:
InvalidPropertyException

RawInputConnector

public RawInputConnector(java.lang.String registryKey,
                         java.lang.String fieldKey,
                         int fieldType,
                         FilterInput input,
                         int id)
                  throws InvalidPropertyException
Constructor

Throws:
InvalidPropertyException
Method Detail

setInputID

public void setInputID(int id)
Specified by:
setInputID in interface ControlInputIF
Overrides:
setInputID in class InputConnector

getInputID

public int getInputID()
Specified by:
getInputID in interface ControlInputIF
Overrides:
getInputID in class InputConnector

getInputValue

public java.lang.Number getInputValue()
Specified by:
getInputValue in interface ControlInputIF
Overrides:
getInputValue in class InputConnector

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.rmi.RemoteException
get control input value (ControlInputIF)

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

disconnect

public void disconnect()
                throws java.rmi.RemoteException
get control input value (ControlInputIF)

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

getService

public Instrument getService()
Specified by:
getService in interface ControlInputIF
Overrides:
getService in class InputConnector

setService

public void setService(Instrument service)
Specified by:
setService in interface ControlInputIF
Overrides:
setService in class InputConnector

getFilterInput

public FilterInput getFilterInput()
Specified by:
getFilterInput in interface ControlInputIF
Overrides:
getFilterInput in class InputConnector


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.