Class EDataConnectorD
java.lang.Object
org.scictrl.mp.orbitcorrect.epics.EAbstractDataConnector<Double>
org.scictrl.mp.orbitcorrect.epics.EDataConnectorD
- All Implemented Interfaces:
IDataConnector<Double>,IWriteConnector<Double>
public class EDataConnectorD
extends EAbstractDataConnector<Double>
implements IWriteConnector<Double>
EDataConnectorD class.
- Author:
- igor@scictrl.com
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.scictrl.mp.orbitcorrect.model.IDataConnector
IDataConnector.PushStrategy, IDataConnector.UpdateStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.scictrl.csshell.epics.EPICSConnection<Double> remote connection/.Fields inherited from class org.scictrl.mp.orbitcorrect.epics.EAbstractDataConnector
element, engine -
Constructor Summary
ConstructorsConstructorDescriptionEDataConnectorD(EControlSystemEngine engine, IBindedElement<Double> element, org.scictrl.csshell.epics.EPICSConnection<Double> connection) Constructor for EDataConnectorD. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroys remote connection and release all relevant resources.get()Gets value from remote data source and returns it.org.scictrl.csshell.epics.EPICSConnection<Double> Getter for the fieldconnection.getFormat.longgetLatestReceivedTimestamp.Returns latest position delivered to the connector by way of event updates.doublegetMaxValue.doublegetMinValue.getName()getName.booleanisReady()A quick tests of connection and device by examining locally available data.voidset.booleantest()Tests connection and device if it is in usable state.Methods inherited from class org.scictrl.mp.orbitcorrect.epics.EAbstractDataConnector
dataTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.scictrl.mp.orbitcorrect.model.IDataConnector
dataType
-
Field Details
-
connection
remote connection/.
-
-
Constructor Details
-
EDataConnectorD
public EDataConnectorD(EControlSystemEngine engine, IBindedElement<Double> element, org.scictrl.csshell.epics.EPICSConnection<Double> connection) throws Exception Constructor for EDataConnectorD.
- Parameters:
engine- aEControlSystemEngineobjectelement- aIBindedElementobjectconnection- aEPICSConnectionobject- Throws:
Exception- if fails
-
-
Method Details
-
get
Gets value from remote data source and returns it.- Specified by:
getin interfaceIDataConnector<Double>- Returns:
- value from remote data source.
- Throws:
Exception- if remote get fails
-
getLatestReceivedValue
Returns latest position delivered to the connector by way of event updates.- Specified by:
getLatestReceivedValuein interfaceIDataConnector<Double>- Returns:
- lates data update value
-
destroy
public void destroy()Destroys remote connection and release all relevant resources.- Specified by:
destroyin interfaceIDataConnector<Double>
-
test
public boolean test()Tests connection and device if it is in usable state. This may include making remote calls and checking remote status or other values.- Specified by:
testin interfaceIDataConnector<Double>- Returns:
- true if connector can be used
-
isReady
public boolean isReady()A quick tests of connection and device by examining locally available data. It is suppose to be lightweight method, avoiding making remote calls and should exit quickly.- Specified by:
isReadyin interfaceIDataConnector<Double>- Returns:
- true if connector can be used
-
getFormat
getFormat.
- Specified by:
getFormatin interfaceIDataConnector<Double>- Returns:
- a
Stringobject - Throws:
ControlSystemException- if any.
-
getLatestReceivedTimestamp
public long getLatestReceivedTimestamp()getLatestReceivedTimestamp.
- Specified by:
getLatestReceivedTimestampin interfaceIDataConnector<Double>- Returns:
- a long
-
getName
getName.
- Specified by:
getNamein interfaceIDataConnector<Double>- Returns:
- a
Stringobject
-
getMaxValue
getMaxValue.
getMaxValue.
- Specified by:
getMaxValuein interfaceIWriteConnector<Double>- Returns:
- a double
- Throws:
ControlSystemException- if any.
-
getMinValue
getMinValue.
getMinValue method comment.- Specified by:
getMinValuein interfaceIWriteConnector<Double>- Returns:
- a double
- Throws:
ControlSystemException- if any.
-
set
set.
- Specified by:
setin interfaceIWriteConnector<Double>- Parameters:
d- a T object- Throws:
ControlSystemException- if any.
-
getConnection
Getter for the field
connection.- Returns:
- a
EPICSConnectionobject
-