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
ConstructorDescriptionEDataConnectorDD
(EControlSystemEngine engine, IBindedElement<Double[]> element, org.scictrl.csshell.epics.EPICSConnection<Double>[] connections) Constructor for EDataConnectorDD. -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
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.long
getLatestReceivedTimestamp.Double[]
Returns latest position delivered to the connector by way of event updates.double
getMaxValue.double
getMinValue method comment.getName()
getName.boolean
isReady()
A quick tests of connection and device by examining locally available data.boolean
test()
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
- aEControlSystemEngine
objectelement
- aIBindedElement
objectconnections
- an array ofEPICSConnection
objects- 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
String
object - Throws:
ControlSystemException
- if any.
-
getLatestReceivedTimestamp
public long getLatestReceivedTimestamp()getLatestReceivedTimestamp.
- Returns:
- a long
-
getName
getName.
- Returns:
- a
String
object
-
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
EPICSConnection
objects
-