|
||||||||
| 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
public abstract class InputConnector
Connects a FilterInput to a data stream
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
_log4j
Log4j logger |
static int |
DEFAULT_ID
|
static long |
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 | |
|---|---|
InputConnector()
|
|
InputConnector(FilterInput input,
int dataType)
|
|
InputConnector(FilterInput input,
int dataType,
int id,
long updateTimeoutMsec)
|
|
| Method Summary | |
|---|---|
protected void |
clearStatus(int statusMask)
|
abstract void |
connect()
get control input value (ControlInputIF) |
int |
dataType()
|
abstract void |
disconnect()
disconnect from data source |
FilterInput |
getFilterInput()
|
int |
getInputID()
|
InputState |
getInputState()
|
java.lang.Number |
getInputValue()
|
Instrument |
getService()
|
int |
getState()
return connector state |
int |
getStatus()
return connector status |
long |
getUpdateTimeout()
|
RangeValidator |
getValidator()
|
int |
id()
|
abstract void |
initialize()
initialize control input (ControlInputIF) |
void |
setFilterInput(FilterInput input)
|
void |
setInputID(int id)
|
void |
setLastUpdateTime(long time_msec)
|
void |
setService(Instrument service)
|
protected void |
setState(int state)
|
protected void |
setStatus(int statusMask)
|
void |
setUpdateTimeout(long timeoutMsec)
|
void |
setValidator(RangeValidator validator)
|
java.lang.String |
stateString()
|
java.lang.String |
stateString(int state)
|
java.lang.String |
statusString()
|
java.lang.String |
statusString(int status)
|
long |
timeSinceLastUpdate()
|
java.lang.String |
typeName()
|
boolean |
updateTimeoutExpired()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_ID
public static final long DEFAULT_UPDATE_TIMEOUT
protected static org.apache.log4j.Logger _log4j
| Constructor Detail |
|---|
public InputConnector()
public InputConnector(FilterInput input,
int dataType)
throws InvalidPropertyException
InvalidPropertyException
public InputConnector(FilterInput input,
int dataType,
int id,
long updateTimeoutMsec)
throws InvalidPropertyException
InvalidPropertyException| Method Detail |
|---|
public int dataType()
public java.lang.String typeName()
public int id()
protected void setState(int state)
protected void setStatus(int statusMask)
protected void clearStatus(int statusMask)
public java.lang.String stateString()
stateString in interface ControlInputIFpublic java.lang.String stateString(int state)
public java.lang.String statusString()
statusString in interface ControlInputIFpublic java.lang.String statusString(int status)
public abstract void initialize()
throws java.rmi.RemoteException
initialize in interface ControlInputIFjava.rmi.RemoteException
public abstract void connect()
throws java.lang.Exception,
java.rmi.RemoteException
connect in interface ControlInputIFjava.lang.Exception
java.rmi.RemoteException
public abstract void disconnect()
throws java.lang.Exception,
java.rmi.RemoteException
disconnect in interface ControlInputIFjava.lang.Exception
java.rmi.RemoteException
public int getState()
throws java.rmi.RemoteException
getState in interface ControlInputIFjava.rmi.RemoteException
public int getStatus()
throws java.rmi.RemoteException
getStatus in interface ControlInputIFjava.rmi.RemoteExceptionpublic FilterInput getFilterInput()
getFilterInput in interface ControlInputIFpublic void setFilterInput(FilterInput input)
setFilterInput in interface ControlInputIFpublic void setInputID(int id)
setInputID in interface ControlInputIFpublic int getInputID()
getInputID in interface ControlInputIFpublic java.lang.Number getInputValue()
getInputValue in interface ControlInputIFpublic void setLastUpdateTime(long time_msec)
setLastUpdateTime in interface ControlInputIFpublic long timeSinceLastUpdate()
timeSinceLastUpdate in interface ControlInputIFpublic void setUpdateTimeout(long timeoutMsec)
setUpdateTimeout in interface ControlInputIFpublic long getUpdateTimeout()
getUpdateTimeout in interface ControlInputIFpublic boolean updateTimeoutExpired()
updateTimeoutExpired in interface ControlInputIFpublic Instrument getService()
getService in interface ControlInputIFpublic void setService(Instrument service)
setService in interface ControlInputIFpublic void setValidator(RangeValidator validator)
setValidator in interface ControlInputIFpublic RangeValidator getValidator()
getValidator in interface ControlInputIF
public InputState getInputState()
throws java.rmi.RemoteException
getInputState in interface ControlInputIFjava.rmi.RemoteException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||