|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.displayers.DataSourceSupport de.desy.acop.transport.adapters.AcopTransportDataSource
public class AcopTransportDataSource
AcopTransportDataSource
is a common DataSource for all TINE based
connections. This class connects to the TINE CS via the AcopTransport
.
This data source works as a connection monitor receiving data as specified
by the supplied ConnectionParameters
.
Field Summary | |
---|---|
protected double[] |
data
|
protected ObjectList |
dcon
|
protected java.lang.String[] |
objectData
|
protected ObjectList |
scon
|
protected ObjectList |
sseqcon
|
Fields inherited from class com.cosylab.gui.displayers.DataSourceSupport |
---|
types |
Constructor Summary | |
---|---|
AcopTransportDataSource()
Creates new instance of AcopTransportDataSource. |
Method Summary | |
---|---|
void |
addConsumer(DataConsumer consumer)
This support implementation does not perform any type check on consumer, it just adds it to list of consumers. |
void |
clear()
Releases all consumers and goes into initial state. |
void |
connect(ConnectionParameters conn)
Connects this data source to the TINE channel. |
void |
dataEventReceived(AcopTransportEvent e)
|
void |
disconnect()
Disconnects this data source from the remote TINE channel. |
java.util.Map<java.lang.String,java.lang.Object> |
getCharacteristics()
Returns the characteristics that belong to the property specified by the ConnectionParameters attached to this data source. |
ConnectionParameters |
getConnectionParameters()
Returns the ConnectionParameters attached to this data source. |
protected de.desy.tine.definitions.TFormat |
getDataFormat()
Returns the format. |
protected int |
getDataLength()
Returns the length of data received from the remote channel. |
protected ReverseConsumer |
getReverseConsumer()
Returns the consumer that is attached to the displayer and enables setting value on the channel specified by the ConnectionParameters of this data source. |
AcopTransport |
getTransport()
Returns the transport used by this data source. |
void |
removeConsumer(DataConsumer consumer)
Removes the DataConsumer from this data source. |
protected void |
setDataFormat(de.desy.tine.definitions.TFormat format)
Sets new format. |
Methods inherited from class com.cosylab.gui.displayers.DataSourceSupport |
---|
clone, extractSupportedCharacteristics, getAcceptableConsumerTypes, getConsumers, removeAllConsumers |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ObjectList dcon
protected ObjectList scon
protected ObjectList sseqcon
protected double[] data
protected java.lang.String[] objectData
Constructor Detail |
---|
public AcopTransportDataSource()
Method Detail |
---|
public void addConsumer(DataConsumer consumer) throws java.beans.PropertyVetoException
DataSourceSupport
addConsumer
in interface DataSource
addConsumer
in class DataSourceSupport
consumer
- the data consumer to be regitered at this data source
java.beans.PropertyVetoException
DataSource.addConsumer(com.cosylab.gui.displayers.DataConsumer)
public java.util.Map<java.lang.String,java.lang.Object> getCharacteristics() throws ConnectionFailed
ConnectionFailed
- if property information query failedDataSourceUtilities.getCharacteristics(ConnectionParameters)
public AcopTransport getTransport()
public ConnectionParameters getConnectionParameters()
ConnectionParameters
attached to this data source.
public void connect(ConnectionParameters conn) throws ConnectionFailed
conn
- parameters specifiyng the connection channel
ConnectionFailed
- if remote connection failedpublic void disconnect()
public void dataEventReceived(AcopTransportEvent e)
dataEventReceived
in interface AcopTransportListener
protected ReverseConsumer getReverseConsumer()
public void clear()
DataSourceSupport
clear
in class DataSourceSupport
protected de.desy.tine.definitions.TFormat getDataFormat()
protected void setDataFormat(de.desy.tine.definitions.TFormat format)
format
- The format to set.public void removeConsumer(DataConsumer consumer)
DataConsumer
from this data source.
removeConsumer
in interface DataSource
removeConsumer
in class DataSourceSupport
consumer
- data consumer to be deregisteredprotected int getDataLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |