Class EDataConnectorDD
java.lang.Object
org.scictrl.mp.orbitcorrect.epics.EAbstractDataConnector<Double[]>
org.scictrl.mp.orbitcorrect.epics.EDataConnectorDD
- All Implemented Interfaces:
IDataConnector<Double[]>
EDataConnectorDD 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
Fields inherited from class org.scictrl.mp.orbitcorrect.epics.EAbstractDataConnector
element, engine -
Constructor Summary
ConstructorsConstructorDescriptionEDataConnectorDD(EControlSystemEngine engine, IBindedElement<Double[]> element, org.scictrl.csshell.epics.EPICSConnection<Double>[] connections) Constructor for EDataConnectorDD. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroys remote connection and release all relevant resources.Double[]get()Gets value from remote data source and returns it.org.scictrl.csshell.epics.EPICSConnection<Double>[]Getter for the fieldconnections.getFormat.longgetLatestReceivedTimestamp.Double[]Returns latest position delivered to the connector by way of event updates.doublegetMaxValue.doublegetMinValue method comment.getName()getName.booleanisReady()A quick tests of connection and device by examining locally available data.booleantest()Tests connection and device if it is in usable state.Methods inherited from class org.scictrl.mp.orbitcorrect.epics.EAbstractDataConnector
dataType
-
Constructor Details
-
EDataConnectorDD
public EDataConnectorDD(EControlSystemEngine engine, IBindedElement<Double[]> element, org.scictrl.csshell.epics.EPICSConnection<Double>[] connections) throws Exception Constructor for EDataConnectorDD.
- Parameters:
engine- aEControlSystemEngineobjectelement- aIBindedElementobjectconnections- an array ofEPICSConnectionobjects- Throws:
Exception- if fails
-
-
Method Details
-
destroy
public void destroy()Destroys remote connection and release all relevant resources. -
get
Gets value from remote data source and returns it.- 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.- Returns:
- lates data update value
-
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.- 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.- Returns:
- true if connector can be used
-
getFormat
getFormat.
- Returns:
- a
Stringobject - Throws:
ControlSystemException- if any.
-
getLatestReceivedTimestamp
public long getLatestReceivedTimestamp()getLatestReceivedTimestamp.
- Returns:
- a long
-
getName
getName.
- Returns:
- a
Stringobject
-
getMaxValue
getMaxValue.
- Returns:
- a double
- Throws:
ControlSystemException- if any.
-
getMinValue
getMinValue method comment.- Returns:
- a double
- Throws:
ControlSystemException- if any.
-
getConnections
Getter for the field
connections.- Returns:
- an array of
EPICSConnectionobjects
-